/* ==========================================================================
   Likefrem – designsystem
   Mobile first: grunnstilene gjelder små skjermer. Bredere oppsett legges
   på med min-width lenger ned i hver seksjon.
   ========================================================================== */

/* Tokens ------------------------------------------------------------------ */
:root {
  color-scheme: light dark;

  --paper: #faf9f6;
  --paper-2: #f1efe9;
  --paper-3: #e4e1d8;
  --ink: #121310;
  --ink-2: #57584f;
  --line: rgb(18 19 15 / 0.16);
  --line-strong: rgb(18 19 15 / 0.34);
  --accent: #ff4d1f;
  --accent-ink: #12130f;
  --accent-text: #c2330b;
  --ok: #18794e;
  --shadow: 0 1px 2px rgb(18 19 15 / 0.08), 0 18px 40px -18px rgb(18 19 15 / 0.35);

  --font-sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  /* Flytende skriftskala: minste verdi gjelder 360 px, største fra ca. 1280 px */
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.22rem + 0.7vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.42rem + 1.5vw, 2.75rem);
  --step-4: clamp(2.125rem, 1.5rem + 2.9vw, 4rem);
  --step-5: clamp(2.875rem, 1.2rem + 7.6vw, 7.75rem);

  --gutter: clamp(1.25rem, 0.5rem + 3.4vw, 3rem);
  --section: clamp(4rem, 2.6rem + 6vw, 8.5rem);
  --wrap: 80rem;
  --radius: 0.625rem;
  --radius-sm: 0.375rem;
  --header-h: 3.75rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10110e;
    --paper-2: #1a1c17;
    --paper-3: #262822;
    --ink: #f1eee6;
    --ink-2: #a9a99f;
    --line: rgb(241 238 230 / 0.16);
    --line-strong: rgb(241 238 230 / 0.36);
    --accent: #ff5a2e;
    --accent-text: #ff7d57;
    --ok: #4cc38a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 18px 40px -18px rgb(0 0 0 / 0.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #10110e;
  --paper-2: #1a1c17;
  --paper-3: #262822;
  --ink: #f1eee6;
  --ink-2: #a9a99f;
  --line: rgb(241 238 230 / 0.16);
  --line-strong: rgb(241 238 230 / 0.36);
  --accent: #ff5a2e;
  --accent-text: #ff7d57;
  --ok: #4cc38a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 18px 40px -18px rgb(0 0 0 / 0.8);
}
:root[data-theme="light"] { color-scheme: light; }

/* Grunnstiler --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0) / 1.6 var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
:where(ul, ol)[class] { padding: 0; list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Små etiketter i monospace: seksjonsnummer, type, metadata */
.label {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem;
  font: 500 var(--step--1) / 1.4 var(--font-sans);
  color: var(--ink-2);
}

/* Knapper og lenker --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 3.25rem; padding: 0.8rem 1.35rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-sm { min-height: 2.75rem; padding: 0.55rem 1rem; font-size: 0.9375rem; }
.arrow { flex: none; width: 1.375rem; height: 0.75rem; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
a:hover > .arrow, button:hover > .arrow { transform: translateX(0.25rem); }

.text-link {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent);
}
.text-link:hover { text-decoration-color: currentColor; }
.link-ext { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink-2); }
.link-ext:hover { color: var(--ink); }

/* Topp ------------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 0.5rem; min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-right: auto; padding-block: 0.5rem; text-decoration: none;
}
.brand-mark { width: 1.875rem; height: 1.875rem; }
.brand-word { width: auto; height: 1.125rem; }
.nav { display: none; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 2.75rem;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.45rem; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: var(--radius-sm); background: transparent;
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.header-inner > .icon-btn { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 2.75rem; padding: 0 0.5rem 0 0.75rem;
  border: 0; background: transparent; font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.menu-btn i { display: grid; gap: 5px; width: 1.25rem; }
.menu-btn i::before, .menu-btn i::after { content: ""; height: 2px; background: currentColor; }

@media (min-width: 52rem) {
  :root { --header-h: 4.25rem; }
  .header-inner { gap: 0.75rem; }
  .nav { display: flex; gap: 2rem; margin-right: 1.25rem; }
  .header-inner > .icon-btn { display: inline-grid; }
  .menu-btn { display: none; }
}

/* Mobilmeny: innebygd <dialog>, som gir fokusfelle og Esc uten ekstra kode */
.menu {
  inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink);
}
.menu::backdrop { background: var(--paper); }
.menu[open] { display: flex; flex-direction: column; animation: menu-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-0.75rem); } }
.menu-top {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); padding-inline: var(--gutter); border-bottom: 1px solid var(--line);
}
.menu-links { flex: 1; overflow-y: auto; padding: 1rem var(--gutter) 0; }
.menu-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4rem; border-bottom: 1px solid var(--line);
  font-size: clamp(1.75rem, 1.2rem + 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.035em;
  text-decoration: none;
}
.menu-links a[aria-current="page"] { color: var(--accent-text); }
.menu-foot {
  display: grid; gap: 1rem; padding: 1.25rem var(--gutter) max(1.5rem, env(safe-area-inset-bottom));
}
.menu-foot .btn { width: 100%; }
.menu-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink-2); font-size: 0.9375rem; }

/* Linjen: merkevarens faste element. En rett strek som ender i en pil. --------- */
.rule {
  display: flex; align-items: center; color: var(--accent);
}
.rule::before { content: ""; flex: 1; height: 0.25rem; background: currentColor; transform-origin: left; }
.rule svg { flex: none; width: 1.5rem; height: 2rem; margin-left: -0.95rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero .rule::before { animation: draw 1.1s 0.25s cubic-bezier(0.65, 0, 0.2, 1) both; }
  .hero .rule svg { animation: nudge 0.5s 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes draw { from { transform: scaleX(0); } }
@keyframes nudge { from { opacity: 0; transform: translateX(-0.75rem); } }

/* Forside: hero ------------------------------------------------------------- */
.hero { padding-block: clamp(2rem, 1rem + 5vw, 5rem) clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.status { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.status::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--ok) 22%, transparent);
}
.hero h1 {
  margin-top: clamp(1.25rem, 0.8rem + 2vw, 2.25rem);
  font-size: var(--step-5); font-weight: 700; line-height: 0.94; letter-spacing: -0.05em;
}
.hero .rule { margin-top: clamp(1.25rem, 0.8rem + 2vw, 2.5rem); }
.hero-body { display: grid; gap: 1.75rem; margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.lead { max-width: 38rem; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }
.lead strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.hero-actions .btn { flex: 1 1 15rem; max-width: 22rem; }
.byline { display: flex; align-items: center; gap: 0.85rem; }
.byline img { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; object-position: 50% 22%; background: var(--paper-3); }
.byline strong { display: block; font-weight: 600; line-height: 1.3; }
.byline span { display: block; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.35; }

@media (min-width: 60rem) {
  .hero-body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 3rem; }
  .hero-aside { display: grid; gap: 1.5rem; justify-items: start; padding-left: 2rem; border-left: 1px solid var(--line); }
  .hero-actions .btn { flex: 0 0 auto; }
}
.hero-aside { display: grid; gap: 1.5rem; }

/* Stripe med utvalgte leveranser rett under heroen */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 0.75rem;
  margin: clamp(2.25rem, 1.5rem + 3vw, 4rem) calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 0.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { scroll-snap-align: start; }
.strip a { display: grid; gap: 0.7rem; text-decoration: none; }
.strip img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.strip a:hover img { transform: translateY(-0.25rem); }
.strip-name { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; font-weight: 600; line-height: 1.3; }
.strip-name small { font: 500 var(--step--1) / 1.3 var(--font-sans); color: var(--ink-2); white-space: nowrap; }
@media (min-width: 40rem) { .strip { grid-auto-columns: 42%; } }
@media (min-width: 60rem) {
  .strip { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-inline: 0; padding: 0; overflow: visible; }
}

/* Seksjoner ------------------------------------------------------------------ */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 4.5rem); }
.section-head h2 { font-size: var(--step-4); max-width: 18ch; }
.section-head .lead { max-width: 36rem; }
@media (min-width: 60rem) {
  .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 3rem; align-items: end; }
  .section-head .label { grid-column: 1 / -1; }
}

/* Mørk seksjon i lyst tema. I mørkt tema løftes den bare ett trinn. */
.invert {
  --paper: #12130f; --paper-2: #1c1e19; --paper-3: #282a24;
  --ink: #f4f1ea; --ink-2: #a9a99f;
  --line: rgb(244 241 234 / 0.16); --line-strong: rgb(244 241 234 / 0.36);
  --accent-text: #ff7d57;
  background: var(--paper); color: var(--ink);
}
.section + .section.invert, .invert + .section { border-top: 0; }

/* Case: skjermbilde + tekst ---------------------------------------------------- */
.cases { display: grid; gap: clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.case { display: grid; gap: 1.5rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.case-media { display: block; text-decoration: none; }
.shot {
  --tint: color-mix(in oklab, var(--brand, var(--ink-2)) 16%, var(--paper-2));
  position: relative; overflow: hidden; aspect-ratio: 16 / 11.4;
  border-radius: var(--radius); background: var(--tint);
}
.shot-desktop, .shot-phone { position: absolute; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.shot-desktop { left: 5%; top: 9%; width: 76%; border-radius: 0.5rem; overflow: hidden; box-shadow: var(--shadow); }
.shot-desktop img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot-phone {
  right: 5%; bottom: 7%; width: 21.5%; padding: 1.1%;
  border-radius: 12% / 5.6%; background: #12130f; box-shadow: var(--shadow);
}
.shot-phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 9.5% / 4.4%; }
.case-media:hover .shot-desktop { transform: translateY(-1.2%); }
.case-media:hover .shot-phone { transform: translateY(-2.4%); }
.shot-solo { display: grid; place-items: center; }
.shot-solo img { width: 26%; border-radius: 22%; box-shadow: var(--shadow); }
.shot-type { display: grid; place-items: center; padding: 8%; font-size: var(--step-4); font-weight: 700; letter-spacing: -0.045em; text-align: center; color: color-mix(in oklab, var(--brand, var(--ink)) 70%, var(--ink)); }

.case-body { display: grid; gap: 1rem; align-content: start; }
.case-body h3 { font-size: var(--step-3); }
.case-body h3 a { text-decoration: none; }
.case-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.case-body > p:not(.label) { color: var(--ink-2); max-width: 34rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; padding-block: 1.1rem; border-block: 1px solid var(--line); }
.facts dt { font: 500 var(--step--1) / 1.35 var(--font-sans); color: var(--ink-2); }
.facts dd { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.035em; word-spacing: 0.06em; line-height: 1.1; }
.facts div { display: flex; flex-direction: column-reverse; gap: 0.3rem; }
.ticks { display: grid; gap: 0.45rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 0.9rem; height: 2px; background: var(--accent);
}
.quote { display: grid; gap: 0.6rem; padding-left: 1rem; border-left: 2px solid var(--accent); }
.quote p { font-size: var(--step-1); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.quote footer { color: var(--ink-2); font-size: 0.9375rem; }
.quote cite { font-style: normal; font-weight: 600; color: var(--ink); }
.case-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.75rem; }

@media (min-width: 60rem) {
  .case { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2.5rem; align-items: center; }
  .case-media { grid-column: 1 / span 7; }
  .case-body { grid-column: 8 / -1; }
  .case:nth-child(even) .case-media { grid-column: 6 / -1; grid-row: 1; }
  .case:nth-child(even) .case-body { grid-column: 1 / span 5; grid-row: 1; }
}

/* Tjenester ------------------------------------------------------------------ */
.services { display: grid; border-top: 1px solid var(--line); }
.service { display: grid; gap: 0.9rem; align-content: start; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.service h3 { font-size: var(--step-3); }
.service p { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { padding: 0.3rem 0.6rem; border: 1px solid var(--line-strong); border-radius: 99rem; font: 500 var(--step--1) / 1.3 var(--font-sans); }
.service .text-link { justify-self: start; }
@media (min-width: 60rem) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .service { grid-template-rows: auto 1fr auto auto; padding: 2.25rem 2rem 2rem; border-bottom: 0; border-left: 1px solid var(--line); }
  .service:first-child { padding-left: 0; border-left: 0; }
  .service:last-child { padding-right: 0; }
}

/* Arbeidsmåte: tre steg langs én rett linje ---------------------------------- */
.steps { display: grid; counter-reset: step; }
.step { position: relative; display: grid; gap: 0.5rem; padding: 0 0 2.25rem 2.75rem; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--ink); color: var(--paper); font: 500 0.6875rem / 1 var(--font-sans);
}
.step::after { content: ""; position: absolute; left: calc(0.875rem - 1px); top: 1.75rem; bottom: 0; width: 2px; background: var(--line-strong); }
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h3 { font-size: var(--step-2); line-height: 1.2; }
.step p { color: var(--ink-2); max-width: 30rem; }
@media (min-width: 60rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2.5rem; }
  .step { padding: 3.25rem 0 0; }
  .step::after { left: 1.75rem; right: -2.5rem; top: calc(0.875rem - 1px); bottom: auto; width: auto; height: 2px; }
  .step:last-child::after { display: block; right: 0.4rem; }
  .steps-end { position: absolute; right: 0; top: calc(0.875rem - 0.5rem); width: 0.6rem; height: 1rem; color: var(--line-strong); }
}
.steps-end { display: none; }
@media (min-width: 60rem) { .steps-end { display: block; } }

/* Om-blokk --------------------------------------------------------------------- */
.about { display: grid; gap: 2rem; }
.portrait { overflow: hidden; max-width: 17rem; border-radius: var(--radius); background: var(--paper-3); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
.about-body { display: grid; gap: 1.25rem; align-content: start; }
.about-body h2 { font-size: var(--step-4); }
.about-body > p { color: var(--ink-2); max-width: 36rem; }
.about-body .label { margin-bottom: -0.25rem; }
@media (min-width: 48rem) {
  .portrait { max-width: none; }
  .about { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
}

/* Oppfordring nederst ---------------------------------------------------------- */
.cta { background: var(--accent); color: var(--accent-ink); }
.cta :focus-visible { outline-color: var(--accent-ink); }
.cta-inner { display: grid; gap: 1.75rem; padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.cta h2 { font-size: var(--step-5); line-height: 0.94; letter-spacing: -0.05em; max-width: 12ch; }
.cta p { max-width: 34rem; font-size: var(--step-1); line-height: 1.5; }
.cta .label { color: var(--accent-ink); }
.cta-side { display: grid; gap: 1.5rem; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; }
.cta .btn { background: var(--accent-ink); color: #f4f1ea; flex: 1 1 15rem; max-width: 22rem; }
.cta .btn:hover { background: #2a2c25; }
.cta-mail { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }
@media (min-width: 60rem) {
  .cta-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 3rem; align-items: end; }
  .cta-inner > .label { grid-column: 1 / -1; }
  .cta .btn { flex: 0 0 auto; }
}

/* Bunn ------------------------------------------------------------------------ */
.site-footer { padding-block: clamp(3rem, 2rem + 4vw, 5rem) 1.75rem; background: var(--paper-2); }
.footer-grid { display: grid; gap: 2.25rem; }
.footer-brand { display: grid; gap: 1rem; justify-items: start; }
.footer-brand a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer-brand .brand-word { height: clamp(2.25rem, 1.4rem + 4.5vw, 4.5rem); }
.footer-brand p { max-width: 24rem; color: var(--ink-2); }
.footer-col { display: grid; gap: 0.15rem; align-content: start; }
.footer-title { margin-bottom: 0.5rem; font: 500 var(--step--1) / 1.4 var(--font-sans); color: var(--ink-2); }
.footer-col a, .footer-col span { display: inline-flex; align-items: center; min-height: 2.75rem; overflow-wrap: anywhere; }
.footer-col a { text-decoration: none; justify-self: start; }
.footer-col a:hover { text-decoration: underline; }
.footer-col span { color: var(--ink-2); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); padding-top: 1.25rem; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 0.875rem;
}
.theme-switch { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0; border: 0; background: none; color: var(--ink-2); font-size: 0.875rem; text-decoration: underline; text-underline-offset: 0.22em; }
.theme-switch:hover { color: var(--ink); }
@media (min-width: 40rem) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr); gap: 2.5rem; }
  .footer-brand { grid-column: auto; }
}

/* Undersider ------------------------------------------------------------------ */
.page-hero { padding-block: clamp(2rem, 1.25rem + 4vw, 4.5rem) clamp(2.25rem, 1.5rem + 3vw, 4rem); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.75rem); font: 500 var(--step--1) / 1.4 var(--font-sans); color: var(--ink-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 1.75rem; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--line-strong); }
.crumbs li { display: flex; align-items: center; }
.page-hero h1 { margin-top: 0.9rem; font-size: clamp(2.5rem, 1.3rem + 5.6vw, 5.75rem); line-height: 0.96; letter-spacing: -0.048em; max-width: 16ch; }
.page-hero .lead { margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); max-width: 40rem; }
.page-hero .rule { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

.split { display: grid; gap: 2rem; }
.split h2 { font-size: var(--step-3); }
.prose { display: grid; gap: 1.1rem; max-width: 40rem; }
.prose p { color: var(--ink-2); }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose h2 { font-size: var(--step-3); margin-bottom: 0.25rem; }
.prose a:not(.btn):not(.text-link) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.prose a:not(.btn):not(.text-link):hover { text-decoration-color: currentColor; }
.prose-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; margin-top: 0.5rem; }
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3rem; }
  .split > .label, .split > h2 { align-self: start; }
}

/* Tre kolonner med hårstreker: utfordring/løsning/resultat og prinsipper */
.trio { display: grid; border-top: 1px solid var(--line); }
.trio > * { display: grid; gap: 0.6rem; align-content: start; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.trio h3 { font-size: var(--step-2); line-height: 1.15; }
.trio p { color: var(--ink-2); }
@media (min-width: 52rem) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .trio > * { padding: 2rem 2rem 2rem; border-bottom: 0; border-left: 1px solid var(--line); }
  .trio > :first-child { padding-left: 0; border-left: 0; }
  .trio > :last-child { padding-right: 0; }
}

/* Faktaliste på prosjektsider */
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; margin-top: clamp(1.75rem, 1.25rem + 2vw, 3rem); padding-top: 1.25rem; border-top: 1px solid var(--line); }
.meta dt { font: 500 var(--step--1) / 1.4 var(--font-sans); color: var(--ink-2); }
.meta dd { margin-top: 0.2rem; font-weight: 600; line-height: 1.35; }
.meta dd a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
@media (min-width: 52rem) { .meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.case-figure { padding-block: clamp(1.5rem, 1rem + 2.5vw, 3rem) 0; }
.case-figure .shot { aspect-ratio: 16 / 11.4; }
.gallery { display: grid; gap: 1rem; }
.gallery figure { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.gallery img { width: 100%; }
.gallery figcaption { padding: 0.7rem 0.9rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.875rem; }
@media (min-width: 52rem) {
  .gallery { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: start; }
}

.next-case { display: grid; gap: 0.5rem; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); text-decoration: none; border-top: 1px solid var(--line); }
.next-case strong { display: flex; align-items: center; gap: 1rem; font-size: var(--step-4); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.next-case .arrow { width: clamp(2rem, 1.4rem + 3vw, 4rem); height: auto; }
.next-case:hover .arrow { transform: translateX(0.5rem); }

/* Prosjektoversikt */
.project-group + .project-group { margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
.project-group > h2 { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.5rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); font-size: var(--step-2); }
.project-group > h2 small { font: 500 var(--step--1) / 1 var(--font-sans); letter-spacing: 0.02em; color: var(--ink-2); }
.projects { display: grid; gap: 2.5rem 1.5rem; }
.project { display: grid; gap: 1rem; align-content: start; }
.project a.project-media { display: block; text-decoration: none; }
.project h3 { font-size: var(--step-2); line-height: 1.15; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.project p:not(.label) { color: var(--ink-2); max-width: 32rem; }
.project-body { display: grid; gap: 0.5rem; }
@media (min-width: 40rem) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Kontakt */
.contact { display: grid; gap: 2.5rem; }
.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.5rem; }
.field label, .field legend { font-weight: 600; }
.field .hint { color: var(--ink-2); font-size: 0.9375rem; font-weight: 400; }
.field input[type="text"], .field textarea, .field select {
  width: 100%; min-height: 3.25rem; padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.4;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-offset: 0; border-color: var(--ink); }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 0.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips label { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1rem; border: 1px solid var(--line-strong); border-radius: 99rem; font-weight: 500; cursor: pointer; }
.chips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chips label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.form-actions { display: grid; gap: 0.75rem; justify-items: start; }
.form-actions .btn { width: 100%; }
.form-note { color: var(--ink-2); font-size: 0.9375rem; }
.card { display: grid; gap: 1rem; align-content: start; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.card h2 { font-size: var(--step-2); line-height: 1.15; }
.card p { color: var(--ink-2); }
.mail-big { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.02em; text-decoration-color: var(--accent); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.card-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.card-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.card-list li span:first-child { color: var(--ink-2); }
.card-list li span:last-child { font-weight: 600; text-align: right; }
@media (min-width: 60rem) {
  .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start; }
  .contact aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; }
  .form-actions .btn { width: auto; }
}
.contact aside { display: grid; gap: 1rem; }

/* 404 */
.not-found { display: grid; gap: 1.5rem; justify-items: start; padding-block: clamp(4rem, 3rem + 8vw, 10rem); }
.not-found h1 { font-size: var(--step-5); line-height: 0.94; letter-spacing: -0.05em; }

/* Bevegelse ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .menu, .cta, .strip, .theme-switch { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Kundenes egne farger gir hvert skjermbilde en svak bakgrunnstone */
.brand-ledsa { --brand: #0f5c4d; }
.brand-moss { --brand: #b5633c; }
.brand-kyvco { --brand: #2563eb; }
.brand-bingis { --brand: #1d4e6b; }
.brand-portra { --brand: #3b82f6; }
.brand-merry { --brand: #a3271e; }
.note { color: var(--ink-2); font-size: 0.9375rem; max-width: 36rem; }
.more { margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.6rem, 0.2rem + 2vw, 1.75rem); max-width: 46rem; }
.phones figure { padding: 3.2%; border-radius: 11% / 5.4%; background: #12130f; box-shadow: var(--shadow); }
.phones img { width: 100%; border-radius: 8.5% / 4.2%; }
