/* ==========================================================
   IDEMA – stilark (stramt og minimalistisk)
   Farger og mål samles her, så de er enkle å justere.
   ========================================================== */
:root {
  --navy: #0a195e;
  --navy-ink: #071245;
  --ink: #15171c;
  --muted: #646a78;
  --line: #e4e5ea;
  --light: #f5f5f3;
  --sky: #eef0f6;
  --white: #fff;
  --wrap: 1240px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: var(--font);
  --head-weight: 600;
  --head-track: -.02em;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.12; color: var(--ink); letter-spacing: var(--head-track); margin: 0 0 .5em; font-weight: var(--head-weight); font-family: var(--font-head); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.center { text-align: center; }

/* ---------- Knapper (brukes sparsomt) ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: 3px; font-weight: 500; font-size: .95rem; text-decoration: none; transition: background .15s, color .15s, border-color .15s; border: 1px solid transparent; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-ink); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.quiet-link a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.quiet-link a:hover { color: var(--navy); border-color: var(--navy); }
.it-link { margin-top: 20px; }
.it-link a { color: var(--ink); }

/* ---------- Topp ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo img { height: 36px; width: auto; }
nav > ul { list-style: none; display: flex; align-items: center; gap: 36px; margin: 0; padding: 0; }
.nav-item > a, .nav-toggle-sub { white-space: nowrap; display: flex; align-items: center; gap: 6px; padding: 24px 0; color: var(--ink); text-decoration: none; font-weight: 450; font-size: .95rem; background: none; border: 0; font-family: inherit; cursor: pointer; position: relative; }
.nav-item > a::after, .nav-toggle-sub::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--navy); transform: scaleX(0); transition: transform .2s; }
.nav-item > a:hover::after, .nav-toggle-sub:hover::after, .nav-item.active > a::after, .nav-item.active > .nav-toggle-sub::after { transform: none; }
.nav-toggle-sub svg { transition: transform .2s; opacity: .6; }
.has-kids { position: relative; }
.sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: -16px; min-width: 220px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(10,25,94,.08); opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; }
.has-kids:hover .sub, .has-kids:focus-within .sub, .has-kids.open .sub { opacity: 1; visibility: visible; }
.sub a { display: block; padding: 9px 16px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.sub a:hover, .sub a[aria-current] { color: var(--navy); background: var(--light); }
.header-cta { display: none; }
.subpanel { display: none; }

/* Mobil og nettbrett: logo øverst, menypunktene på egen rad under */
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 18px; }
  .logo img { height: 30px; }
  .header-cta { display: inline-flex; padding: .5em 1em; font-size: .85rem; }
  nav { width: 100%; margin-top: 10px; position: relative; }
  nav > ul { overflow-x: auto; scrollbar-width: none; gap: 24px; }
  nav > ul::-webkit-scrollbar { display: none; }
  .nav-item { flex-shrink: 0; }
  .nav-item > a, .nav-toggle-sub { padding: 12px 0 14px; font-size: .95rem; }
  .nav-item.nav-cta { display: none; }
  .sub { display: none; }
  .subpanel:not([hidden]) { display: block; }
  .nav-item.open > .nav-toggle-sub svg { transform: rotate(180deg); }
  .subpanel { list-style: none; margin: 0; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(10,25,94,.08); padding: 8px 32px 16px; }
  .subpanel a { display: block; padding: 11px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
  .subpanel li:last-child a { border-bottom: 0; }
  .subpanel a[aria-current] { color: var(--navy); font-weight: 600; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; background: var(--navy-ink) center / cover no-repeat; color: #fff; }
.hero.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,18,69,0) 35%, rgba(7,18,69,.7) 100%); }
.hero-inner { position: relative; width: 100%; padding-top: 56px; padding-bottom: 56px; }
.hero-large { min-height: min(72vh, 680px); }
.hero-medium { min-height: 420px; }
.hero-small.has-img { min-height: 380px; }
.hero-title { color: inherit; max-width: 26ch; margin-bottom: .25em; }
.hero-large .hero-title { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 50ch; opacity: .85; margin-bottom: 1.5em; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 600; opacity: .8; margin-bottom: .8em; }
/* Undersider uten bilde: ren tittel på hvit bakgrunn */
.hero.no-img { background: #fff; color: var(--ink); align-items: flex-end; min-height: 0; }
.hero.no-img + .block { padding-top: 8px; }
.hero.no-img .hero-inner { padding-top: 48px; padding-bottom: 28px; }
.hero.no-img .eyebrow { color: var(--muted); opacity: 1; }
.hero.no-img .hero-sub { color: var(--muted); opacity: 1; margin-bottom: 0; }
/* kompakt topp på undersidene */
.hero-small .hero-title { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.1; }
.hero-small.no-img .hero-inner { padding-top: 36px; padding-bottom: 16px; }
.hero-small.has-img { min-height: 300px; }
.hero-small .hero-sub { font-size: clamp(1rem, 1.3vw, 1.1rem); }

/* ---------- Blokker ---------- */
.block { padding: 64px 0; }
.block.bg-white + .block.bg-white { padding-top: 0; }
.bg-light { background: var(--light); }
.bg-sky { background: var(--sky); }
.bg-blue { background: var(--navy-ink); color: #fff; }
.bg-blue h2, .bg-blue h3 { color: #fff; }
.block-head { margin-bottom: 28px; padding-top: 14px; border-top: 1px solid var(--ink); display: flex; gap: 32px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.bg-blue .block-head { border-color: rgba(255,255,255,.4); }
.block-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; margin: 0; }
.block-intro { color: var(--muted); max-width: 60ch; }
.block-intro p { margin: 0; }
.block-head.center { justify-content: center; text-align: center; }
.w-narrow { max-width: 720px; }
.w-wide { max-width: 100%; }
.w-lead { max-width: 900px; }
.w-lead .prose { font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.4; letter-spacing: var(--head-track); color: var(--ink); }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.8em; font-size: 1.2rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--muted); }

/* Rutenett */
.grid { display: grid; gap: 32px 28px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } .block { padding: 48px 0; } }

/* Kort med bilde (prosjekter o.l.) */
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--light); margin-bottom: 18px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.card:hover .card-img img { transform: scale(1.03); }
.card-body h3 { margin-bottom: .3em; display: flex; justify-content: space-between; gap: 12px; }
.card-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.meta { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem !important; font-weight: 600; color: var(--muted) !important; margin-bottom: .6em !important; }

/* Tekstkort (uten bilde) */
.text-card { padding-top: 18px; border-top: 1px solid var(--line); transition: border-color .2s; }
a.text-card:hover { border-color: var(--navy); }
.card-arrow { color: var(--muted); transition: transform .2s, color .2s; font-weight: 400; }
a.card:hover .card-arrow { transform: translateX(4px); color: var(--navy); }

/* Bilde + tekst */
.image-text { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.image-text.img-right .it-img { order: 2; }
.it-img { position: sticky; top: 104px; }
.it-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.img-credit { font-size: .72rem; color: var(--muted); margin: 6px 0 0; }
.it-text .block-title { font-size: clamp(1.5rem, 2.6vw, 2rem); text-transform: none; letter-spacing: -.02em; margin-bottom: .4em; }
.it-text .prose > p:first-child { color: var(--muted); }
.it-text .prose ul { list-style: none; padding: 0; columns: 2; column-gap: 32px; font-size: .95rem; margin-top: 1.4em; }
.it-text .prose li { break-inside: avoid; padding: 8px 0; margin: 0; border-top: 1px solid var(--line); }
.block-image_text + .block-image_text { padding-top: 0; }
@media (max-width: 860px) { .image-text { grid-template-columns: 1fr; gap: 32px; } .image-text.img-right .it-img { order: 0; } .it-img { position: static; } }
@media (max-width: 480px) { .it-text .prose ul { columns: 1; } }

/* Punktliste */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 32px; }
.checklist li { padding: 12px 0; border-top: 1px solid var(--line); }

/* Galleri */
.gallery { display: grid; gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s; }
.gallery a:hover img { opacity: .9; }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.block-gallery .cols-2 img { aspect-ratio: auto; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,12,20,.96); display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: calc(100vh - 140px); max-width: 100%; width: auto; margin: 0 auto; }
.lightbox figcaption { color: rgba(255,255,255,.75); font-size: .9rem; margin-top: 12px; min-height: 1.2em; }
.lightbox button { position: absolute; background: none; border: 0; color: rgba(255,255,255,.75); cursor: pointer; font: 300 2.6rem/1 var(--font); padding: 12px 16px; }
.lightbox button:hover { color: #fff; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 22px; left: 24px; color: rgba(255,255,255,.6); font-size: .85rem; letter-spacing: .08em; }
.gallery a[data-lightbox] { cursor: zoom-in; display: block; }
@media (max-width: 600px) { .lightbox { padding: 56px 8px; } .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } }

/* Prosjektfilter */
.filter { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 40px; }
.filter button { font: inherit; font-size: .95rem; padding: 4px 0; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; color: var(--muted); }
.filter button:hover { color: var(--ink); }
.filter button.active { color: var(--ink); border-color: var(--navy); }
.project-card[hidden] { display: none; }
.more { margin-top: 28px; text-align: left; }

/* Prosjektside: fakta + tekst */
.project-intro { display: grid; grid-template-columns: 280px 1fr; gap: 64px; }
.facts { margin: 0; }
.facts div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; }
@media (max-width: 760px) { .project-intro { grid-template-columns: 1fr; gap: 24px; } }

/* Referanseliste (navn + år) */
.ref-list { list-style: none; margin: 0; padding: 0; columns: 2 340px; column-gap: 56px; }
.ref-list li { break-inside: avoid; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.ref-year { color: var(--muted); font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ref-list li[hidden], .ref-group[hidden] { display: none; }
.ref-group { margin-top: 36px; }
.ref-group h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.ref-details summary { cursor: pointer; list-style: none; display: inline-flex; gap: 6px; align-items: baseline; padding: 10px 18px; border: 1px solid var(--line); font-weight: 500; }
.ref-details summary::-webkit-details-marker { display: none; }
.ref-details summary::after { content: "+"; margin-left: 6px; color: var(--muted); }
.ref-details[open] summary::after { content: "–"; }
.ref-details summary:hover { border-color: var(--ink); }
.ref-count { color: var(--muted); font-weight: 400; }
.ref-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }
.ref-link:hover { color: var(--green); }
.ref-link::after { content: " ▸ bilde"; font-size: .78rem; color: var(--muted); text-decoration: none; display: inline-block; margin-left: 4px; }
.ref-card::after { content: " → prosjekt"; }
.ref-credits { margin-top: 28px; font-size: .78rem; color: var(--muted); }
.ref-credits a { color: inherit; }

/* Personer */
.people { gap: 0 32px; }
.person { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.person h3 { margin-bottom: .1em; font-size: 1.05rem; }
.person p { margin: 0; font-size: .95rem; }
.person a { text-decoration: none; color: var(--ink); }
.person a:hover { color: var(--navy); text-decoration: underline; }
.role { color: var(--muted); margin-bottom: .5em !important; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.initials { display: none; }

/* Avslutning med knapp */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .2em; font-size: 1.4rem; }
.cta p { margin: 0; color: var(--muted); }
.bg-blue .cta p { color: rgba(255,255,255,.8); }
.block-cta { padding: 48px 0; }

/* Nøkkeltall */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.stat { padding-top: 20px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: var(--head-weight); letter-spacing: var(--head-track); color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Logoer */
.logos { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 24px 56px; }
.logos img { max-height: 72px; width: auto; mix-blend-mode: multiply; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logos img:hover { filter: none; opacity: 1; }

/* Filer */
.files { list-style: none; padding: 0; margin: 0; }
.files a { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.files a:hover { color: var(--navy); }
.file-ico { font-size: .65rem; font-weight: 700; border: 1px solid currentColor; padding: 3px 6px; letter-spacing: .05em; }

/* Kart */
.map-block { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: stretch; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(1); }
@media (max-width: 860px) { .map-block { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Bunn ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,.6); font-size: .85rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
/* bunntekst: samme oppsett som før, men lavere blått felt */
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px 32px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 12px; }
.footer-logo { height: 20px; width: auto; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: .9rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 4px 0; padding-top: 10px; padding-bottom: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom > * + *::before { content: "·"; margin: 0 10px; color: rgba(255,255,255,.35); }
@media (max-width: 520px) { .wrap { padding-left: 20px; padding-right: 20px; } .subpanel { padding-left: 20px !important; padding-right: 20px !important; } .footer-bottom > * + *::before { content: none; }
  /* bunntekst på mobil: spredt til begge sider */
  .footer-bottom { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-top: 14px; padding-bottom: 20px; }
  .footer-bottom > :nth-child(1) { grid-area: 1 / 1; }
  .footer-bottom > :nth-child(2) { grid-area: 2 / 1; }
  .footer-bottom > :nth-child(3) { grid-area: 1 / 2; justify-self: end; }
  .footer-bottom > :nth-child(4) { grid-area: 2 / 2; justify-self: end; }
  .footer-bottom > :nth-child(5) { grid-area: 3 / 1; }
}

/* ---------- Skriftvalg (settes i Innstillinger) ---------- */
html[data-font="schibsted"] { --font: "Schibsted Grotesk", system-ui, sans-serif; --font-head: var(--font); --head-weight: 600; --head-track: -.025em; }
html[data-font="instrument"] { --font: "Instrument Sans", system-ui, sans-serif; --font-head: "Instrument Serif", Georgia, serif; --head-weight: 400; --head-track: -.01em; }
html[data-font="instrument"] h1, html[data-font="instrument"] .hero-title { font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1.02; }
html[data-font="instrument"] h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
html[data-font="instrument"] .stat strong { font-size: clamp(2.2rem, 4vw, 3.2rem); }
html[data-font="instrument"] .hero-large .hero-title { font-size: clamp(2.8rem, 6.5vw, 5rem); }
html[data-font="instrument"] .card-body h3, html[data-font="instrument"] .person h3 { font-family: var(--font); font-weight: 600; letter-spacing: -.01em; }
html[data-font="archivo"] { --font: "Archivo", system-ui, sans-serif; --font-head: "Archivo", system-ui, sans-serif; --head-weight: 700; --head-track: -.02em; }
html[data-font="archivo"] h1, html[data-font="archivo"] .hero-title, html[data-font="archivo"] .stat strong { font-stretch: 112%; text-transform: none; }
html[data-font="inter"] { --font: "Inter", system-ui, sans-serif; }

/* Skriftvelger – kun i lokal forhåndsvisning */
.font-picker { position: fixed; right: 16px; bottom: 16px; z-index: 300; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 10px 12px; font: 13px/1.3 system-ui, sans-serif; }
.font-picker strong { display: block; margin-bottom: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.font-picker button { display: block; width: 100%; text-align: left; font: inherit; padding: 6px 8px; border: 0; background: none; cursor: pointer; }
.font-picker button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Kontaktinfo bak klikk */
.reveal { font: inherit; font-size: .9rem; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 2px 0; cursor: pointer; margin-top: 4px; }
.reveal:hover { color: var(--navy); border-color: var(--navy); }
.revealed { display: flex; flex-direction: column; gap: 2px; font-size: .95rem; margin-top: 2px; }

/* Grønn aksent – brukes kun på miljøtall, så den skiller seg ut */
:root { --green: #2B5B45; --green-light: color-mix(in srgb, var(--green) 45%, #fff); }
.stats-green .stat { border-top: 2px solid var(--green); }
.stats-green .stat strong { color: var(--green); }
.accent-green .block-head { border-top-color: var(--green); }
.accent-green .block-title { color: var(--green); }
.head-link { margin: 0; margin-left: auto; font-size: .92rem; }
.accent-green .head-link a:hover { color: var(--green); border-color: var(--green); }
.stats-green .stat strong { font-size: clamp(1.3rem, 2.2vw, 1.85rem); }
.stats-green { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
@media (max-width: 760px) { .stats-green { grid-template-columns: repeat(2, 1fr); } }
.stats-green .stat strong { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 500; letter-spacing: -.01em; }
.stats-green .stat { padding-top: 14px; }
.stats-green { row-gap: 20px; }
/* «Stor overskrift» på en blokk: større overskrift, mindre punkter (Leveranser og Miljø på forsiden, 16.11) */
.head-large .block-title { font-family: var(--font-head); font-size: clamp(1.3rem, 2vw, 1.6rem); text-transform: none; letter-spacing: -.01em; font-weight: var(--head-weight); }
.head-large .stats-green .stat strong { font-size: clamp(.95rem, 1.15vw, 1.05rem); font-weight: 500; letter-spacing: 0; }
.head-large .stats-green .stat { padding-top: 10px; }
.head-large .card-body h3 { font-size: 1.02rem; }
.head-large .card-body p { font-size: .88rem; }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .cols-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-5 { grid-template-columns: 1fr; } }

/* Grønt innslag øverst: tynn stripe over hele toppen og kort strek over overskriften i toppbildet */
.site-header { border-bottom: 3px solid var(--green); }
.nav-item > a::after, .nav-toggle-sub::after { background: var(--green); }
.hero-accent { display: block; width: 40px; height: 3px; background: color-mix(in srgb, var(--green) 45%, #fff); margin-bottom: 16px; }
.hero.no-img .hero-accent { background: var(--green); }
.hero-large .hero-sub { font-size: clamp(1.1rem, 1.8vw, 1.4rem); opacity: .95; margin-bottom: 0; }

/* Slagord under logoen */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; text-decoration: none; }
.logo-tagline { font-size: .72rem; line-height: 1.2; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) { .logo-tagline { font-size: .66rem; } }

.font-picker .picker-gap { margin-top: 10px; }
.font-picker [data-g] { display: flex; align-items: center; gap: 8px; }
.font-picker [data-g] i { width: 14px; height: 14px; border-radius: 2px; flex-shrink: 0; }
.font-picker [data-g] small { opacity: .6; margin-left: auto; font-size: 11px; }

/* Toppseksjon: tekst og bilde side om side (stram variant) */
.hero-split { padding: 56px 0 8px; }
.split-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: end; }
.split-text { padding-bottom: 4px; }
.split-text .hero-accent { background: var(--green); }
.split-text .eyebrow { color: var(--muted); opacity: 1; }
.split-text .hero-title { color: var(--ink); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; max-width: 16ch; margin: 0; }
.split-text .hero-sub { color: var(--muted); opacity: 1; margin: 16px 0 0; }
.split-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.hero-split + .block { padding-top: 56px; }
@media (max-width: 760px) {
  .hero-split { padding-top: 32px; }
  .split-inner { grid-template-columns: 1fr; gap: 24px; }
  .split-text .hero-title { max-width: none; }
}
.font-picker summary { cursor: pointer; font-size: 12px; font-weight: 600; list-style: none; }
.font-picker summary::-webkit-details-marker { display: none; }
.font-picker summary::before { content: "◐ "; color: var(--green); }
.font-picker[open] summary { margin-bottom: 8px; }
.split-text .hero-accent { display: none; }
.split-text .hero-title { color: var(--green); }
.split-text .hero-sub { font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero-split + .block-stats { padding-top: 48px; }
.hero-split + .block-text { padding-top: 40px; }
.hero-split + .block-text .prose { font-size: 1.1rem; color: var(--ink); }
.hero-split + .block-text + .block-stats { padding-top: 8px; }
.hero-split + .block-text { padding-bottom: 36px; }
/* Balanse i toppseksjonen: tekst sentrert mot bildet, ingress under tittelen */
.split-inner { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 64px; }
.split-text .hero-title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); max-width: 18ch; }
.split-text .hero-sub { color: #3b404c; font-size: 1.05rem; line-height: 1.6; max-width: 44ch; margin-top: 20px; }
.hero-split { padding-bottom: 0; }
.hero-split + .block-stats { padding-top: 56px; }

/* ---------- Varianter av toppseksjonen ---------- */
/* B. Speilvendt */
.hero-split-reverse .split-inner { grid-template-columns: 1.1fr 1fr; }
.hero-split-reverse .split-img { order: -1; }
/* C. Grønn flate */
.hero-split-green { padding: 0; }
.hero-split-green .split-inner { max-width: none; padding: 0; gap: 0; grid-template-columns: 1fr 1.1fr; align-items: stretch; }
.hero-split-green .split-text { background: var(--green); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 56px max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); padding-right: 56px; }
.hero-split-green .split-text .hero-title { color: #fff; }
.hero-split-green .split-text .hero-sub { color: rgba(255,255,255,.85); }
.hero-split-green .split-img img { height: 100%; aspect-ratio: auto; min-height: 380px; }
/* D. Tittel over, bredt bilde under */
.hero-stacked { padding: 56px 0 0; }
.stack-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 32px; }
.stack-head .hero-title { color: var(--green); font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.08; margin: 0; max-width: 18ch; }
.stack-head .hero-sub { color: #3b404c; font-size: 1.05rem; line-height: 1.6; margin: 0; max-width: 46ch; }
.stack-img img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.hero-stacked + .block-stats { padding-top: 56px; }
/* E. Bilde med tekstboks */
.hero-overlap { padding: 32px 0 0; }
.hero-overlap .wrap { position: relative; }
.overlap-img img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
/* flere toppbilder som tones over i hverandre */
.overlap-img.rotate { position: relative; }
.overlap-img.rotate img { position: relative; opacity: 0; transition: opacity .8s ease-in-out; }
.overlap-img.rotate img + img { position: absolute; inset: 0; height: 100%; }
.overlap-img.rotate img.on { opacity: 1; z-index: 2; }            /* nytt bilde tones inn oppå … */
.overlap-img.rotate img.prev { opacity: 1; z-index: 1; transition: none; }   /* … det forrige, som står til overgangen er ferdig */
@media (prefers-reduced-motion: reduce) { .overlap-img.rotate img { transition: none; } }
.overlap-card { position: relative; z-index: 3; margin: -120px 0 0 40px; width: min(560px, calc(100% - 80px)); background: #fff; padding: 36px 40px 32px; box-shadow: 0 20px 40px rgba(10,25,94,.08); }
.overlap-card .hero-accent { display: none; }
.overlap-card .hero-title { color: var(--green); font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.1; margin: 0; }
.overlap-card .hero-sub { color: #3b404c; font-size: 1rem; line-height: 1.6; margin: 16px 0 0; opacity: 1; }
.hero-overlap + .block-stats { padding-top: 48px; }
@media (max-width: 760px) {
  .hero-split-reverse .split-inner, .hero-split-green .split-inner { grid-template-columns: 1fr; }
  .hero-split-green .split-text { padding: 40px 20px; }
  .hero-split-green .split-img img { min-height: 220px; }
  .stack-head { grid-template-columns: 1fr; gap: 16px; }
  .stack-img img { aspect-ratio: 16 / 10; }
  .overlap-card { margin: -40px 12px 0; width: auto; padding: 24px; }
}
.variant-label { background: #fff6d6; border-top: 2px solid #e2c55a; border-bottom: 1px solid #efe1a6; padding: 10px 0; font-size: .9rem; font-weight: 600; margin-top: 24px; }
.variant-label code { font-weight: 400; color: var(--muted); margin-left: 8px; }
