/* Michael Rieu — utkast B «Kunstnerisk»
   Hvit vegg (verkene er fotografert på hvitt), ren sort, én koboltblå hentet fra «IN BLUE»
   og Mondriaan-steintrykkene. Én familie: Archivo med bredde-akse — smal og tung for navnet. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --blue: #1c2fd9;
  --grey: #6b6b6b;
  --line: #d9d9d9;
  --marker: #fff09a;
  --pad: clamp(16px, 2.6vw, 44px);
  --top: 64px;
  --condensed: 62%;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-stretch: 100%;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }

/* Display-typen: smal, tung, versaler. Bare for navn, titler og store overskrifter. */
.top__mark, .hero__name, .sect-head h2, .index__name, .poster__city, .foot__mark,
.page-head h1, .work__title, .series-title, .about__title, .card__title, .salon__title,
.related h2, .cv h2, .about__text h2, .split h2, .index__sub {
  font-stretch: var(--condensed);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  background: var(--paper);
}
.top__mark { font-size: 1.5rem; text-decoration: none; line-height: 1; transition: opacity .2s; position: relative; z-index: 2; }
.home .top__mark.is-hidden { opacity: 0; pointer-events: none; }
.top__nav ul { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.top__nav a { text-decoration: none; font-weight: 500; }
.top__nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; }
.top__navcontact { display: none; }
.top__toggle { display: none; }

@media (max-width: 759px) {
  .js .top__toggle {
    display: block; position: relative; z-index: 2;
    background: none; border: 0; padding: 10px 0 10px 16px; font-weight: 600; cursor: pointer;
  }
  .js .top__nav {
    position: fixed; inset: var(--top) 0 0 0;
    background: var(--paper);
    padding: 24px var(--pad) 40px;
    display: none; flex-direction: column; justify-content: space-between;
    overflow-y: auto;
  }
  .js .top__nav.is-open { display: flex; }
  .js .top__nav ul { flex-direction: column; gap: 4px; }
  .js .top__nav ul a { font-stretch: var(--condensed); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 15vw, 5rem); line-height: 1; }
  .js .top__navcontact { display: block; margin: 32px 0 0; }
  html:not(.js) .top { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.js) .top__nav ul { flex-wrap: wrap; gap: 8px 16px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero: navnet + hodet ---------- */
.hero {
  position: relative;
  padding: 0 var(--pad) clamp(40px, 6vw, 96px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
}
.hero__name {
  grid-column: 1 / -1; grid-row: 1;
  font-size: 27.6vw;
  line-height: .8;
  margin-left: -0.035em;
  position: relative; z-index: 2;
  pointer-events: none;
}
.hero__name span { display: block; }
.hero__l2 { margin-top: .02em; }
.hero__head {
  grid-column: 2; grid-row: 1;
  margin: 0;
  width: 31vw;
  justify-self: end;
  align-self: end;
  position: relative;
  z-index: 1;
  margin-bottom: -2.2vw;
}
.hero__window {
  display: block; width: 100%; aspect-ratio: 78 / 100;
  padding: 0; border: 0; background: var(--blue); cursor: pointer;
  clip-path: url(#hode);
}
.hero__window img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .35s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.hero__window:hover img { transform: scale(1.04); }
.hero__window.is-swapping img { opacity: 0; }
.hero__window:focus-visible { outline: none; }
.hero__window:focus-visible + .hero__cap { outline: 3px solid var(--blue); outline-offset: 6px; }
.hero__cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 14px; font-size: .95rem;
}
.hero__cap a { font-weight: 700; text-decoration: none; text-transform: uppercase; font-stretch: 75%; letter-spacing: .01em; }
.hero__cap a:hover { text-decoration: underline; }
.hero__next {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--blue);
  text-decoration: underline; text-underline-offset: .2em; white-space: nowrap;
}
.hero__intro {
  grid-column: 1; grid-row: 2;
  margin: clamp(20px, 2.4vw, 36px) 0 0;
  font-size: clamp(1.15rem, 1.9vw, 1.75rem);
  line-height: 1.25;
  max-width: 30ch;
  font-weight: 500;
}

/* ---------- Seksjonshoder ---------- */
.sect-head {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px;
  padding: 0 var(--pad);
  margin-bottom: clamp(28px, 5vw, 72px);
}
.sect-head h2 { font-size: clamp(2.6rem, 7vw, 6.5rem); }
.sect-head p { margin: 0; color: var(--grey); }
.sect-head p a { color: var(--ink); font-weight: 600; }

/* ---------- Salongvegg ---------- */
.salon { overflow-x: clip; padding: clamp(48px, 8vw, 140px) 0; border-top: 2px solid var(--ink); margin: 0 var(--pad); }
.salon .sect-head { padding: 0; }
.salon__wall {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(28px, 3.6vw, 64px) clamp(18px, 2.8vw, 52px);
}
.salon__item { --h: 28vw; position: relative; }
.salon__item--0 { --h: 34vw; }
.salon__item--1 { --h: 22vw; align-self: flex-start; }
.salon__item--2 { --h: 28vw; }
.salon__item--3 { --h: 18vw; align-self: flex-end; }
.salon__item--4 { --h: 25vw; }
.salon__item a { display: block; text-decoration: none; }
.salon__item img {
  height: min(var(--h), 620px); width: auto; max-width: 100%;
  aspect-ratio: var(--ar); object-fit: contain;
}
.salon__cap { display: block; margin-top: 10px; font-size: .85rem; max-width: 34ch; }
.salon__title { font-size: 1.05rem; display: block; }
.salon__meta { color: var(--grey); }

@media (hover: hover) and (min-width: 760px) {
  .salon__cap {
    position: absolute; left: 0; top: 100%;
    opacity: 0; transform: translateY(-6px);
    transition: opacity .2s, transform .25s;
    pointer-events: none;
    width: 100%; min-width: 12rem;
  }
  .salon__title { font-size: clamp(1.8rem, 3vw, 3rem); color: var(--blue); line-height: .95; }
  .salon__item a:hover .salon__cap, .salon__item a:focus-visible .salon__cap { opacity: 1; transform: none; }
  .salon__wall:hover .salon__item img { opacity: .35; transition: opacity .25s; }
  .salon__wall:hover .salon__item a:hover img { opacity: 1; }
}
@media (max-width: 759px) {
  .salon__item { --h: 58vw; }
  .salon__item--1, .salon__item--3 { --h: 40vw; }
  .salon__item--2 { --h: 50vw; }
  .salon__wall { gap: 36px 20px; }
}

/* ---------- Serie-indeks ---------- */
.index { padding: clamp(48px, 8vw, 140px) var(--pad); }
.index .sect-head { padding: 0; }
.index__list { border-top: 2px solid var(--ink); }
.index__row { border-bottom: 1px solid var(--ink); }
.index__row a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px;
  padding: clamp(14px, 1.6vw, 22px) 0;
  text-decoration: none;
}
.index__name { font-size: clamp(2.3rem, 7.2vw, 7rem); line-height: .86; transition: color .15s; }
.index__count { color: var(--grey); font-size: .95rem; grid-column: 1; }
.index__thumbs { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 8px; align-items: center; }
.index__thumbs img { width: clamp(48px, 6vw, 96px); height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .25s; }
.index__row a:hover .index__name { color: var(--blue); }
.index__row a:hover .index__thumbs img { transform: translateY(-4px); }
.index__media { margin: 28px 0 0; font-size: 1.15rem; max-width: 60ch; }
.index__media a { font-weight: 600; }
.index--page { padding-top: 0; }
.index--small .index__name { font-size: clamp(1.9rem, 4.6vw, 4.2rem); }
.index__sub { font-size: clamp(1.6rem, 3vw, 2.6rem); margin-bottom: 18px; }
@media (max-width: 759px) {
  .index__row a { grid-template-columns: 1fr; }
  .index__thumbs { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .index__thumbs img { width: 56px; }
}

/* ---------- Statement ---------- */
.statement {
  padding: clamp(56px, 9vw, 160px) var(--pad);
  border-top: 2px solid var(--ink);
  margin: 0 var(--pad);
  padding-inline: 0;
}
.statement__text {
  margin: 0; font-size: clamp(1.7rem, 4.2vw, 4rem); line-height: 1.08;
  font-stretch: 80%; font-weight: 700; max-width: 22ch;
}
.statement__by { margin: 24px 0 0; color: var(--grey); }

/* Plassholdere: skal synes, med vilje. */
.ph { background: var(--marker); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 .15em; }
.ph__tag {
  font-size: max(.55em, .75rem); font-weight: 800; font-stretch: 100%;
  border: 1.5px solid currentColor; padding: 0 .35em; vertical-align: .25em; white-space: nowrap;
}

/* ---------- Plakat: Bergen ---------- */
.poster { background: var(--blue); color: #fff; }
.poster__link {
  display: grid; padding: clamp(40px, 6vw, 96px) var(--pad) clamp(40px, 5vw, 80px);
  text-decoration: none; color: #fff;
}
a.poster__link:hover { color: #fff; }
.poster__kicker { font-size: clamp(1.1rem, 2vw, 1.8rem); font-weight: 600; }
.poster__city { font-size: 27.5vw; line-height: .78; margin: .04em 0 .08em -0.04em; }
.poster__date { font-size: clamp(1.4rem, 3.4vw, 3.2rem); font-weight: 800; font-stretch: 75%; }
.poster__cta {
  justify-self: start; margin-top: clamp(20px, 3vw, 40px);
  border: 2px solid #fff; padding: 12px 22px; font-weight: 700;
  transition: background .15s, color .15s;
}
a.poster__link:hover .poster__cta { background: #fff; color: var(--blue); }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 90px) var(--pad) 32px; }
.foot a { color: #fff; }
.foot a:hover { color: #9fa9ff; }
.foot__mark { font-size: 19vw; line-height: .8; margin: 0 0 clamp(28px, 4vw, 56px) -0.03em; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; font-size: .95rem; }
.foot__cols p, .foot address { margin: 0; font-style: normal; }
.foot__small { color: #a8a8a8; }
@media (max-width: 759px) { .foot__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Sidehoder ---------- */
.page-head { padding: clamp(24px, 4vw, 64px) var(--pad) clamp(20px, 3vw, 40px); }
.page-head h1 { font-size: clamp(3.4rem, 12vw, 11rem); line-height: .82; }
.page-head__count { margin: 14px 0 0; color: var(--grey); }
.page-head__lede { margin: 16px 0 0; max-width: 60ch; font-size: 1.1rem; }
.crumbs { margin: 0 0 10px; }
.crumbs a { color: var(--grey); }
.series-title { font-size: clamp(3rem, 10vw, 9.5rem); line-height: .84; overflow-wrap: anywhere; }

/* ---------- Filter ---------- */
.filter {
  position: sticky; top: var(--top); z-index: 20;
  background: var(--paper);
  padding: 10px var(--pad) 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(20px, 3vw, 40px);
}
.filter__row { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.filter__row + .filter__row { margin-top: 4px; }
.chip { text-decoration: none; font-weight: 600; white-space: nowrap; display: inline-block; padding: 4px 0; }
.chip span { color: var(--grey); font-weight: 400; font-size: .85em; }
.chip[aria-pressed="true"] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; }
.chip--out { color: var(--grey); }
@media (max-width: 759px) {
  .filter__row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
  .filter__row::-webkit-scrollbar { display: none; }
}

/* ---------- Vegg (alle verk) ---------- */
.wall { columns: 2; column-gap: clamp(14px, 2vw, 32px); padding: 0 var(--pad); }
@media (min-width: 700px) { .wall { columns: 3; } }
@media (min-width: 1050px) { .wall { columns: 4; } }
@media (min-width: 1500px) { .wall { columns: 5; } }
.card { break-inside: avoid; margin-bottom: clamp(24px, 3vw, 44px); }
.card[hidden] { display: none; }
.card a { display: block; text-decoration: none; }
.card img { width: 100%; transition: opacity .2s; }
.card a:hover img { opacity: .82; }
.card__cap { display: block; margin-top: 8px; }
.card__title { display: block; font-size: 1.05rem; line-height: 1.05; }
.card a:hover .card__title { color: var(--blue); }
.card__meta { display: block; color: var(--grey); font-size: .85rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.wall__empty, .wall__more { padding: 0 var(--pad); margin: 8px 0 clamp(48px, 7vw, 120px); display: flex; gap: 24px; flex-wrap: wrap; }
.wall__more a { font-weight: 600; }

/* ---------- Verkside ---------- */
.work {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(24px, 4vw, 72px);
  padding: 8px var(--pad) clamp(40px, 6vw, 96px);
  align-items: start;
}
.work__stage { display: flex; flex-direction: column; align-items: center; }
.work__img {
  max-height: calc(100svh - var(--top) - 40px);
  width: auto; max-width: 100%;
  object-fit: contain;
  transition: opacity .2s;
}
.work__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; justify-content: center; }
.work__thumbs a { display: block; border: 2px solid transparent; padding: 2px; }
.work__thumbs a[aria-current="true"] { border-color: var(--ink); }
.work__thumbs img { height: 72px; width: auto; }
.work__info { position: sticky; top: calc(var(--top) + 16px); }
.work__title { font-size: clamp(2.6rem, 5.4vw, 5.6rem); line-height: .86; overflow-wrap: anywhere; }
.work__artist { margin: 10px 0 0; font-weight: 600; }
.work__cat { margin: 28px 0 0; padding: 18px 0 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.work__cat dt { color: var(--grey); font-size: .9rem; padding-top: .15em; }
.work__cat dd { margin: 0; }
.work__price { font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.work__actions { margin: 28px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.work__tel { color: var(--grey); }
.work__groups { margin: 24px 0 0; color: var(--grey); }
.work__groups a { color: var(--ink); font-weight: 600; }
.work__pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .95rem; }
@media (max-width: 899px) {
  .work { grid-template-columns: 1fr; }
  .work__info { position: static; }
  .work__img { max-height: 78svh; }
}

.btn {
  display: inline-block; background: var(--ink); color: #fff; border: 2px solid var(--ink);
  padding: 13px 24px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }

.related { padding: clamp(40px, 6vw, 96px) var(--pad); border-top: 2px solid var(--ink); margin: 0 var(--pad); padding-inline: 0; }
.related h2 { font-size: clamp(1.8rem, 4vw, 3.6rem); margin-bottom: 28px; }
.related h2 a { text-decoration: none; color: var(--blue); }
.related__strip { display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.related__strip .card { flex: 0 0 clamp(150px, 16vw, 240px); margin: 0; }

/* ---------- Om ---------- */
.about { padding: clamp(24px, 4vw, 64px) var(--pad) clamp(48px, 7vw, 120px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); }
.about__head { grid-column: 1 / -1; }
.about__title { font-size: clamp(3.2rem, 11vw, 10.5rem); line-height: .82; }
.about__lede { font-size: clamp(1.2rem, 2vw, 1.8rem); margin: 20px 0 0; max-width: 30ch; font-weight: 500; line-height: 1.25; }
.about__fig { margin: 0; }
.about__fig figcaption { margin-top: 10px; font-size: .9rem; color: var(--grey); }
.about__text { max-width: 62ch; }
.about__text h2, .cv h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); margin: 0 0 12px; }
.about__text h2 + p { margin-top: 0; }
.about__text p { margin: 0 0 40px; }
.cv { grid-column: 1 / -1; border-top: 2px solid var(--ink); padding-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cv h2 { grid-column: 1 / -1; }
.cv h3 { font-size: 1rem; margin-bottom: 8px; }
.cv p { margin: 0; }
@media (max-width: 899px) {
  .about { grid-template-columns: 1fr; }
  .cv { grid-template-columns: 1fr 1fr; }
}

/* ---------- Bergen / kontakt ---------- */
.poster--page .poster__link { padding-top: clamp(32px, 5vw, 72px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 88px); padding: clamp(40px, 6vw, 96px) var(--pad) clamp(56px, 8vw, 128px); }
.split h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin-bottom: 18px; }
.split__text { max-width: 52ch; }
.split--contact { padding-top: 0; }
.contact__big { font-size: clamp(1.5rem, 3.2vw, 2.8rem); font-weight: 800; font-stretch: 75%; margin: 0 0 6px; overflow-wrap: anywhere; }
.contact__big a { text-decoration: none; }
.contact address { font-style: normal; margin: 24px 0 12px; }
.contact__note { color: var(--grey); margin-top: 28px; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-content: start; }
.form p { margin: 0 0 12px; }
.form__wide { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; margin-bottom: 4px; }
.form .opt { font-weight: 400; color: var(--grey); }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 10px 2px;
}
.form textarea { border: 2px solid var(--ink); padding: 10px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 2px 0 var(--blue); }
.form__note { font-size: .88rem; color: var(--grey); }
@media (max-width: 559px) { .form { grid-template-columns: 1fr; } }

.page-head--404 { min-height: 50svh; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 759px) {
  .hero__head { width: 34vw; }
  .hero__cap { flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
}
