/* Malermester Dema AS – hovedstil */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations"), url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --primer: #f3f4f2;
  --white: #ffffff;
  --ink: #15171a;
  --ink-2: #4a5057;
  --line: #d9dcd9;
  --red: #d7282a;
  --red-dark: #b81f21;
  --yellow: #f4b92e;
  --blue: #2463c4;
  --dark: #15171a;
  --dark-2: #1e2125;

  --stroke: linear-gradient(90deg, var(--yellow) 0 36%, var(--red) 36% 64%, var(--blue) 64% 100%);

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 6px;
  --header-h: 76px;

  --fs-0: 0.875rem;
  --fs-1: 1rem;
  --fs-2: 1.1875rem;
  --fs-3: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --fs-4: clamp(1.875rem, 1.3rem + 2.2vw, 3rem);
  --fs-5: clamp(2.375rem, 1.4rem + 4vw, 4.75rem);

  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--ink);
  background: var(--primer);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 800; font-stretch: 112%; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.5em;
  border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 650; font-stretch: 105%; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.on-dark .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 244, 242, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--stroke); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.brand { position: relative; display: block; flex: none; line-height: 0; }
.brand img { height: 62px; width: auto; }
.brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 42%, rgba(255,255,255,.75) 49%, rgba(255,255,255,.9) 50%, rgba(255,255,255,.75) 51%, transparent 58%);
  background-size: 300% 100%;
  background-position: var(--sheen, 120%) 0;
  -webkit-mask: url("../logo.svg") center / contain no-repeat;
  mask: url("../logo.svg") center / contain no-repeat;
  opacity: .9;
}

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 14px; text-decoration: none; font-weight: 550; border-radius: var(--radius); position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-phone { white-space: nowrap; min-height: 46px; padding: 0 1.1em; }

.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: transparent; border-radius: var(--radius); cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 17px; } .menu-toggle span:nth-child(2) { top: 23px; } .menu-toggle span:nth-child(3) { top: 29px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-call { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 50px; }
  .header-phone { display: none; }
  .menu-toggle { display: block; margin-left: 0; }
  .mobile-call { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 48px; height: 48px; border-radius: var(--radius); background: var(--red); color: #fff; }
  .mobile-call svg { width: 22px; height: 22px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    background: var(--primer); padding: 24px var(--gutter) 40px;
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
    height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { font-size: 1.75rem; font-weight: 750; font-stretch: 110%; padding: 16px 0; }
  .nav a::after { display: none; }
  .nav__contact { display: grid; gap: 12px; margin-top: 32px; }
  .nav .nav__contact a { font-size: 1rem; font-weight: 650; font-stretch: 105%; padding: 0 1.5em; }
  .menu-open { overflow: hidden; }
}
@media (min-width: 961px) { .nav__contact { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__text { padding-bottom: clamp(24px, 4vw, 56px); }
.hero__kicker { font-weight: 650; color: var(--red); margin-bottom: 18px; font-size: var(--fs-2); }
.hero h1 { font-size: clamp(2.25rem, 1.2rem + 3vw, 3.75rem); font-weight: 850; font-stretch: 106%; letter-spacing: -0.025em; line-height: 1.02; }
.hero__lead { margin-top: 22px; font-size: var(--fs-2); color: var(--ink-2); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__media { position: relative; margin-right: calc(var(--gutter) * -1); }
.hero__frame { position: relative; overflow: hidden; border-radius: var(--radius) 0 0 var(--radius); aspect-ratio: 5 / 4; background: #cfd3d0; }
.hero__frame img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--py, 0px)); will-change: transform; }
.hero__note { position: absolute; left: 16px; bottom: 16px; margin: 0; background: rgba(21,23,26,.72); color: rgba(255,255,255,.85); font-size: var(--fs-0); padding: 7px 12px; border-radius: 4px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero__note strong { color: #fff; font-weight: 700; margin-right: 4px; }
@media (min-width: 1440px) { .hero__media { margin-right: calc((100vw - var(--wrap)) / -2 - var(--gutter)); } }

/* Signatur: penselstrøket */
.hero__stroke { display: block; width: 100%; height: clamp(46px, 7vw, 96px); margin-top: clamp(-30px, -2vw, -12px); position: relative; z-index: 2; pointer-events: none; }
.hero__stroke path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .hero__stroke path { stroke-dashoffset: 1; }
.js .is-loaded .hero__stroke path { animation: draw 1.4s .35s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 8px 0 0; padding: 0; }
.facts li { list-style: none; padding: 22px 24px 26px 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: var(--fs-3); font-weight: 800; font-stretch: 112%; line-height: 1.15; }
.facts span { color: var(--ink-2); }

.js .hero [data-in] { opacity: 0; transform: translateY(14px); }
.js .is-loaded .hero [data-in] { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; margin-inline: calc(var(--gutter) * -1); }
  .hero__frame { border-radius: 0; aspect-ratio: 16 / 11; }
  .hero__text { padding-bottom: 8px; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 16px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .hero__actions .btn { flex: 1 1 220px; }
  .hero__stroke { margin-top: 20px; height: 40px; }
}

/* ---------- Film (YouTube) ---------- */
.film { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px); }
.film__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.film__media { min-width: 0; }
.film__player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--dark); box-shadow: 0 24px 60px -28px rgba(21,23,26,.45); isolation: isolate; }
.film__poster, .film__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__poster { object-fit: cover; transition: transform 1.2s var(--ease), filter .5s; filter: saturate(.95) brightness(.9); }
.film__player::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(21,23,26,0) 45%, rgba(21,23,26,.55)); transition: opacity .4s; }
.film__play { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; text-decoration: none; }
.film__play-icon { width: clamp(60px, 7vw, 76px); height: clamp(60px, 7vw, 76px); border-radius: 50%; display: grid; place-items: center; background: var(--red); box-shadow: 0 10px 30px -8px rgba(215,40,42,.6), 0 0 0 0 rgba(255,255,255,.35); transition: transform .35s var(--ease), background .2s, box-shadow .5s; }
.film__play-icon svg { width: 42%; height: 42%; margin-left: 6%; }
.film__play-label { font-weight: 700; font-stretch: 106%; font-size: var(--fs-1); padding: 10px 16px; border-radius: 999px; background: rgba(21,23,26,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.film__play:hover .film__play-icon, .film__play:focus-visible .film__play-icon { transform: scale(1.07); background: var(--red-dark); box-shadow: 0 10px 30px -8px rgba(215,40,42,.6), 0 0 0 10px rgba(255,255,255,.18); }
.film__player:hover .film__poster { transform: scale(1.03); filter: saturate(1) brightness(.95); }
.film__play:focus-visible { outline: 3px solid var(--yellow); outline-offset: -6px; border-radius: 10px; }
.film__player.is-playing::after, .film__player.is-playing .film__play, .film__player.is-playing .film__poster { display: none; }
.film__text h2 { font-size: var(--fs-4); }
.film__text p { margin-top: 14px; color: var(--ink-2); font-size: var(--fs-2); }
.film__text h2 + p::after { content: ""; display: block; width: 120px; height: 6px; margin-top: 22px; border-radius: 2px; background: var(--stroke); }
.film__yt { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 650; text-underline-offset: 4px; min-height: 44px; }
.film__yt svg { width: 16px; height: 16px; }
.film__noscript { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; color: #fff; font-weight: 700; }
@media (max-width: 860px) {
  .film__grid { grid-template-columns: 1fr; }
  .film__text { order: -1; }
  .film__text h2 + p::after { display: none; }
  .film__yt { margin-top: 8px; }
  .film__play-label { display: none; }
}

/* ---------- Seksjoner ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section--white { background: var(--white); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: var(--fs-4); }
.section-head p { color: var(--ink-2); font-size: var(--fs-2); max-width: 36em; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Tjenester ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.service { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 20px; align-content: start; }
.service:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
.service__icon { grid-row: span 3; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--primer); }
.section--white .service__icon { background: var(--primer); }
.service__icon svg { width: 28px; height: 28px; }
.service h3 { font-size: var(--fs-3); }
.service p { color: var(--ink-2); margin-top: 6px; }
.service ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-0); font-weight: 550; background: var(--white); }
.clients { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; }
.clients p { font-weight: 700; margin-right: 6px; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.clients li { padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 999px; font-size: var(--fs-0); font-weight: 550; }
@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 26px 0 28px; border-left: 0; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; }
  .service__icon { width: 48px; height: 48px; }
}

/* ---------- Prosjekt-teaser ---------- */
.on-dark { background: var(--dark); color: #fff; }
.teaser { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(72px, 9vw, 128px); }
.teaser__bg { position: absolute; inset: -40px; z-index: -1; }
.teaser__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(.9) brightness(.42); transform: scale(1.08); opacity: 0; transition: opacity 1.6s ease; }
.teaser__bg img.is-active { opacity: 1; }
.teaser::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21,23,26,.9) 0%, rgba(21,23,26,.55) 55%, rgba(21,23,26,.3) 100%); }
.teaser__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.teaser h2 { font-size: var(--fs-4); }
.teaser p { margin-top: 18px; color: rgba(255,255,255,.78); font-size: var(--fs-2); max-width: 30em; }
.teaser .btn { margin-top: 32px; }
.teaser__count { display: block; margin-top: 14px; color: rgba(255,255,255,.6); font-size: var(--fs-0); }
.teaser__stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.teaser__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 6s linear; }
.teaser__stage img.is-active { opacity: 1; transform: scale(1); }
.teaser__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(21,23,26,.35) 62%, rgba(21,23,26,.88)); pointer-events: none; z-index: 1; }
.teaser__stage { touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.teaser__stage:active { cursor: grabbing; }
.teaser__stage img { pointer-events: none; -webkit-user-drag: none; }
.teaser__controls { position: absolute; left: 10px; right: 12px; bottom: 10px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.teaser__dots { display: flex; flex-wrap: wrap; }
.teaser__dot { width: 30px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.teaser__dot span { display: block; width: 18px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.45); transition: width .4s var(--ease), background .3s; }
.teaser__dot:hover span { background: rgba(255,255,255,.8); }
.teaser__dot.is-active span { width: 26px; background: #fff; }
.teaser__arrows { display: flex; gap: 8px; flex: none; }
.teaser__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(21,23,26,.4); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, border-color .2s, transform .15s; }
.teaser__arrow:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.7); }
.teaser__arrow:active { transform: scale(.94); }
.teaser__arrow svg { width: 18px; height: 18px; }
.teaser__stage:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.teaser__caps { position: absolute; left: 18px; right: 18px; bottom: 58px; z-index: 2; pointer-events: none; }
@media (max-width: 560px) { .teaser__stage { aspect-ratio: 4 / 3.4; } .teaser__dot { width: 22px; } .teaser__dot span { width: 12px; } .teaser__dot.is-active span { width: 18px; } .teaser__arrow { width: 40px; height: 40px; } .teaser__caps { bottom: 54px; } }
.teaser__cap { position: absolute; left: 0; bottom: 0; margin: 0; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .6s ease, transform .7s var(--ease); text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.teaser__cap.is-active { opacity: 1; transform: none; transition-delay: .25s; }
.teaser__cap strong { display: block; font-size: var(--fs-3); font-weight: 800; font-stretch: 110%; line-height: 1.15; }
.teaser__cap span { font-size: var(--fs-0); color: rgba(255,255,255,.82); }
@media (max-width: 860px) { .teaser__grid { grid-template-columns: 1fr; } .teaser__stage { order: -1; } }

/* ---------- Anmeldelser ---------- */
.reviews { padding-block: clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.reviews__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.reviews h2 { font-size: var(--fs-3); }
.reviews__intro p { color: var(--ink-2); margin-top: 10px; }
.reviews__intro a { display: inline-block; margin-top: 14px; font-weight: 650; text-underline-offset: 4px; }
.reviews__rail { position: relative; min-width: 0; }
.reviews__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding: 4px; margin: -4px; }
.reviews__track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: center; }
.review__avatar { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.1rem; }
.review__name { font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review__stars { display: flex; gap: 2px; color: #e8a913; }
.review__stars svg { width: 16px; height: 16px; }
.review__src { grid-column: 1 / -1; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-0); color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.review__src svg { width: 16px; height: 16px; }
.reviews__nav { display: flex; gap: 8px; margin-top: 16px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 1100px) { .review { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 860px) { .reviews__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .review { flex-basis: 86%; } }

/* ---------- Om oss ---------- */
.about__top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about__years { position: sticky; top: calc(var(--header-h) + 32px); }
.about__years strong { display: block; font-size: clamp(5rem, 3rem + 9vw, 10rem); line-height: .85; font-weight: 900; font-stretch: 125%; letter-spacing: -0.04em; }
.about__years strong::after { content: ""; display: block; width: 100%; max-width: 260px; height: 10px; margin-top: 18px; background: var(--stroke); border-radius: 2px; }
.about__years span { display: block; margin-top: 14px; font-weight: 650; font-size: var(--fs-2); }
.about h2 { font-size: var(--fs-4); margin-bottom: 24px; }
.about__lead { font-size: var(--fs-3); line-height: 1.4; font-weight: 450; max-width: 34em; }
.about__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(36px, 5vw, 56px); padding-top: 32px; border-top: 1px solid var(--line); }
.about__cols h3 { font-size: var(--fs-2); font-stretch: 105%; margin-bottom: 10px; }
.about__cols p { color: var(--ink-2); }
@media (max-width: 960px) { .about__cols { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .about__top { grid-template-columns: 1fr; } .about__years { position: static; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); list-style: none; margin: 0; padding: 0; }
.member figure { margin: 0; }
.member__img { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: #d4d8d5; }
.member__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(.92); transition: transform .8s var(--ease), filter .5s; }
.member__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--stroke); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.member:hover .member__img img { transform: scale(1.035); filter: saturate(1); }
.member:hover .member__img::after { transform: scaleX(1); }
.member figcaption { padding-top: 14px; }
.member h3 { font-size: var(--fs-2); font-stretch: 105%; }
.member p { font-size: var(--fs-0); line-height: 1.4; }
.member__mester { margin-top: 6px; color: var(--red-dark); font-weight: 650; display: flex; align-items: center; gap: 7px; }
.member__mester::before { content: ""; flex: none; width: 14px; height: 3px; border-radius: 2px; background: var(--stroke); }
.member__role { color: var(--ink-2); margin-top: 3px; }
.member__mester + .member__role { margin-top: 1px; }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } .member:first-child { grid-column: 1 / -1; } .member:first-child .member__img { aspect-ratio: 4 / 3.4; } }

/* ---------- Kontakt ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.contact h2 { font-size: var(--fs-4); }
.contact__intro { margin-top: 18px; color: rgba(255,255,255,.75); font-size: var(--fs-2); max-width: 30em; }
.contact__list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; }
.contact__list li { border-top: 1px solid rgba(255,255,255,.14); }
.contact__list li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.contact__list a, .contact__list div { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; align-items: center; padding: 18px 0; text-decoration: none; }
.contact__list svg { width: 22px; height: 22px; grid-row: span 2; color: var(--yellow); }
.contact__list small { color: rgba(255,255,255,.6); font-size: var(--fs-0); }
.contact__list strong { font-size: var(--fs-2); font-weight: 650; overflow-wrap: anywhere; }
.contact__list a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.contact__phone strong { font-size: var(--fs-3); font-weight: 800; font-stretch: 110%; }

.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.form h3 { font-size: var(--fs-3); }
.form > p { color: var(--ink-2); margin-top: 8px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--fs-0); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #c5c9c6; border-radius: var(--radius); background: var(--white); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,99,196,.2); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__error { color: var(--red-dark); font-size: var(--fs-0); min-height: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; }
.form__foot small { color: var(--ink-2); flex: 1 1 220px; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } .form .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); padding: 56px 0 32px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(2, minmax(0, 3fr)); gap: 32px; }
.footer__brand img { height: 72px; width: auto; }
.footer__brand p { margin-top: 16px; color: var(--ink-2); max-width: 28em; }
.site-footer h2 { font-size: var(--fs-1); font-stretch: 105%; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--ink-2); font-size: var(--fs-0); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Bilde-reveal (maler-rulle) ---------- */
.js [data-reveal] { clip-path: inset(0 100% 0 0); }
.js [data-reveal].is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }

/* ---------- Prosjektside ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); }
.breadcrumb { font-size: var(--fs-0); color: var(--ink-2); margin-bottom: 20px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #9aa09d; }
.breadcrumb a { text-underline-offset: 3px; }
.page-hero h1 { font-size: var(--fs-5); font-weight: 850; font-stretch: 115%; letter-spacing: -0.025em; }
.page-hero p { margin-top: 18px; font-size: var(--fs-2); color: var(--ink-2); max-width: 40em; }
.page-hero__stroke { width: min(320px, 60%); height: 10px; margin-top: 28px; background: var(--stroke); border-radius: 2px; }

.feature { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 40px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.feature__text h2 { font-size: var(--fs-4); }
.feature__text p { color: var(--ink-2); margin-top: 12px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(14px, 1.8vw, 24px); }
.gallery .tile { margin: 0; }
.gallery .tile img { aspect-ratio: 3 / 2; object-fit: cover; }
/* Et bilde som ellers ville stått alene på siste rad, får hele bredden */
@media (min-width: 1001px) { .gallery .tile:last-child:nth-child(3n+1) { grid-column: 1 / -1; } .gallery .tile:last-child:nth-child(3n+1) img { aspect-ratio: 21 / 8; object-position: 50% 55%; } }
@media (max-width: 1000px) and (min-width: 601px) { .gallery .tile:last-child:nth-child(2n+1) { grid-column: 1 / -1; } .gallery .tile:last-child:nth-child(2n+1) img { aspect-ratio: 21 / 9; object-position: 50% 55%; } }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.tile { break-inside: avoid; margin: 0 0 clamp(12px, 1.6vw, 20px); }
.tile button { display: block; width: 100%; padding: 0; border: 0; background: #d6d9d6; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; position: relative; }
.tile img { width: 100%; height: auto; transition: transform .9s var(--ease), filter .5s; }
.tile button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(21,23,26,.45)); opacity: 0; transition: opacity .4s; }
.tile__zoom { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease); }
.tile__zoom svg { width: 18px; height: 18px; }
.tile button:hover img, .tile button:focus-visible img { transform: scale(1.04); }
.tile button:hover::after, .tile button:focus-visible::after { opacity: 1; }
.tile button:hover .tile__zoom, .tile button:focus-visible .tile__zoom { opacity: 1; transform: none; }
.tile figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px; padding: 12px 2px 0; }
.tile__name { font-weight: 700; font-stretch: 106%; font-size: var(--fs-2); line-height: 1.25; }
.tile__firm { grid-column: 1 / -1; color: var(--ink-2); font-size: var(--fs-0); }

/* Prosjektstatus: årstall for ferdige, gul prikk for pågående */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-0); font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.status--live { color: var(--ink); }
.status--live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(244, 185, 46, .28); }
.feature__text .status { margin-bottom: 14px; }
.feature__place { font-weight: 500; color: var(--ink-2); }
.feature .tile { margin: 0; }
.feature .tile img { aspect-ratio: 3 / 2; object-fit: cover; }

.cta-band { padding-block: clamp(56px, 8vw, 104px); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: var(--fs-4); max-width: 18em; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(13,14,16,.96); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(13,14,16,.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in .3s ease; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(14px, 3vw, 28px); gap: 16px; }
.lightbox__count { font-size: var(--fs-0); color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 96px); touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; transition: opacity .35s ease, transform .45s var(--ease); }
.lightbox__stage img.is-leaving { opacity: 0; transform: translateX(calc(var(--dir, 1) * -24px)); }
.lightbox__stage img.is-entering { opacity: 0; transform: translateX(calc(var(--dir, 1) * 24px)); transition: none; }
.lightbox__cap { padding: 14px clamp(14px, 3vw, 28px) 20px; text-align: center; min-height: 56px; }
.lightbox__cap strong { display: block; }
.lightbox__cap span { color: rgba(255,255,255,.65); font-size: var(--fs-0); }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn svg { width: 20px; height: 20px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__prev { left: clamp(8px, 2vw, 28px); } .lightbox__next { right: clamp(8px, 2vw, 28px); }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: -62px; transform: none; } .lightbox__stage { margin-bottom: 0; } .lightbox__cap { padding-inline: 72px; } }

/* ---------- Redusert bevegelse ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { clip-path: none; }
  .js .hero__stroke path { stroke-dashoffset: 0; }
  .js .hero [data-in] { opacity: 1; transform: none; }
  .hero__frame img { transform: none !important; }
  .brand::after { display: none; }
}
