/* Ag Entreprenør – «Grunnstoff nr. 47». Alle farger og fonter defineres her. */
:root {
  --color-bg: #e9ecea;
  --color-surface: #f6f7f6;
  --color-text: #141b1e;
  --color-text-muted: #4a5559;
  --color-accent: #00636d;
  --color-accent-muted: #cfe8ea;
  --font-display: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --font-body: 'Saira', 'Segoe UI', system-ui, sans-serif;

  --color-accent-hover: #004c54;
  --color-brand: #00a3b4;
  --color-brand-hover: #2fc0cf;
  --color-ink: #141b1e;
  --color-ink-2: #1e292d;
  --color-on-ink: #eef1f0;
  --color-on-ink-soft: #cbd3d5;
  --color-on-ink-muted: #a3afb2;
  --color-line: #c7cecc;
  --color-line-strong: #737e82;
  --color-line-ink: #34424a;
  --color-white: #ffffff;
  --color-silver-1: #fbfcfc;
  --color-silver-2: #d6dcdb;
  --color-error: #a8231b;
  --color-error-soft: #f8e4e2;
  --color-shadow: rgba(8, 12, 14, 0.35);
  --color-focus: var(--color-accent);

  --header-h: 64px;
  --gutter: 1rem;
  --r: 14px;
  --r-lg: 24px;
}


/* Minimal nullstilling, lik Tailwinds preflight, så første opptegning ikke flytter seg */
*, ::before, ::after { box-sizing: border-box; border: 0 solid; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, svg { max-width: 100%; }
img { display: block; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; margin: 0; }
button { background-color: transparent; padding: 0; cursor: pointer; }
fieldset { min-width: 0; }
a { text-decoration: inherit; }

@media (min-width: 600px) { :root { --gutter: 1.5rem; } }
@media (min-width: 900px) { :root { --header-h: 76px; } }
@media (min-width: 1180px) { :root { --gutter: 2.5rem; } }

html {
  background-color: var(--color-ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  background-color: var(--color-ink);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.tel, .cl-big, .reel-count, .fag-hint, .people-count, .ledger-num, .header-phone, .element-no { font-variant-numeric: tabular-nums; }
html.dialog-open, html.dialog-open body { overflow: hidden; }

main > section { overflow-x: clip; }
main { outline: none; }
[id] { scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top) + 8px); }

h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; }
.link, .cl-link, .footer-legal a, .link-ink, .prose-ag a { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.site-header, .hero, .section-ink, .site-footer, .takeover-menu, .action-bar { --color-focus: var(--color-brand); }

[data-lucide], svg.lucide { display: inline-block; width: 1.15em; height: 1.15em; flex: none; }

.skip-link {
  position: absolute; left: 1rem; top: -120px; z-index: 100;
  background: var(--color-brand); color: var(--color-ink);
  padding: .75rem 1rem; font-weight: 600; border-radius: 10px 10px 0 10px;
}
.skip-link:focus { top: calc(.5rem + env(safe-area-inset-top)); }

/* ---------- Typografi ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before {
  content: ""; width: .6rem; height: .7rem; background: currentColor;
  border-radius: 3px 3px 0 3px;
}
.eyebrow-ink { color: var(--color-brand); }
@media (max-width: 599.98px) { .eyebrow { font-size: .75rem; letter-spacing: .1em; } }
.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.01em;
  margin-top: .5rem;
}
.h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 1.18rem + .6vw, 1.75rem); line-height: 1.2; }
.h4 { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--color-text-muted); margin-top: .75rem; max-width: 60ch; }
.section-ink .lead { color: var(--color-on-ink-soft); }
.link { color: var(--color-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* Lenker i løpende tekst: trykkflate på 44 px uten å endre linjeavstanden */
.link, .prose-ag a, .menu-meta a { display: inline-block; padding-block: .8rem; margin-block: -.8rem; }
.link:hover { color: var(--color-accent-hover); text-decoration-thickness: 2px; }
.link-ink { color: var(--color-on-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.25rem;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  border: 1.5px solid transparent; border-radius: 12px 12px 0 12px;
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--color-accent); color: var(--color-white); }
.btn-primary:hover { background: var(--color-accent-hover); }
.site-header .btn-primary, .hero .btn-primary, .takeover-menu .btn-primary, .action-bar .btn-primary, .section-ink .btn-primary {
  background: var(--color-brand); color: var(--color-ink);
}
.site-header .btn-primary:hover, .hero .btn-primary:hover, .takeover-menu .btn-primary:hover, .action-bar .btn-primary:hover, .section-ink .btn-primary:hover {
  background: var(--color-brand-hover);
}
.btn-ghost { border-color: var(--color-line-strong); color: var(--color-text); background: transparent; }
.btn-ghost:hover { background: var(--color-accent-muted); border-color: var(--color-accent); }
.btn-ghost-ink { border-color: var(--color-line-ink); color: var(--color-on-ink); background: transparent; }
.btn-ghost-ink:hover { background: var(--color-ink-2); border-color: var(--color-on-ink-muted); }
.btn-lg { min-height: 56px; padding: .9rem 1.4rem; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .95rem; }
.btn[disabled] { cursor: progress; transform: none; background: var(--color-text-muted); }

/* ---------- Toppstripe ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background-color: var(--color-ink); color: var(--color-on-ink);
  border-bottom: 1px solid var(--color-line-ink);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; text-decoration: none; flex: none; }
.brand-mark { width: auto; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--color-on-ink); }
.brand-tag { font-size: .8125rem; color: var(--color-brand); letter-spacing: .04em; display: none; }
@media (min-width: 1180px) { .brand-tag { display: block; } .brand-mark { height: 46px; } }
@media (max-width: 399.98px) { .brand-text { display: none; } .site-header > div { gap: .6rem; } }
@media (min-width: 900px) and (max-width: 1099.98px) { .brand-text { display: none; } }
.brand:hover .brand-name { color: var(--color-brand); }
.brand:hover .brand-mark { transform: translateY(-1px); }
.brand-mark, .brand-name { transition: color .2s ease, transform .2s ease; }
.brand { min-width: 44px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .7rem;
  color: var(--color-on-ink-soft); text-decoration: none; font-weight: 500; border-radius: 10px 10px 0 10px; white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.site-header .btn { white-space: nowrap; }
.main-nav a:hover { color: var(--color-on-ink); background: var(--color-ink-2); }
.main-nav a[aria-current="true"] { color: var(--color-on-ink); box-shadow: inset 0 -2px 0 var(--color-brand); }
.header-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-width: 44px; min-height: 44px; padding: .4rem .6rem;
  color: var(--color-on-ink); text-decoration: none; font-weight: 600; border-radius: 10px 10px 0 10px;
  transition: background-color .2s ease;
}
.header-phone:hover { background: var(--color-ink-2); }
.menu-btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem;
  color: var(--color-on-ink); background: var(--color-ink-2); font-weight: 600;
  border: 1px solid var(--color-line-ink); border-radius: 10px 10px 0 10px; cursor: pointer;
  transition: border-color .2s ease;
}
.menu-btn:hover { border-color: var(--color-brand); }

/* ---------- Heltedel ---------- */
.hero { background-color: var(--color-ink); color: var(--color-on-ink); padding-bottom: 2rem; }
.hero-grid { display: grid; }
.hero-media { position: relative; margin: 0 calc(var(--gutter) * -1); }
.hero-media picture img { display: block; width: 100%; height: clamp(220px, 37svh, 440px); object-fit: cover; object-position: 50% 42%; }
.element-tile {
  position: absolute; left: var(--gutter); bottom: 1rem; width: 66px;
  filter: drop-shadow(0 10px 18px var(--color-shadow));
}
.element-tile img { display: block; width: 100%; height: auto; }
.element-no {
  position: absolute; top: 7%; left: 11%;
  font-weight: 600; font-size: .75rem; line-height: 1; color: var(--color-ink);
}
.element-mass { display: none; }
.hero-caption { display: none; }
.hero-copy { padding-top: 1.35rem; }
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.45rem, 1.45rem + 4.1vw, 4.9rem); line-height: 1.02; letter-spacing: -.015em;
  margin-top: .6rem;
}
.hero-title span { display: block; }
.hero-lead { margin-top: .9rem; font-size: clamp(1.02rem, .95rem + .45vw, 1.3rem); line-height: 1.6; color: var(--color-on-ink-soft); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.hero-actions .btn-primary { flex: 1 1 auto; }
.hero-note { margin-top: 1rem; font-size: .9375rem; color: var(--color-on-ink-muted); max-width: 44ch; }
@media (max-width: 599.98px) {
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .hero-actions .btn-lg { padding-inline: .9rem; }
  .hero-actions .btn-ghost-ink .num { display: none; }
  .hero-note { display: none; }
}
@media (max-width: 419.98px) {
  .hero-actions .btn-primary svg, .hero-actions .btn-primary i { display: none; }
}
@media (max-width: 359.98px) {
  .hero-actions .btn-ghost-ink .short { display: none; }
  .hero-actions .btn-ghost-ink { min-width: 56px; }
}
@media (min-width: 600px) {
  .hero-actions .btn-ghost-ink .short { display: none; }
  .hero-actions .btn-primary { flex: 0 1 auto; }
}
@media (max-width: 899.98px) and (max-height: 720px) {
  .hero-copy { display: flex; flex-direction: column; }
  .hero-actions { order: 3; margin-top: 1.1rem; }
  .hero-lead { order: 4; margin-top: 1rem; }
  .hero-note { order: 5; }
  .hero-media picture img { height: clamp(140px, 27svh, 260px); }
  .hero-title { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3rem); }
}
@media (max-width: 899.98px) and (max-height: 480px) and (min-width: 560px) {
  .hero { padding: 1rem 0 1.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.5rem; align-items: center; }
  .hero-media { margin: 0; }
  .element-tile { width: 50px; left: .6rem; bottom: .6rem; }
  .element-no { font-size: .625rem; }
  .hero-media picture img { height: calc(100svh - var(--header-h) - 2.5rem); min-height: 200px; border-radius: 20px 20px 0 20px; }
  .hero-copy { padding-top: 0; }
  .hero-title { font-size: 2rem; }
  .hero-title span { display: inline; }
  .hero-lead, .hero-note { display: none; }
  .hero-actions .btn-ghost-ink .num { display: none; }
  .hero-actions .btn-ghost-ink .short { display: inline; }
  .hero-actions .btn-lg { padding-inline: 1rem; }
}
@media (min-width: 600px) and (max-width: 899.98px) {
  .hero-media picture img { object-position: 50% 58%; }
}
@media (min-width: 900px) {
  .hero { padding: clamp(2.5rem, 5vh, 4.5rem) 0 clamp(3.5rem, 7vh, 6rem); }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; min-height: min(calc(100svh - var(--header-h) - 9rem), 640px); }
  .hero-copy { order: -1; padding-top: 0; }
  .hero-media { margin: 0 0 0 1.5rem; }
  .hero-media picture img { height: auto; aspect-ratio: 16 / 10; border-radius: 32px 32px 0 32px; object-position: 50% 50%; }
  .element-tile { left: -2.75rem; bottom: -2.5rem; width: clamp(108px, 9vw, 150px); }
  .element-no { font-size: clamp(.8rem, .7vw, 1rem); }
  .element-mass { display: block; margin-top: .35rem; font-size: .8125rem; color: var(--color-on-ink-muted); text-align: left; padding-left: .2rem; }
  .hero-caption { display: block; text-align: right; margin-top: .75rem; font-size: .875rem; color: var(--color-on-ink-muted); }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html.anim .hero .reveal { animation: rise .4s ease both; animation-delay: var(--d, 0ms); }
html.anim main > section:not(.hero) .reveal { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s ease; }
html.anim main > section:not(.hero) .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Bevisrad ---------- */
.ledger { background-color: var(--color-bg); border-bottom: 1px solid var(--color-line); }
.ledger-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ledger-item { display: flex; flex-direction: column; gap: .2rem; padding: 1rem .75rem 1rem 0; }
.ledger-item:nth-child(even) { padding-left: .9rem; border-left: 1px solid var(--color-line); }
.ledger-item:nth-child(n+3) { border-top: 1px solid var(--color-line); }
.ledger-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1; color: var(--color-text); hyphens: manual; }
.ledger-word { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 2rem); line-height: 1.05; }
.ledger-txt { font-size: .875rem; line-height: 1.45; color: var(--color-text-muted); }
@media (min-width: 900px) {
  .ledger-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ledger-item { padding: 1.6rem 1.5rem; border-left: 1px solid var(--color-line); }
  .ledger-item:first-child { border-left: 0; padding-left: 0; }
  .ledger-item:nth-child(n+3) { border-top: 0; }
  .ledger-txt { font-size: .9375rem; }
}

/* ---------- Seksjoner ---------- */
.section { padding-block: clamp(3rem, 2rem + 4vw, 7rem); }
.section-light { background-color: var(--color-bg); }
.section-surface { background-color: var(--color-surface); }
.section-ink { background-color: var(--color-ink); color: var(--color-on-ink); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.4rem, 1rem + 2vw, 3rem); }

/* ---------- Grunnstoffene (signaturgrep) ---------- */
.fag-tiles {
  display: flex; gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: .35rem var(--gutter) .6rem; scroll-padding-inline: var(--gutter);
}
.fag-tiles::-webkit-scrollbar { display: none; }
.tile {
  position: relative; flex: 0 0 6.6rem; scroll-snap-align: start;
  display: grid; grid-template-rows: auto 1fr auto; align-items: start; text-align: left;
  aspect-ratio: 5 / 6; padding: .55rem .6rem .6rem;
  background: linear-gradient(150deg, var(--color-silver-1) 0%, var(--color-silver-2) 100%);
  border: 1px solid var(--color-line); border-radius: 16px 16px 0 16px; color: var(--color-text);
  cursor: pointer; transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.tile:hover { transform: translateY(-2px); border-color: var(--color-accent); }
.tile-no { font-size: .875rem; font-weight: 600; line-height: 1; color: var(--color-text-muted); }
.tile-sym { font-family: var(--font-display); font-weight: 700; font-size: 2.15rem; line-height: 1; align-self: center; }
.tile-name { font-size: .875rem; font-weight: 600; line-height: 1.15; }
.tile[aria-selected="true"] { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-ink); }
.tile[aria-selected="true"] .tile-sym { color: var(--color-white); }
.tile[aria-selected="true"] .tile-no { color: var(--color-ink); }
.fag-hint { font-size: .875rem; color: var(--color-text-muted); margin: .1rem 0 .9rem; }
@media (min-width: 740px) { .fag-hint { display: none; } .fag-tiles { margin-bottom: .9rem; } }
.fag-panel {
  display: grid; gap: 1.1rem; padding: .75rem .75rem 1.25rem;
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--r-lg) var(--r-lg) 0 var(--r-lg);
}
.fag-panel[hidden], .aud-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .fag-panel.is-entering, .aud-panel.is-entering { animation: panelIn .3s ease; }
}
@keyframes panelIn { from { transform: translateY(8px); } to { transform: none; } }
.fag-fig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px 16px 0 16px; }
.fag-fig figcaption { margin-top: .6rem; font-size: .9375rem; line-height: 1.5; color: var(--color-text-muted); }
.fag-fig figcaption strong { color: var(--color-text); }
.fag-body { padding: 0 .25rem; }
.fag-body > p { margin-top: .7rem; }
.fag-body .btn { margin-top: 1rem; }
.more { margin-top: .5rem; }
.more summary {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  font-weight: 600; color: var(--color-accent); cursor: pointer; list-style: none;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
.more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.more summary:hover { color: var(--color-accent-hover); }
.checks { display: grid; gap: .35rem; margin-top: .25rem; }
.checks li, .perks li { position: relative; padding-left: 1.6rem; line-height: 1.5; }
.checks li::before, .perks li::before {
  content: ""; position: absolute; left: .2rem; top: .32em; width: .45rem; height: .8rem;
  border-right: 2.5px solid var(--color-accent); border-bottom: 2.5px solid var(--color-accent); transform: rotate(40deg);
}
.contact-row {
  display: flex; align-items: center; gap: .8rem; margin-top: 1rem; padding: .65rem .75rem;
  background: var(--color-bg); border-radius: var(--r) var(--r) 0 var(--r);
}
.contact-row p { display: flex; flex-direction: column; line-height: 1.3; }
.contact-face { width: 52px; height: 52px; flex: none; border-radius: 12px 12px 0 12px; object-fit: cover; }
.contact-face-icon { display: inline-flex; align-items: center; justify-content: center; background: var(--color-brand); color: var(--color-ink); }
.contact-label { font-size: .875rem; color: var(--color-text-muted); }
.contact-name { font-weight: 600; }
.tel { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; color: var(--color-accent); text-decoration: none; white-space: nowrap; }
.contact-row .tel { min-height: 44px; }
.tel:hover { color: var(--color-accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.quote { margin-top: .9rem; padding-left: 1rem; border-left: 3px solid var(--color-brand); }
.quote blockquote p { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; line-height: 1.35; color: var(--color-text); }
.quote figcaption { margin-top: .35rem; font-size: .9375rem; color: var(--color-text-muted); }
@media (min-width: 600px) {
  .fag-panel { padding: 1rem 1rem 1.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: start; }
}
@media (min-width: 900px) {
  .fag-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin: 0 0 1.25rem; padding: 0; }
  .tile { aspect-ratio: 5 / 5.4; padding: .7rem .8rem .75rem; }
  .tile-sym { font-size: clamp(2.3rem, 1.4rem + 1.6vw, 3rem); }
  .fag-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; padding: 1.25rem; align-items: start; }
  .fag-body { padding: .5rem .5rem .5rem 0; }
  .contact-row .tel { min-height: 44px; }
}
@media (min-width: 1180px) {
  .fag-wrap { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .fag-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; position: sticky; top: calc(var(--header-h) + 1.5rem); margin: 0; }
  .tile { aspect-ratio: 5 / 6; border-radius: 22px 22px 0 22px; }
  .tile-sym { font-size: 3.2rem; }
  .fag-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .fag-fig { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* ---------- Prosjekter ---------- */
.prj-head { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 900px) { .prj-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem; } .prj-head > div { min-width: 0; } .prj-head .segmented { flex: none; overflow: visible; } }
.segmented {
  display: inline-flex; gap: 4px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; align-self: flex-start;
  background: var(--color-ink-2); border: 1px solid var(--color-line-ink); border-radius: 14px 14px 0 14px;
}
.segmented::-webkit-scrollbar { display: none; }
.seg {
  flex: none; min-height: 44px; padding: 0 .85rem; font-weight: 600; font-size: .9375rem; white-space: nowrap;
  color: var(--color-on-ink-soft); border-radius: 10px 10px 0 10px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.seg:hover { color: var(--color-on-ink); background: var(--color-line-ink); }
.seg[aria-pressed="true"], .seg[aria-selected="true"] { background: var(--color-brand); color: var(--color-ink); }
@media (max-width: 419.98px) { .seg { padding: 0 .6rem; font-size: .875rem; } }
.segmented-light { margin-top: 1.4rem; background: var(--color-surface); border-color: var(--color-line); }
.segmented-light .seg { color: var(--color-text-muted); }
.segmented-light .seg:hover { color: var(--color-text); background: var(--color-accent-muted); }
.segmented-light .seg[aria-selected="true"] { background: var(--color-accent); color: var(--color-white); }

.reel-wrap { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.reel {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding-inline: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
  padding-block: .25rem .5rem;
}
.reel::-webkit-scrollbar { display: none; }
.prj:focus-visible { outline-offset: 4px; }
.prj { flex: 0 0 76%; max-width: 330px; scroll-snap-align: start; border-radius: 18px 18px 0 18px; }
.prj[hidden] { display: none; }
.prj img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px 18px 0 18px; transition: transform .3s ease; }
.prj picture { display: block; overflow: hidden; border-radius: 18px 18px 0 18px; }
.prj:hover img { transform: scale(1.03); }
.prj-tag { margin-top: .9rem; font-size: .875rem; font-weight: 600; color: var(--color-brand); }
.prj-title { margin-top: .15rem; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.prj-txt { margin-top: .35rem; font-size: .9375rem; line-height: 1.5; color: var(--color-on-ink-soft); }
@media (min-width: 600px) { .prj { flex-basis: 300px; } }
@media (min-width: 900px) { .prj { flex-basis: 300px; } }
.reel-ctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; }
.reel-count { font-weight: 600; color: var(--color-on-ink-soft); }
.round-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid var(--color-line-ink); border-radius: 14px 14px 0 14px; color: var(--color-on-ink); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.round-btn:hover { background: var(--color-ink-2); border-color: var(--color-brand); }
.round-btn[disabled] { cursor: default; color: var(--color-line-ink); border-color: var(--color-ink-2); background: transparent; }

/* ---------- Slik jobber vi ---------- */
@media (min-width: 1180px) {
  .slik-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .slik-grid > .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.steps { counter-reset: s; }
.steps li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--color-line); }
.steps li:last-child { border-bottom: 1px solid var(--color-line); }
.steps p { margin-top: .2rem; color: var(--color-text-muted); font-size: 1rem; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.9rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  background: var(--color-brand); color: var(--color-ink); border-radius: 10px 10px 0 10px;
}
.aud-panel > .btn { margin-top: 1.5rem; }
.proof-list { display: grid; gap: 1.1rem; }
.proof-list li { display: flex; gap: .9rem; }
.proof-list li > svg, .proof-list li > i { width: 1.5rem; height: 1.5rem; color: var(--color-accent); margin-top: .1rem; }
.proof-list p { margin-top: .15rem; color: var(--color-text-muted); font-size: 1rem; }
@media (min-width: 600px) { .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; } }
.office-note {
  display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: .7rem;
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--r) var(--r) 0 var(--r);
}
.office-note img { width: 7rem; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px 10px 0 10px; flex: none; }
.office-note p { font-size: .9375rem; line-height: 1.5; }

/* ---------- Folka og jobb ---------- */
@media (min-width: 1180px) { .folka-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: end; } }
.big-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-top: .6rem; }
.big-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 3rem + 9vw, 10rem); line-height: .85; color: var(--color-accent); letter-spacing: -.03em; }
.big-cap { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.8rem); line-height: 1.08; max-width: 12ch; }
.quote-big { margin-top: 1.75rem; }
.quote-big blockquote p { font-size: clamp(1.3rem, 1.05rem + 1.2vw, 2rem); line-height: 1.3; }
@media (min-width: 1180px) { .quote-big { margin-top: 0; } }
.people-wrap { margin-top: 1rem; }
.people {
  display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: .25rem var(--gutter) .5rem; scroll-padding-inline: var(--gutter);
}
.people::-webkit-scrollbar { display: none; }
.person {
  flex: 0 0 82%; max-width: 330px; scroll-snap-align: start; display: flex; gap: .9rem; align-items: center;
  padding: .65rem; background: var(--color-bg); border: 1px solid var(--color-line); border-radius: 18px 18px 0 18px;
}
.person img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px 12px 0 12px; flex: none; }
.person > div { display: flex; flex-direction: column; min-width: 0; }
.person-name { font-weight: 600; line-height: 1.25; text-wrap: balance; }
.person-role { font-size: .875rem; color: var(--color-text-muted); }
.person .tel, .person .mail { min-height: 44px; font-size: .9375rem; }
.mail { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; color: var(--color-accent); text-decoration: none; }
.mail:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--color-accent-hover); }
.people-count { margin-top: .4rem; font-size: .875rem; color: var(--color-text-muted); }
@media (min-width: 900px) {
  .people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 1rem; }
  .person { max-width: none; }
  .person .tel, .person .mail { min-height: 44px; }
}
@media (min-width: 1180px) {
  .people { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .person { flex-direction: column; align-items: stretch; padding: .6rem .6rem .9rem; }
  .person img { width: 100%; height: auto; aspect-ratio: 1; }
}
.job {
  display: grid; gap: 1.25rem; margin-top: clamp(2.75rem, 2rem + 3vw, 5rem);
  padding: 1rem 1rem 1.5rem; background: var(--color-bg); border: 1px solid var(--color-line); border-radius: 28px 28px 0 28px;
}
.job-img img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: 50% 30%; border-radius: 18px 18px 0 18px; }
.perks { display: grid; gap: .4rem; margin: 1rem 0 1.4rem; }
@media (min-width: 600px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.5rem; } }
@media (min-width: 600px) {
  .job { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1.75rem; align-items: center; padding: 1.25rem; }
  .job-img img { height: auto; aspect-ratio: 4 / 5; }
}
@media (min-width: 900px) {
  .job { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 2.5rem; padding: 1.5rem 2.5rem 1.5rem 1.5rem; }
}

/* ---------- Kontakt og skjema ---------- */
@media (min-width: 900px) { .kontakt-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: start; } }
.contact-lines { margin: 1.4rem 0 1.25rem; }
.contact-lines li { display: flex; gap: .9rem; padding: .7rem 0; border-top: 1px solid var(--color-line); }
.contact-lines li > svg, .contact-lines li > i { width: 1.35rem; height: 1.35rem; color: var(--color-accent); margin-top: .2rem; }
.contact-lines div { display: flex; flex-direction: column; }
.cl-label { font-size: .875rem; color: var(--color-text-muted); }
.cl-big { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; text-decoration: none; white-space: nowrap; }
.cl-big:hover { color: var(--color-accent); }
.cl-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-line-strong); text-underline-offset: 4px; }
.cl-link:hover { color: var(--color-accent); text-decoration-color: currentColor; }
.form-home { display: none; }
@media (min-width: 900px) { .form-home { display: block; } }
.form-card {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: 28px 28px 0 28px; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
}
.field { margin-top: 1.1rem; min-width: 0; }
.field-group { margin-top: 1.1rem; }
.field-group .field { margin-top: .5rem; }
.label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .35rem; }
.label-sm { font-size: .9375rem; font-weight: 500; margin-bottom: .25rem; }
.opt { font-weight: 400; color: var(--color-text-muted); }
.input {
  display: block; width: 100%; min-height: 52px; padding: .75rem .9rem;
  font: inherit; font-size: max(16px, 1rem); color: var(--color-text);
  background: var(--color-white); border: 1.5px solid var(--color-line-strong); border-radius: 10px 10px 0 10px;
  transition: border-color .2s ease;
}
.input:hover { border-color: var(--color-text-muted); }
.input:focus { outline: 3px solid var(--color-accent-muted); outline-offset: 0; border-color: var(--color-accent); }
.input:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--color-error); }
.textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--color-text-muted); }
.hint { margin-top: .35rem; font-size: .9375rem; line-height: 1.45; color: var(--color-text-muted); }
.err { margin-top: .35rem; font-size: .9375rem; font-weight: 600; color: var(--color-error); line-height: 1.4; overflow-wrap: anywhere; }
.err:empty { display: none; }
@media (min-width: 600px) { .two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { position: relative; display: inline-flex; }
.chip input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .85rem;
  font-size: .9375rem; font-weight: 500; line-height: 1.2; cursor: pointer;
  background: var(--color-white); border: 1.5px solid var(--color-line-strong); border-radius: 10px 10px 0 10px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.chip span:hover { border-color: var(--color-accent); }
.chip input:checked + span { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-white); }
.chip input:focus-visible + span { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
form[data-form] { position: relative; }
form[data-form] button[type="submit"] { margin-top: 1.4rem; }
.form-errors {
  margin-top: 1rem; padding: .8rem 1rem; background: var(--color-error-soft);
  border-left: 4px solid var(--color-error); border-radius: 0 10px 10px 0; color: var(--color-text);
}
.form-errors p { font-weight: 600; }
.form-errors ul { margin-top: .3rem; list-style: disc; padding-left: 1.2rem; }
.form-errors a { color: var(--color-error); font-weight: 600; text-decoration: underline; display: inline-flex; min-height: 44px; align-items: center; }
.form-status { margin-top: .75rem; font-size: .9375rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--color-error); }
.form-success { outline: none; }
.form-errors, .form-success, .form-card { scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top) + 16px); }
.takeover .form-errors, .takeover .form-success { scroll-margin-top: 80px; }
.form-success[hidden] { display: none; }
.success-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.5rem; background: var(--color-brand); color: var(--color-ink); border-radius: 12px 12px 0 12px; }
.success-icon svg { width: 1.6rem; height: 1.6rem; }
.form-success h3 { margin-top: 1rem; overflow-wrap: anywhere; }
.form-success p { margin-top: .5rem; max-width: 52ch; overflow-wrap: anywhere; }
.form-success .btn { margin-top: 1.25rem; }

/* ---------- Takeover (meny og skjema) ---------- */
dialog.takeover {
  position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain;
  background-color: var(--color-ink); color: var(--color-on-ink);
}
dialog.takeover::backdrop { background-color: var(--color-ink); }
dialog.takeover-form { background-color: var(--color-surface); color: var(--color-text); }
dialog.takeover-form::backdrop { background-color: var(--color-surface); }
@media (prefers-reduced-motion: no-preference) {
  dialog.takeover[open] { animation: takeoverIn .25s ease-out; }
}
@keyframes takeoverIn { from { transform: translateY(16px); } to { transform: none; } }
.takeover-inner { min-height: 100%; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.takeover-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px; padding: .5rem var(--gutter); background-color: inherit; border-bottom: 1px solid var(--color-line-ink);
}
.takeover-menu .takeover-head { background-color: var(--color-ink); }
.takeover-form .takeover-head { background-color: var(--color-surface); border-bottom-color: var(--color-line); }
.takeover-title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.close-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none;
  border: 1px solid currentColor; border-radius: 12px 12px 0 12px; color: inherit; cursor: pointer;
  transition: background-color .2s ease;
}
.takeover-menu .close-btn:hover { background: var(--color-ink-2); }
.takeover-form .close-btn:hover { background: var(--color-accent-muted); }
.close-btn svg { width: 1.4rem; height: 1.4rem; }
.menu-list { padding: .5rem var(--gutter); }
.menu-list li { border-bottom: 1px solid var(--color-line-ink); }
.menu-list a { display: flex; flex-direction: column; padding: .85rem 0; min-height: 64px; text-decoration: none; color: var(--color-on-ink-muted); font-size: .9375rem; transition: color .2s ease; }
.menu-sym { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1.15; color: var(--color-on-ink); }
.menu-list a:hover .menu-sym { color: var(--color-brand); }
.takeover-foot { margin-top: auto; display: flex; flex-direction: column; gap: .7rem; padding: 1.25rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom)); }
.takeover-body { padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); }
.takeover-body .form-card { border: 0; padding: 0; background: transparent; border-radius: 0; }
.takeover-body #skjema-tittel { display: none; }
.takeover-body form > .field:first-of-type { margin-top: 0; }

/* ---------- Bunntekst ---------- */
.site-footer {
  background-color: var(--color-ink); color: var(--color-on-ink-muted);
  padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 calc(1.5rem + env(safe-area-inset-bottom));
}
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
.footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; }
.footer-mark { width: 52px; height: auto; }
.footer-slogan { font-family: var(--font-display); font-weight: 600; color: var(--color-on-ink); line-height: 1.35; }
.footer-h { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-on-ink); }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color .2s ease; }
.footer-list a:hover { color: var(--color-on-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--color-line-ink); font-size: .875rem; display: grid; gap: .25rem; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding-inline: .2rem; color: var(--color-on-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--color-brand); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; align-items: flex-start; flex-direction: column; }
  .footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; align-items: center; }
}

/* ---------- Fast handlingsfelt (mobil) ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background-color: var(--color-ink); border-top: 1px solid var(--color-line-ink);
  padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom)) 4.5rem;
  transform: translateY(110%); transition: transform .3s ease, visibility .3s;
  visibility: hidden;
}
.action-bar.is-visible { transform: none; visibility: visible; }
.action-bar-inner { display: flex; gap: .55rem; }
.action-bar .btn { min-height: 48px; padding: .6rem .9rem; }
.action-call { flex: 0 0 auto; }
.action-main { flex: 1 1 auto; }
@media (min-width: 900px) { .action-bar { display: none; } }
@media (max-height: 480px) {
  .action-bar { padding-top: .3rem; padding-bottom: calc(.3rem + env(safe-area-inset-bottom)); }
  .action-bar .btn { min-height: 44px; padding-block: .35rem; }
}

/* ---------- Akari Engine: samtykke ---------- */
body #cc-main {
  --cc-btn-primary-color: var(--color-white);
  --cc-btn-primary-hover-color: var(--color-white);
  --cc-toggle-on-knob-bg: var(--color-white);
}
body .floating-cookie-btn { color: var(--color-white); }
@media (max-width: 899.98px) {
  body .floating-cookie-btn { left: 1rem; bottom: calc(.55rem + 2px + env(safe-area-inset-bottom)); }
}
@media (max-width: 899.98px) and (max-height: 480px) {
  body .floating-cookie-btn { bottom: calc(.3rem + env(safe-area-inset-bottom)); }
}

/* ---------- Personvernside ---------- */
.prose-ag { max-width: 68ch; }
.prose-ag h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.2; margin-top: 2.25rem; }
.prose-ag p, .prose-ag ul { margin-top: .75rem; }
.prose-ag ul { list-style: disc; padding-left: 1.25rem; }
.prose-ag a { color: var(--color-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.placeholder { background: var(--color-accent-muted); padding: .1rem .35rem; border-radius: 4px; }

/* ---------- Grunnoppsett for Tailwind-klassene i markeringen ----------
   Samme klassenavn som Tailwind bruker, slik at oppsettet står riktig fra første
   opptegning og ikke flytter seg når Tailwind fra CDN er ferdig. */
.flex { display: flex; }
.hidden { display: none; }
.items-center { align-items: center; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-4 { gap: 1rem; }
.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.h-full { height: 100%; }
.w-full { width: 100%; }
.max-w-\[1440px\] { max-width: 1440px; }
.max-w-\[56ch\] { max-width: 56ch; }
.max-w-\[60ch\] { max-width: 60ch; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-brand { color: var(--color-brand); }
.text-muted { color: var(--color-text-muted); }
.text-on-ink-muted { color: var(--color-on-ink-muted); }
@media (min-width: 600px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:hidden { display: none; }
  .sm\:inline { display: inline; }
}
@media (min-width: 900px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:inline-flex { display: inline-flex; }
  .md\:ml-2 { margin-left: .5rem; }
  .md\:mt-14 { margin-top: 3.5rem; }
}
@media (min-width: 1180px) {
  .lg\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
  .lg\:inline { display: inline; }
  .lg\:gap-2 { gap: .5rem; }
}

/* ---------- Lave skjermer (liggende telefon) ---------- */
@media (max-height: 480px) and (max-width: 899.98px) {
  :root { --header-h: 52px; }
  .action-bar { display: none; }
  .fag-fig img { max-height: calc(100svh - 120px); }
  .prj { flex-basis: 240px; }
  .prj img { aspect-ratio: 4 / 3; }
}
@media (max-height: 720px) and (max-width: 899.98px) {
  .menu-list a { min-height: 52px; padding: .45rem 0; }
  .menu-list a { font-size: 0; }
  .menu-sym { font-size: 1.35rem; }
  .takeover-foot { padding-top: .75rem; gap: .5rem; }
}
@media (max-height: 480px) and (max-width: 899.98px) {
  .menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
  .takeover-foot { flex-direction: row; flex-wrap: wrap; }
  .takeover-foot .btn { flex: 1 1 14rem; width: auto; }
  .menu-meta { flex-basis: 100%; }
}
@media (min-width: 900px) { .page-title { font-size: clamp(3rem, 2rem + 2vw, 3.6rem); } }

/* =====================================================================
   Fase 2: undersider (tjenester, prosjekter, prosjektbank, jobb)
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.section-tight { padding-block: clamp(2rem, 1.5rem + 2.5vw, 4.5rem); }

/* Heltedel på undersider */
.hero-sub { padding-bottom: 2rem; }
.hero-compact { padding: clamp(1.25rem, 1rem + 2vw, 3rem) 0 clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.hero-sub .hero-copy { padding-top: 1.25rem; }
.sub-title {
  font-family: var(--font-display); font-weight: 700; margin-top: .5rem;
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.015em; text-wrap: balance;
}
.hero-compact .sub-title { margin-top: .4rem; }
.crumbs { margin-bottom: .25rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; column-gap: .5rem; font-size: .875rem; }
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; color: var(--color-on-ink-muted); }
.crumbs li + li::before { content: "/"; color: var(--color-line-ink); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-on-ink-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-line-ink); }
.crumbs a:hover { color: var(--color-on-ink); text-decoration-color: currentColor; }
.crumbs [aria-current] { color: var(--color-on-ink); }
.sym-tile {
  position: absolute; left: var(--gutter); bottom: 1rem; width: 74px; aspect-ratio: 5 / 6;
  display: grid; grid-template-rows: auto 1fr auto; padding: .45rem .5rem;
  background: var(--color-brand); color: var(--color-ink); border-radius: 14px 14px 0 14px;
  filter: drop-shadow(0 10px 18px var(--color-shadow));
}
.sym-no { font-size: .75rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.sym { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; align-self: center; color: var(--color-white); }
.sym-name { display: none; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.25rem; margin-top: 1.25rem; max-width: 40rem; }
.facts div { border-top: 1px solid var(--color-line-ink); padding-top: .5rem; }
.facts dt { font-size: .875rem; color: var(--color-on-ink-muted); }
.facts dd { font-weight: 600; color: var(--color-on-ink); line-height: 1.35; }
@media (min-width: 900px) {
  .hero-sub { padding: clamp(2rem, 4vh, 3.5rem) 0 clamp(3rem, 6vh, 5rem); }
  .hero-sub .hero-copy { padding-top: 0; }
  .sub-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .sub-media picture img { aspect-ratio: 4 / 5; }
  .hero-grid.sub-grid, .hero-grid.svc-grid { min-height: 0; }
  .sym-tile { left: -2.5rem; bottom: -2.25rem; width: clamp(110px, 9vw, 150px); padding: .7rem .8rem .75rem; border-radius: 22px 22px 0 22px; }
  .sym-no { font-size: .875rem; }
  .sym { font-size: clamp(2.6rem, 1.6rem + 2vw, 3.6rem); }
  .sym-name { display: block; font-size: .875rem; font-weight: 600; line-height: 1.15; }
  .facts { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
}
@media (max-width: 899.98px) {
  .sub-media picture img { object-position: 50% 45%; }
}
@media (max-width: 899.98px) and (max-height: 480px) and (min-width: 560px) {
  .sym-tile { width: 54px; left: .6rem; bottom: .6rem; }
  .sym { font-size: 1.5rem; }
}

/* Innhold med sidekolonne */
.split { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
  .split-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.prose-ag > p { max-width: 64ch; }
.prose-ag .checks { margin-top: .75rem; }
.prose-ag .quote { margin-top: 1.5rem; }
.person-card {
  display: flex; gap: .9rem; align-items: center; padding: .8rem;
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 18px 18px 0 18px;
}
.section-surface .person-card { background: var(--color-bg); }
.person-card-img { width: 88px; height: 88px; flex: none; object-fit: cover; border-radius: 12px 12px 0 12px; }
.person-card.person-card > div { display: flex; flex-direction: column; min-width: 0; }
.person-card .contact-label { font-size: .875rem; color: var(--color-text-muted); }
.person-card .person-name { font-weight: 600; line-height: 1.25; }
.person-card .contact-face-icon svg { width: 1.6rem; height: 1.6rem; }
.people-col { display: grid; gap: .75rem; margin-top: 1rem; }
.list-card { padding: 1.25rem; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 22px 22px 0 22px; }
.list-card .checks { margin-top: .6rem; }
.svc-lists { display: grid; gap: 1.25rem; }
@media (min-width: 600px) and (max-width: 899.98px) { .svc-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.partner-note { margin-top: 1rem; color: var(--color-text-muted); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: .75rem;
  font-weight: 600; color: var(--color-accent); text-decoration: none; transition: color .2s ease, gap .2s ease;
}
.link-arrow:hover { color: var(--color-accent-hover); gap: .6rem; text-decoration: underline; text-underline-offset: 3px; }
.link-arrow-ink, .section-ink .link-arrow { color: var(--color-brand); }
.link-arrow-ink:hover, .section-ink .link-arrow:hover { color: var(--color-brand-hover); }

/* Prosjektkort som lenker */
.prj-link { display: block; color: inherit; text-decoration: none; border-radius: 18px 18px 0 18px; }
.prj-link .prj-tag, .prj-link .prj-title, .prj-link .prj-txt { display: block; }
.prj-more { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 600; font-size: .9375rem; color: var(--color-brand); transition: gap .2s ease; }
.prj-link:hover .prj-more { gap: .6rem; }
.prj-link:hover img { transform: scale(1.03); }
.prj-link:focus-visible { outline-offset: 4px; }
.reel-ctrl { flex-wrap: wrap; gap: .5rem 1rem; }
.reel-ctrl .link-arrow { margin-top: 0; margin-right: auto; }
@media (max-width: 599.98px) { .reel-ctrl .link-arrow { order: 3; flex-basis: 100%; } }

/* Prosjektbank */
.bank-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.5rem; }
.bank-count { font-size: .9375rem; color: var(--color-text-muted); }
.seg-n { margin-left: .35rem; font-size: .875rem; font-weight: 500; opacity: .8; }
.segmented-light .seg[aria-pressed="true"] { background: var(--color-accent); color: var(--color-white); }
.bank-filters { flex-wrap: wrap; overflow: visible; }
.bank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .9rem; }
.bank .prj { max-width: none; }
.bank .prj[hidden] { display: none; }
.bank .prj-tag { color: var(--color-accent); margin-top: .7rem; }
.bank .prj-title { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); }
.bank .prj-txt { color: var(--color-text-muted); display: none; }
.bank .prj-more { color: var(--color-accent); }
@media (min-width: 600px) {
  .bank { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .bank .prj-txt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (min-width: 1180px) { .bank { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.filter-list { padding: .5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom)); }
.filter-list li { border-bottom: 1px solid var(--color-line); }
.filter-opt {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: .5rem .25rem;
  font-weight: 600; font-size: 1.125rem; text-align: left; color: var(--color-text); transition: color .2s ease;
}
.filter-opt:hover { color: var(--color-accent); }
.filter-opt[aria-pressed="true"] { color: var(--color-accent); }
.filter-opt[aria-pressed="true"] span:first-child::before { content: ""; display: inline-block; width: .45rem; height: .8rem; margin-right: .75rem; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-2px) rotate(40deg); }

/* Galleri og fullskjermvisning */
.gal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: 1rem; }
.gal-hint { font-size: .9375rem; color: var(--color-text-muted); }
.gal {
  display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: .25rem var(--gutter) .5rem; scroll-padding-inline: var(--gutter);
}
.gal::-webkit-scrollbar { display: none; }
.gal li { flex: 0 0 80%; scroll-snap-align: start; }
@media (min-width: 600px) {
  .gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 1rem; }
}
.gal-item { display: block; width: 100%; border-radius: 16px 16px 0 16px; overflow: hidden; cursor: zoom-in; }
.gal-item img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s ease; }
.gal-item:hover img { transform: scale(1.04); }
.gal-item:focus-visible { outline-offset: 3px; }
dialog.takeover-gal { background-color: var(--color-ink); color: var(--color-on-ink); }
dialog.takeover-gal::backdrop { background-color: var(--color-ink); }
.takeover-gal .takeover-head { background-color: var(--color-ink); }
.takeover-gal .close-btn:hover { background: var(--color-ink-2); }
.gal-count { font-family: var(--font-body); font-weight: 500; font-size: .9375rem; color: var(--color-on-ink-muted); margin-left: .35rem; }
.gal-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem var(--gutter) 0; min-height: 0; }
.gal-stage img {
  width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 64px - 88px - 4.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  object-fit: contain; border-radius: 12px 12px 0 12px;
}
.gal-stage figcaption { margin-top: .75rem; max-width: 60ch; text-align: center; font-size: .9375rem; color: var(--color-on-ink-soft); }
.gal-ctrl { display: flex; justify-content: center; gap: 1rem; padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom)); }
.takeover-gal .round-btn { width: 56px; height: 56px; }

/* Tjenestesider: eksempler, merknad, historier, utmerkelse */
.ex-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ex-card {
  display: flex; gap: 1rem; align-items: center; height: 100%; padding: .75rem; text-decoration: none; color: inherit;
  background: var(--color-bg); border: 1px solid var(--color-line); border-radius: 18px 18px 0 18px; transition: border-color .2s ease;
}
.ex-card:hover { border-color: var(--color-accent); }
.ex-card picture { flex: none; }
.ex-card img { width: 96px; height: 120px; object-fit: cover; border-radius: 12px 12px 0 12px; }
.ex-card > span { display: flex; flex-direction: column; }
.ex-txt { color: var(--color-text-muted); font-size: .9375rem; line-height: 1.5; margin-top: .2rem; }
.ex-card .prj-more { color: var(--color-accent); }
.note-box { margin-top: 2rem; padding: 1rem 1.25rem; background: var(--color-bg); border-left: 4px solid var(--color-brand); border-radius: 0 12px 12px 0; max-width: 60rem; }
.note-box p { margin-top: .35rem; color: var(--color-text-muted); }
.story { display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.story:first-child { margin-top: 0; }
.story picture img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px 24px 0 24px; }
.story-body p { margin-top: .75rem; max-width: 60ch; }
.story-body .quote { margin-top: 1.25rem; }
@media (min-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
  .story-flip picture { order: 2; }
}
.award { display: flex; gap: 1.25rem; align-items: center; padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); border-bottom: 1px solid var(--color-line); }
.award-tile {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 4.5rem; aspect-ratio: 5 / 6;
  background: var(--color-brand); border-radius: 14px 14px 0 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--color-white);
}
@media (min-width: 900px) { .award-tile { width: 7rem; font-size: 3.2rem; border-radius: 22px 22px 0 22px; } }

/* Jobb */
.perk-grid { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .perk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2rem; } }
@media (min-width: 1180px) { .perk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.perk-grid li { display: flex; gap: .9rem; }
.perk-grid li > svg, .perk-grid li > i { width: 1.6rem; height: 1.6rem; color: var(--color-accent); margin-top: .1rem; }
.perk-grid p { margin-top: .15rem; color: var(--color-text-muted); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.tags li { padding: .45rem .8rem; font-size: .9375rem; font-weight: 500; background: var(--color-bg); border: 1px solid var(--color-line); border-radius: 10px 10px 0 10px; }
.fig-card picture img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px 24px 0 24px; }
.fig-card figcaption { margin-top: .6rem; font-size: .9375rem; color: var(--color-text-muted); }
.trade-list { display: grid; gap: 1rem; }
.trade-list div { border-top: 1px solid var(--color-line-ink); padding-top: 1rem; }
.trade-list p { margin-top: .25rem; color: var(--color-on-ink-soft); }
@media (min-width: 600px) and (max-width: 899.98px) { .trade-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reel-ctrl.is-static .reel-count, .reel-ctrl.is-static [data-reel-prev], .reel-ctrl.is-static [data-reel-next] { display: none; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; margin-top: 1rem; }
.panel-actions .btn, .panel-actions .link-arrow { margin-top: 0; }
.fag-body .panel-actions .btn { margin-top: 0; }
@media (max-width: 899.98px) {
  .sub-grid .hero-copy { display: flex; flex-direction: column; }
  .sub-grid .hero-actions { order: 4; }
  .sub-grid .facts { order: 5; }
  .sub-media picture img { height: clamp(170px, 28svh, 320px); }
}
/* Lave skjermer på undersider: knappen før ingressen, mindre bilde */
@media (max-width: 899.98px) and (max-height: 720px) {
  .hero-sub .hero-copy { display: flex; flex-direction: column; }
  .hero-sub .hero-actions { order: 3; margin-top: 1rem; }
  .hero-sub .hero-lead { order: 4; margin-top: .9rem; }
  .hero-sub .facts { order: 5; }
  .sub-media picture img, .svc-media picture img { height: clamp(120px, 22svh, 220px); }
  .sub-title { font-size: clamp(2rem, 1.3rem + 3vw, 2.6rem); }
}
@media (max-width: 899.98px) and (max-height: 480px) and (min-width: 560px) {
  .hero-sub .crumbs { display: none; }
  .hero-sub .sub-title { font-size: 1.75rem; }
  .svc-media picture img, .sub-media picture img { height: calc(100svh - var(--header-h) - 2.5rem); }
}
.list-card.more { margin-top: 0; }
.list-card summary { font-family: var(--font-display); font-size: 1.15rem; color: var(--color-text); }
.list-card summary:hover { color: var(--color-accent); }
.list-card .svc-lists { margin-top: .5rem; }
/* QA fase 2: bunntekst, meny, galleri liggende, klebrig filter */
.footer-list a { min-width: 44px; }
.menu-meta a { margin-block: 0; }
@media (max-height: 480px) {
  .takeover-gal .takeover-head { min-height: 52px; padding-block: .25rem; }
  .takeover-gal .takeover-inner { position: relative; }
  .gal-stage { padding: .5rem 4.5rem; }
  .gal-stage img { max-height: calc(100svh - 52px - 1.25rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .gal-stage figcaption { display: none; }
  .gal-ctrl { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); justify-content: space-between; padding: 0 .75rem; pointer-events: none; }
  .gal-ctrl .round-btn { pointer-events: auto; background: var(--color-ink-2); }
}
@media (max-width: 899.98px) {
  .bank-bar {
    position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top)); z-index: 5;
    margin-inline: calc(var(--gutter) * -1); padding: .6rem var(--gutter); background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
  }
}
.prose-ag a:hover { color: var(--color-accent-hover); text-decoration-thickness: 2px; }
.main-nav a[aria-current] { color: var(--color-on-ink); box-shadow: inset 0 -2px 0 var(--color-brand); }
.bank .prj { display: flex; }
.bank .prj-link { display: flex; flex-direction: column; width: 100%; }
.bank .prj-more { margin-top: auto; padding-top: .25rem; }
@media (min-width: 900px) { .facts { max-width: 48rem; } }
.gal-ctrl { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
/* Regresjon fase 2: lav, kompakt filterlinje og bredere brødsmuler */
.crumbs a { min-width: 44px; }
.crumbs li:first-child a { justify-content: flex-start; }
@media (max-width: 899.98px) {
  .bank-bar { flex-wrap: nowrap; gap: .75rem; padding-block: .4rem; margin-bottom: 1rem; }
  .bank-bar .filter-btn { flex: 0 1 auto; min-width: 0; max-width: 70%; white-space: nowrap; overflow: hidden; }
  .bank-bar .filter-btn [data-filter-label] { overflow: hidden; text-overflow: ellipsis; }
  .bank-count { flex: 1 1 auto; text-align: right; font-size: .875rem; line-height: 1.3; }
}
@media (max-width: 899.98px) and (max-height: 640px) {
  .bank-bar { position: static; }
}
