/* Trebor Invest AS – v2 */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}

:root {
  --navy-900: #0a1628;
  --navy-800: #0f1e36;
  --navy-700: #16294a;
  --navy-600: #22396a;
  --steel: #8ea3c4;
  --ice: #f3f6fb;
  --paper: #ffffff;
  --ink: #14213a;
  --muted: #56627a;
  --line: #dfe5ef;
  --gold-1: #f3d99a;
  --gold-2: #d8b066;
  --gold-3: #b8893e;
  --gold: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-3) 100%);

  --font: "Schibsted Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgb(10 22 40 / .06), 0 12px 32px -12px rgb(10 22 40 / .22);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-underline-offset: .2em; }
a:hover { color: var(--gold-3); }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 750; margin-bottom: 1.25rem; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--navy-800); color: #fff; padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: .5rem; }

/* Header */
.top { position: fixed; inset: 0 0 auto; z-index: 10; transition: background .3s, box-shadow .3s; }
.top.is-solid { background: rgb(15 30 54 / .94); backdrop-filter: blur(10px) saturate(1.3); box-shadow: 0 1px 0 rgb(255 255 255 / .06), 0 10px 30px -15px rgb(0 0 0 / .5); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: .005em; }
.brand:hover { color: #fff; }
.brand__mark { width: 2.8rem; height: auto; filter: drop-shadow(0 2px 6px rgb(216 176 102 / .35)); }
.brand__as { color: var(--gold-1); font-weight: 500; }
.nav { display: flex; align-items: center; gap: clamp(.8rem, 2.2vw, 2rem); list-style: none; margin: 0; padding: 0; font-size: .98rem; font-weight: 500; }
.nav a { color: rgb(255 255 255 / .85); text-decoration: none; padding: .5rem 0; }
.nav a:hover { color: #fff; }
.nav .nav__cta { padding: .6rem 1.1rem; border: 1px solid rgb(243 217 154 / .55); border-radius: 999px; color: var(--gold-1); }
.nav .nav__cta:hover { background: rgb(243 217 154 / .12); color: #fff; }

/* Hero */
.hero { position: relative; min-height: min(100vh, 58rem); display: flex; align-items: center; color: #fff; background: var(--navy-900); overflow: hidden; padding: 8rem 0 4rem; }
.hero__bg { position: absolute; inset: 0; background:
    radial-gradient(60rem 30rem at 85% 15%, rgb(216 176 102 / .18), transparent 60%),
    linear-gradient(100deg, rgb(10 22 40 / .97) 0%, rgb(15 30 54 / .88) 45%, rgb(15 30 54 / .45) 100%),
    url("../img/photo-hero.jpg") center / cover no-repeat;
  transform: scale(1.04); animation: settle 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(243 217 154 / .6), transparent); }
.hero__inner { position: relative; width: 100%; }
.hero__kicker { display: inline-block; font-size: .95rem; font-weight: 600; color: var(--gold-1); padding: .35rem .9rem; border: 1px solid rgb(243 217 154 / .35); border-radius: 999px; background: rgb(243 217 154 / .07); margin-bottom: 1.75rem; }
.hero__title { font-size: clamp(1.9rem, 6.4vw + .4rem, 5.25rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 1.75rem; }
.hero__title span { display: block; background: linear-gradient(180deg, #ffffff 30%, #c9d6ec 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title span:last-child { background: var(--gold); -webkit-background-clip: text; background-clip: text; }
.hero__lede { max-width: 38rem; font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; color: rgb(255 255 255 / .82); margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: clamp(3rem, 7vw, 5rem); }

.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 1rem/1 var(--font); padding: 1.05rem 1.7rem; border-radius: 999px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn--gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 10px 30px -10px rgb(216 176 102 / .7), inset 0 1px 0 rgb(255 255 255 / .5); }
.btn--gold:hover { color: var(--navy-900); transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgb(216 176 102 / .85), inset 0 1px 0 rgb(255 255 255 / .5); }
.btn--ghost { color: #fff; border: 1px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .06); backdrop-filter: blur(6px); }
.btn--ghost:hover { color: #fff; background: rgb(255 255 255 / .14); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; max-width: 56rem; border-radius: var(--radius); overflow: hidden; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .12); backdrop-filter: blur(12px); }
.stats > div { background: rgb(15 30 54 / .55); padding: 1.3rem 1.5rem; }
.stats dt { font-size: .85rem; color: var(--steel); margin-bottom: .35rem; }
.stats dd { margin: 0; font-size: .98rem; color: rgb(255 255 255 / .85); line-height: 1.35; }
.stats strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; margin-bottom: .15rem; }

/* Logostripe */
.logos { background: var(--paper); border-bottom: 1px solid var(--line); }
.logos__inner { display: flex; align-items: center; gap: 2rem clamp(2rem, 5vw, 4rem); padding-top: 2.25rem; padding-bottom: 2.25rem; flex-wrap: wrap; }
.logos__label { margin: 0; font-size: .95rem; font-weight: 600; color: var(--muted); }
.logos__list { display: flex; align-items: center; flex-wrap: wrap; gap: 2rem clamp(2.5rem, 6vw, 5rem); list-style: none; margin: 0; padding: 0; }
.logos__list img { height: 2.6rem; width: auto; }

/* Seksjoner */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--soft { background: var(--ice); }
.section__head { max-width: 42rem; margin-bottom: 3rem; }
.section__head p { color: var(--muted); font-size: 1.15rem; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about__text p:not(.lead) { color: var(--muted); }
.about__media { position: relative; min-height: 30rem; }
.about__img { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.about__img--a { top: 0; right: 0; width: 82%; aspect-ratio: 4 / 3; }
.about__img--b { bottom: 0; left: 0; width: 58%; aspect-ratio: 4 / 3; border: 6px solid var(--paper); }
.about__badge { position: absolute; right: 6%; bottom: 8%; background: var(--navy-800); color: #fff; padding: 1.1rem 1.35rem; border-radius: var(--radius); box-shadow: 0 20px 40px -15px rgb(10 22 40 / .6); display: grid; gap: .1rem; }
.about__badge strong { font-size: 2.2rem; line-height: 1; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__badge span { font-size: .9rem; color: var(--steel); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.25rem; }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.75rem 1.6rem; box-shadow: 0 1px 2px rgb(10 22 40 / .04); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cdd6e4; }
.card__icon { width: 2.9rem; height: 2.9rem; padding: .6rem; border-radius: 12px; background: linear-gradient(145deg, var(--navy-700), var(--navy-900)); stroke: var(--gold-1); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.2rem; box-shadow: 0 8px 18px -8px rgb(10 22 40 / .6); }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* Bånd med sitat */
.band { position: relative; color: #fff; padding: clamp(5rem, 11vw, 8.5rem) 0; overflow: hidden; background: var(--navy-900); }
.band__bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 22 40 / .95), rgb(15 30 54 / .7)), url("../img/photo-band.jpg") center / cover no-repeat; }
.band__inner { position: relative; }
.band blockquote { margin: 0; max-width: 52rem; border-left: 3px solid var(--gold-2); padding-left: clamp(1.25rem, 3vw, 2.25rem); }
.band blockquote p { font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; margin: 0; }

/* Referanser */
.refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.ref { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; background: var(--paper); box-shadow: 0 1px 2px rgb(10 22 40 / .04); }
.ref__logo { height: 6.5rem; display: flex; align-items: center; justify-content: center; background: var(--ice); border-radius: 10px; margin-bottom: 1.4rem; padding: 1rem 1.5rem; }
.ref__logo img { max-height: 3.2rem; width: auto; }
.ref h3 { margin-bottom: .2rem; }
.ref p { margin: 0; color: var(--muted); }

/* Ansatte */
.person { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.person__card { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; border-radius: 20px; padding: 2.5rem 2rem 2rem; text-align: center; box-shadow: 0 30px 60px -25px rgb(10 22 40 / .65); position: relative; overflow: hidden; }
.person__card::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 18rem; height: 18rem; background: radial-gradient(circle, rgb(216 176 102 / .28), transparent 65%); }
.person__avatar { position: relative; width: 7.5rem; height: 7.5rem; margin: 0 auto 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy-900); background: var(--gold); box-shadow: 0 0 0 6px rgb(243 217 154 / .15), 0 14px 30px -10px rgb(216 176 102 / .6); }
.person__name { font-size: 1.6rem; margin-bottom: .3rem; position: relative; }
.person__role { color: var(--steel); position: relative; margin-bottom: 1.5rem; }
.person__links { position: relative; list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.person__links a { display: inline-block; padding: .5rem .95rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / .2); color: #fff; text-decoration: none; font-size: .92rem; font-weight: 500; }
.person__links a:hover { border-color: var(--gold-1); color: var(--gold-1); }
.person__body p:not(.lead) { color: var(--muted); }

/* Kontakt */
.contact { position: relative; color: #fff; background: var(--navy-900); padding: clamp(4.5rem, 9vw, 7rem) 0; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; background: radial-gradient(50rem 25rem at 10% 0%, rgb(34 57 106 / .8), transparent 60%), radial-gradient(40rem 20rem at 95% 100%, rgb(216 176 102 / .14), transparent 60%); }
.contact__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.contact__intro p { color: rgb(255 255 255 / .75); font-size: 1.15rem; max-width: 30rem; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.3rem; border-radius: var(--radius); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); backdrop-filter: blur(8px); font-size: 1.02rem; line-height: 1.4; }
.contact__list svg { flex: none; width: 2.5rem; height: 2.5rem; padding: .55rem; border-radius: 10px; background: rgb(243 217 154 / .1); stroke: var(--gold-1); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact__list span { display: block; font-size: .85rem; color: var(--steel); margin-bottom: .15rem; }
.contact__list a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--gold-1); text-decoration: underline; }

.foot { background: var(--navy-900); color: var(--steel); border-top: 1px solid rgb(255 255 255 / .08); }
.foot__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-top: 1.75rem; padding-bottom: 1.75rem; font-size: .92rem; }
.foot p { margin: 0; }
.brand--small { font-size: 1rem; }
.brand--small .brand__mark { width: 2.2rem; }

.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; color: #fff; background: radial-gradient(50rem 25rem at 50% 0%, rgb(34 57 106 / .9), transparent 60%), var(--navy-900); padding: 2rem; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 2.5rem 0 1rem; }
.notfound p { color: rgb(255 255 255 / .75); }

/* Responsivt */
@media (max-width: 60rem) {
  .about, .person, .contact__inner { grid-template-columns: 1fr; }
  .about__media { min-height: 24rem; }
  .person__card { max-width: 24rem; }
}
@media (max-width: 46rem) {
  .nav li:not(:last-child) { display: none; }
  .stats { grid-template-columns: 1fr; }
  .contact__list { grid-template-columns: 1fr; }
  .logos__list img { height: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg { animation: none; transform: none; }
  .card, .btn { transition: none; }
  .card:hover, .btn--gold:hover { transform: none; }
}
@media print {
  .top, .skip, .hero__bg, .band__bg, .contact__bg { display: none; }
  .hero, .band, .contact, .foot { background: none; color: #000; }
}

/* v3 */
.logos__list a { display: block; transition: opacity .2s; }
.logos__list a:hover { opacity: .75; }
a.ref__logo { transition: background .2s; }
a.ref__logo:hover { background: #e8eef7; }
.person__card { padding: 1rem 1rem 2rem; }
.person__photo { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 14px; margin-bottom: 1.5rem; box-shadow: 0 0 0 1px rgb(243 217 154 / .35), 0 18px 40px -18px rgb(0 0 0 / .7); }

/* v5: logo A */
.brand__mark { width: 3rem; color: #fff; filter: drop-shadow(0 2px 8px rgb(216 176 102 / .3)); }
.brand--small .brand__mark { width: 2.4rem; }
.brand__wm { font-weight: 500; letter-spacing: .14em; font-size: 1.02rem; }
.brand__wm b { font-weight: 800; }
.brand--small .brand__wm { font-size: .92rem; }

/* ===================== v6 ===================== */
.section--tight { padding: clamp(3.5rem, 7vw, 5rem) 0; }
.btn--sm { padding: .75rem 1.2rem; font-size: .95rem; }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-600); color: #fff; }
button.btn { border: 0; cursor: pointer; }
button.btn--ghost { border: 1px solid rgb(255 255 255 / .3); }

/* Når kan jeg hjelpe */
.when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.when h2 { margin: 0; }
.when__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.when__list li { position: relative; padding: 1rem 1.25rem 1rem 3.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 1.1rem; font-weight: 500; }
.when__list li::before { content: ""; position: absolute; left: 1.2rem; top: 50%; width: 1.1rem; height: .7rem; transform: translateY(-50%);
  background: var(--gold); clip-path: polygon(0 100%, 30% 45%, 45% 65%, 70% 0, 100% 100%); }

/* Hvorfor-båndet */
.band__title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 3.5rem 0 1.5rem; color: var(--gold-1); }
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.why li { padding: 1.5rem; border-radius: var(--radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); backdrop-filter: blur(8px); }
.why h3 { margin-bottom: .4rem; }
.why p { margin: 0; color: rgb(255 255 255 / .78); }

.refs__more { margin: 2rem 0 0; }

/* Kontakt + kart */
.contact__inner { align-items: stretch; }
.contact__intro .contact__list { grid-template-columns: 1fr; margin-top: 1.75rem; max-width: 30rem; }
.map { position: relative; min-height: 26rem; border-radius: 18px; overflow: hidden; border: 1px solid rgb(255 255 255 / .12);
  background: radial-gradient(circle at 50% 40%, rgb(216 176 102 / .18), transparent 55%),
              repeating-linear-gradient(0deg, rgb(255 255 255 / .04) 0 1px, transparent 1px 40px),
              repeating-linear-gradient(90deg, rgb(255 255 255 / .04) 0 1px, transparent 1px 40px), var(--navy-800); }
.map__cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 2rem; gap: .6rem; }
.map__cover > svg { width: 3.2rem; height: 3.2rem; stroke: var(--gold-1); fill: none; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 6px 16px rgb(216 176 102 / .45)); }
.map__addr { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin: .3rem 0 .8rem; }
.map__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.map__note { font-size: .85rem; color: var(--steel); margin: .6rem 0 0; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Bunntekst */
.foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.foot a { color: rgb(255 255 255 / .8); text-decoration: none; }
.foot a:hover { color: var(--gold-1); text-decoration: underline; }

/* Samtykke */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 30; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent__inner { max-width: 52rem; width: 100%; display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; justify-content: space-between;
  background: rgb(15 30 54 / .97); color: #fff; padding: 1.1rem 1.3rem; border-radius: 16px; border: 1px solid rgb(243 217 154 / .25);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / .6); backdrop-filter: blur(10px); }
.consent p { margin: 0; flex: 1 1 22rem; font-size: .98rem; color: rgb(255 255 255 / .88); }
.consent a { color: var(--gold-1); }
.consent__actions { display: flex; gap: .6rem; }

/* Undersider */
.page-hero { position: relative; color: #fff; background: var(--navy-900); padding: 9rem 0 4.5rem; overflow: hidden; }
.page-hero--full { min-height: 100vh; display: flex; align-items: center; }
.page-hero__bg { position: absolute; inset: 0; background:
  radial-gradient(50rem 25rem at 90% 0%, rgb(216 176 102 / .16), transparent 60%),
  linear-gradient(100deg, rgb(10 22 40 / .97), rgb(15 30 54 / .85) 55%, rgb(15 30 54 / .6)),
  url("../img/photo-hero.jpg") center / cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(243 217 154 / .6), transparent); }
.page-hero__inner { position: relative; display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero__inner--text { grid-template-columns: 1fr; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; }
.page-hero__lede { max-width: 40rem; font-size: 1.2rem; color: rgb(255 255 255 / .82); margin-bottom: 1.75rem; }
.page-hero__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 18px; box-shadow: 0 0 0 1px rgb(243 217 154 / .35), 0 30px 60px -25px rgb(0 0 0 / .8); }
.page-hero .hero__actions { margin-bottom: 0; }

.quals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.25rem 2rem; }
.quals li { border-top: 2px solid var(--gold-2); padding-top: 1rem; }
.quals h3 { margin-bottom: .4rem; }
.quals p { margin: 0; color: var(--muted); }

.jobs { list-style: none; margin: 0; padding: 0; position: relative; }
.jobs::before { content: ""; position: absolute; left: 9.5rem; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(var(--gold-2), var(--line)); }
.job { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 3rem; padding: 0 0 2.5rem; position: relative; }
.job::before { content: ""; position: absolute; left: calc(9.5rem - 5px); top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold-2); }
.job__period { margin: 0; font-weight: 700; color: var(--navy-600); text-align: right; font-variant-numeric: tabular-nums; }
.job__body h3 { font-size: 1.3rem; }
.job__org { margin: .15rem 0 .6rem; font-weight: 600; color: var(--gold-3); }
.job__body > p:not(.job__org) { color: var(--muted); max-width: 44rem; }
.job__points { margin: .25rem 0 0; padding-left: 1.2rem; color: var(--ink); max-width: 44rem; }
.job__points li { margin-bottom: .3rem; }

.cv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.plain h3 { margin-bottom: .25rem; }
.plain p { margin: 0; color: var(--muted); }
.cta-box { margin-top: clamp(3.5rem, 7vw, 5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 2rem 2.25rem; border-radius: 18px; color: #fff; background: radial-gradient(40rem 20rem at 100% 0%, rgb(216 176 102 / .2), transparent 60%), linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.cta-box h2 { margin: 0 0 .3rem; font-size: 1.7rem; }
.cta-box p { margin: 0; color: rgb(255 255 255 / .75); }

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.prose .muted { margin-top: 3rem; font-size: .92rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose th, .prose td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--ice); font-weight: 600; }
code { font-size: .9em; background: var(--ice); padding: .1em .35em; border-radius: 4px; }

@media (max-width: 60rem) {
  .when, .cv-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__photo { max-width: 13rem; }
}
@media (max-width: 40rem) {
  .jobs::before { left: .35rem; }
  .job { grid-template-columns: 1fr; gap: .25rem; padding-left: 2rem; }
  .job::before { left: 0; }
  .job__period { text-align: left; }
}
code { white-space: nowrap; }

/* v7: fire kolonner for tjenester og kvalifikasjoner */
@media (min-width: 64rem) {
  .cards, .quals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
