*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  cursor: url('cursor.png'), auto;;
}

a, button, [role="button"], label, select, input[type="submit"], input[type="button"], .filter-btn, .tab-btn, .pil, .topp-pil, .project-item a .project-image, [style*="cursor: pointer"] {
  cursor: url('cursor2.png'), pointer !important;
}

html {
  background: #f4f0ed;
  overflow-x: hidden;
}

html:has(.kontakt-page) {
  background: #000;
}

body {
  font-family: 'Inter', sans-serif;
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body .footer {
  margin-top: auto;
}

body:not(.kontakt-page) {
  background: #f4f0ed;
}

/* ─── NAV ─────────────────────────────── */
nav:not([class]) {
  background: #000000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 24px 18px;
}

nav:not([class]) a:first-child {
  justify-self: start;
}

nav:not([class]) a:last-child {
  justify-self: end;
}

nav:not([class]) a {
  color: #fff;
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

nav:not([class]) a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

nav:not([class]) a:hover::after {
  width: 100%;
}

nav:not([class]) a.active::after {
  width: 100%;
}


.prosjekt-page nav:not([class]) {
  background: #f4f0ed;
}

.prosjekt-page nav:not([class]) a {
  color: #000000;
}

/* ─── HERO ────────────────────────────── */
.hero {
  background: #000000;
  padding: 50px 24px 76px;
}

.hero h1 {
  font-weight: 100;
  font-size: 4.5rem;
  line-height: 1.0em;
  color: #fff;
  animation: fadeSlideUp 0.9s ease forwards;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitle {
  animation: fadeSlideUp 0.9s ease 0.3s forwards;
  opacity: 0;
  margin-top: 16px;
  margin-left: 0.5rem;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: #aaa;
  text-transform: uppercase;
}

/* ─── ABOUT ───────────────────────────── */

.about {
  padding: 52px 24px 32px;
}

.about h2,
.projects h2 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 32px;
}

.about p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.78em;
  color: #333;
  margin-bottom: 1em;
  max-width: 65ch;
}

.about p:last-child {
  margin-bottom: 0;
}

/* ─── PHOTO ───────────────────────────── */
.photo-wrap {
  padding: 30px 24px 56px;
}

.photo-box {
  background: #d0cdc8;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-label {
  font-size: 2.75rem;
  font-weight: 300;
  color: #aaa8a2;
}

/* ─── FILTER BUTTONS ──────────────────── */
.filter-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  align-items: center;
}

.filter-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-btn {
  font-family: inherit;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  text-decoration: none;
}

.filter-btn.active {
  background: #1a1a1a;
  color: #fff;
}

/* ─── KOMMER SNART ───────────────────── */
.kommer-snart-melding {
  padding: 80px 0;
  text-align: center;
  color: #888;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* ─── SHARED PROJECT STYLES ───────────── */
.projects {
  padding: 40px 24px 64px;
}

.project-image {
  background: #d0cdc8;
  width: 100%;
  position: relative;
  margin-bottom: 14px;
  overflow: hidden;
}

.project-number {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 0 8px rgba(0,0,0,0.6);
  will-change: transform;
}

.project-number-dark {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 0 8px rgba(0,0,0,0.6);
}

.project-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #f4f0ed;
  color: #1a1a1a;
  padding: 4px 8px;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.project-link {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  padding-bottom: 2px;
  position: relative;
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #1a1a1a;
}

.project-link:hover::after {
  animation: underline-swipe 0.8s ease forwards;
}

@keyframes underline-swipe {
  0%   { transform: scaleX(1); transform-origin: right; }
  45%  { transform: scaleX(0); transform-origin: right; }
  55%  { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* ─── HOME: PROJECT LIST ──────────────── */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-list .project-image {
  aspect-ratio: 4 / 3;
}

.project-item a .project-image {
  cursor: pointer;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  scale: 1.7;
  transition: scale 0.4s ease;
}

.project-image:hover img {
  scale: 1.85;
}

.project-grid .project-item:nth-child(6) .project-image img {
  scale: 1;
}

.project-grid .project-item:nth-child(6) .project-image:hover img {
  scale: 1.15;
}



.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.project-footer .project-title {
  margin-bottom: 0;
}

@keyframes se-alle-puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(255, 105, 180, 0); }
}

.se-alle-btn {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgb(195, 0, 124);
  color: rgb(195, 0, 124);
  padding: 5px 10px;
  display: inline-block;
  margin-left: auto;
  animation: se-alle-puls 2s ease-in-out infinite;
}

.se-alle-mobil {
  display: none;
  order: 999;
}

@media (max-width: 767px) {
  .filter-buttons .se-alle-btn {
    display: none;
  }

  .se-alle-mobil {
    display: inline-block;
    margin-left: 0;
    margin-top: 16px;
    width: fit-content;
    align-self: flex-start;
  }

  .filter-btn {
    font-size: 0.625rem;
    padding: 5px 8px;
  }

  .view-btn {
    padding: 5px;
  }

  .filter-btn-group {
    flex-wrap: nowrap;
  }

  .project-item {
    padding-bottom: 20px;
  }
}

/* ─── SHARED: (footer + kontakt) ─── */
.dark-seksjon {
  background: #000;
  padding: 52px 24px;
}

.dark-tittel {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 28px;
}

.dark-lenker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dark-lenker a {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.dark-lenker a:hover {
  border-bottom-color: #fff;
}

/* ─── FOOTER ─────────────────────────── */
.footer {
  background: #000;
  padding: 52px 24px;
}

.footer-innhold {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-topp {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-venstre {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-om h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.footer-om p {
  font-size: 0.875rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.7em;
  max-width: 280px;
}

.footer-bunn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid #333;
}

.footer-bunn span {
  font-size: 0.75rem;
  font-weight: 300;
  color: #999;
  letter-spacing: 0.05em;
}

.topp-pil img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.topp-pil:hover {
  opacity: 0.6;
}

/* ─── KONTAKT PAGE ────────────────────── */
.kontakt-page {
  background: #000;
  min-height: 100vh;
}

/* ─── PROSJEKTER PAGE: GRID ───────────── */
.back-arrow {
  padding: 20px 24px 0;
}

.back-arrow a {
  font-size: 1.5rem;
  color: #1a1a1a;
  text-decoration: none;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.project-grid .project-image {
  aspect-ratio: 3 / 2;
  margin-bottom: 0;
}

.project-grid .project-number {
  font-size: 3rem;
}

.project-grid .project-tag {
  top: auto;
  bottom: 10px;
  right: 10px;
}

.project-grid.liste {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.project-grid.liste .project-image {
  aspect-ratio: 1 / 1;
}

.project-grid.liste .project-number {
  font-size: 2.4rem;
}

.project-list .project-number {
  font-size: 3rem;
}

.view-toggle {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.view-btn {
  background: none;
  border: 1px solid #ccc;
  padding: 6px;
  cursor: pointer;
  color: #bbb;
  line-height: 0;
  border-radius: 3px;
  transition: color 0.15s, border-color 0.15s;
}

.view-btn.active {
  color: #1a1a1a;
  border-color: #1a1a1a;
}

.view-btn:hover {
  color: #1a1a1a;
  border-color: #1a1a1a;
}

/* ─── PROSJEKT DETAIL PAGE ────────────── */
.prosjekt-hero {
  padding: 16px 24px 0;
}

.prosjekt-nummer {
  display: block;
  font-size: 6.25rem;
  font-weight: 700;
  line-height: 1em;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.prosjekt-tittel {
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.prosjekt-linje {
  border: none;
  border-top: 1px solid #1a1a1a;
}

.prosess-page .prosjekt-linje {
  display: none;
}

.prosjekt-innhold {
  padding: 24px 24px 64px;
}

.prosjekt-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

.tab-btn {
  font-family: inherit;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  position: relative;
  z-index: 1;
  transition: border-color 0.15s;
}

.tab-btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle),
    #1a1a1a 0%,
    #1a1a1a 75%,
    transparent 75%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  -webkit-mask-composite: destination-out;
  mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.15s;
}

.tab-btn:not(.active):hover {
  border-color: #ccc;
}

.tab-btn:not(.active):hover::before {
  opacity: 1;
  animation: border-spin 1.5s linear infinite;
}

.tab-btn.active {
  background: #1a1a1a;
  color: #fff;
}

a.tab-btn {
  text-decoration: none;
  display: inline-block;
}

.prosjekt-tekst {
  margin-bottom: 48px;
}

.prosjekt-tekst p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.78em;
  color: #333;
}

.prosjekt-tekst em {
  font-style: italic;
}

.prosjekt-meta {
  display: flex;
  gap: 32px;
}

.meta-kolonne h2 {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #595959;
  margin-bottom: 6px;
}

.meta-kolonne ul {
  list-style: none;
}

.meta-kolonne ul li {
  font-size: 0.875rem;
  font-weight: 300;
  color: #333;
  line-height: 1.9em;
  max-width: 160px;
}

/* ─── GALLERI ─────────────────────────── */
.galleri-wrapper {
  overflow: hidden;
  transition: height 0.35s ease;
}

.galleri-bilder {
  display: flex;
  align-items: flex-start;
  transition: transform 0.4s ease;
}

.galleri-slide {
  min-width: 100%;
}

.galleri-bilde-placeholder {
  background: none;
  width: 100%;
  aspect-ratio: unset;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.galleri-bilde-placeholder img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  position: static;
  top: 0;
  left: 0;
}

.project-grid .project-image {
  overflow: hidden;
  position: relative;
}

.project-grid .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.galleri-tekst {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.78em;
  color: #333;
  margin-bottom: 32px;
  max-width: 65ch;
}

.galleri-tekst:has(+ .galleri-tekst) {
  margin-bottom: 0;
}

.galleri-tekst + .galleri-tekst {
  margin-top: 0.75em;
}

.galleri-indikatorer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.indikator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.3s;
}

.indikator.active {
  background: #1a1a1a;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* ─── GALLERI CONTROLS ────────────────── */
.galleri-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  pointer-events: none;
}

.galleri-controls .pil {
  pointer-events: all;
}

.galleri-controls .galleri-indikatorer {
  pointer-events: none;
  margin: 0;
  padding: 0;
  position: static;
}

@media (max-width: 767px) {
  .galleri-controls {
    order: 2;
    padding-bottom: 0;
    padding-top: 8px;
  }
}

.pil {
  background: none;
  border: none;
  color: #1a1a1a;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1em;
}

.pil:hover {
  opacity: 0.5;
}

/* ─── PROSESS PAGE ────────────────────── */
.prosess-tekst {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.78em;
  color: #333;
  margin-bottom: 32px;
  max-width: 65ch;
}


@keyframes monster-flyt {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-24px, 16px) scale(1.04); }
  50%  { transform: translate(16px, -20px) scale(1.06); }
  75%  { transform: translate(-12px, 22px) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}

.monster-animert-wrapper {
  overflow: hidden;
  display: inline-block;
}

.monster-animert {
  animation: monster-flyt 14s ease-in-out infinite;
  display: block;
}


.pdf-bladrer {
  padding: 48px 24px;
}

.pdf-flipbook-wrapper {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

#flipbook {
  width: 100%;
}

.pdf-preview {
  display: none;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
  #flipbook { display: none; }
  .pdf-preview { display: none; }
  .pdf-flipbook-wrapper {
    aspect-ratio: 1 / 1.414;
    background: #ebe7e3;
  }
}

.pdf-fs-spinner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.pdf-laster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  transition: opacity 0.3s;
  min-height: 200px;
}

.pdf-laster-innhold {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pdf-laster-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #ddd;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: pdf-spin 0.7s linear infinite;
}

.pdf-laster-tekst {
  font-size: 0.8rem;
  font-weight: 300;
  color: #595959;
  letter-spacing: 0.03em;
}

@keyframes pdf-spin {
  to { transform: rotate(360deg); }
}

.pdf-tap-overlay {
  display: none;
  position: absolute;
  inset: 0;
  cursor: pointer;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 50%);
}

.pdf-tap-hint {
  color: white;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pdf-fullscreen-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 9999;
  flex-direction: column;
}

.pdf-fullscreen-modal.aktiv {
  display: flex;
}


.pdf-fs-topp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  flex-shrink: 0;
}

.pdf-fs-teller {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

.pdf-fs-lukk {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.pdf-fs-lukk:hover {
  opacity: 1;
}

.pdf-fs-vis {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-fs-vis img,
.pdf-fs-oppslag {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
}

.pdf-fs-oppslag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
}

.pdf-fs-oppslag img,
.pdf-fs-oppslag canvas {
  position: static;
  max-width: calc(50% - 1px);
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.slide-inn-hoyre {
  animation: fsSlideHoyre 0.22s ease;
}

.slide-inn-venstre {
  animation: fsSlideVenstre 0.22s ease;
}

@keyframes fsSlideHoyre {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fsSlideVenstre {
  from { transform: translateX(-24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.pdf-fs-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px;
  flex-shrink: 0;
}

.pdf-fs-nav .pdf-pil img {
  filter: invert(1);
}

.pdf-bladrer-topp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pdf-bladrer-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.pdf-side-teller {
  font-size: 0.875rem;
  font-weight: 300;
  color: #595959;
}

.pdf-bladrer-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.pdf-viewer {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  min-height: 200px;
  background: #f5f3f0;
}

.pdf-oppslag {
  display: flex;
  gap: 2px;
}

.pdf-oppslag canvas {
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
}

.pdf-pil {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.pdf-pil:hover {
  opacity: 1;
}

.pdf-pil img {
  width: 32px;
  height: 32px;
  display: block;
}

.prototype-lenke-wrapper {
  padding: 8px 0;
}

.prototype-lenke {
  font-size: 0.875rem;
  font-weight: 300;
  color: #1a1a1a;
  text-decoration: underline;
}

.pdf-nedlasting {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1a1a1a;
}

.pdf-ikon {
  font-size: 2rem;
  color: #1a1a1a;
  flex-shrink: 0;
}

.pdf-navn {
  font-size: 0.875rem;
  font-weight: 300;
  color: #1a1a1a;
}

.download-ikon {
  width: 20px;
  height: 20px;
  margin-left: 4px;
}

/* ─── BILDEREFERANSER ─────────────────── */
.bildereferanser {
  border-top: 1px solid #aaa;
  margin: 0 24px;
  padding: 48px 0;
}

.bildereferanser-tittel {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #888;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.bildereferanser-tittel::-webkit-details-marker {
  display: none;
}

.bildereferanser-tittel::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: #888;
  flex-shrink: 0;
}

details[open] .bildereferanser-tittel::after {
  content: '−';
}

.bildereferanser-liste {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.bildereferanser-liste li {
  font-size: 0.875rem;
  font-weight: 300;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.bildereferanser-url {
  color: #555;
  text-decoration: none;
  word-break: break-all;
}

.bildereferanser-url:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

/* ─── DESKTOP ─────────────────────────── */
@media (min-width: 768px) {

  /* NAV */
  nav:not([class]) {
    padding: 28px 64px 22px;
  }

  .prosjekt-page nav:not([class]) {
    background: #f4f0ed;
  }

  .prosjekt-page nav:not([class]) a {
    color: #0a0a0a;
  }

  /* HERO */
  .hero {
    padding: 120px 64px 150px;
  }

  .hero h1 {
    font-size: 7.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
    margin-left: 1.8rem;
  }

  /* OM MEG */
  .om-meg-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
    padding: 80px 64px;
  }

  .om-meg-wrapper .about {
    padding: 0;
    flex: 1;
  }

  .om-meg-wrapper .photo-wrap {
    padding: 0;
    flex: 1;
    max-width: 500px;
  }

  /* PROJECTS - HOME */
  .projects {
    padding: 80px 64px 100px;
  }

  .project-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .project-list .project-image {
    aspect-ratio: 1 / 1;
  }

  /* PROJECTS - GRID PAGE */
  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .project-grid.liste {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
  }

  /* BACK ARROW */
  .back-arrow {
    padding: 32px 64px 0;
  }

  /* PROSJEKT DETAIL */
  .prosjekt-hero {
    padding: 32px 64px 0;
  }

  .prosjekt-nummer {
    font-size: 10rem;
  }

  .prosjekt-tittel {
    font-size: 3rem;
  }

  .project-grid .project-number {
    font-size: 5rem;
  }

  .project-grid.liste .project-number {
    font-size: 4rem;
  }

  .project-list .project-number {
    font-size: 4rem;
  }

  .prosjekt-innhold {
    padding: 40px 64px 100px;
  }

  .bildereferanser {
    margin: 0 64px;
    padding: 48px 0;
  }

  .prosjekt-body {
    display: flex;
    gap: 100px;
    align-items: flex-start;
    max-width: 1100px;
    flex-wrap: wrap;
  }

  .prosjekt-tekst {
    min-width: 400px;
    flex: 1;
    margin-bottom: 0;
  }

  .prosjekt-meta {
    flex-shrink: 0;
    gap: 64px;
  }

  /* GALLERI */
  .galleri-wrapper {
    width: 100%;
  }

  .galleri-bilder {
    width: 100%;
  }

  .galleri-slide {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
    min-width: 100%;
    width: 100%;
  }

  .galleri-bilde-kolonne {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
  }

  .galleri-bilde-placeholder {
    width: 100%;
    flex-shrink: 0;
  }

  .galleri-tekst-wrapper {
    width: 50%;
  }

  .galleri-tekst {
    width: 100%;
  }


  /* DARK SECTION + FOOTER */
  .dark-seksjon {
    padding: 80px 64px;
  }

  .footer {
    padding: 80px 64px;
  }

  /* KONTAKT PAGE - full height */
  .kontakt-page .dark-seksjon {
    min-height: calc(100vh - 67px);
  }

}

@media (min-width: 1200px) {
  .project-list {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/* ─── OM MEG: Litt lengre linjer kun på stor skjerm ──────────── */
/* Gjelder bare når viewport ≥ 1680px (body er på maks-bredde)   */
@media (min-width: 1680px) {
  .om-meg-wrapper .about p {
    max-width: 80ch;
  }
}

/* ─── PROSESS ─────────────────────────── */

/* Sticky tidslinje — direkte barn av body, ikke inni section */
.prosess-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f4f0ed;
  padding: 2px 24px 4px;
}

.prosess-tidslinje-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.tidslinje-linje-h {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  background: #999;
  pointer-events: none;
  overflow: hidden;
}

.tidslinje-linje-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #1a1a1a;
  transition: width 0.4s ease;
}

.tidslinje-prikk-h {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.tidslinje-prikk-h::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  transition: width 0.35s ease, height 0.35s ease, background 0.35s ease;
}

.tidslinje-prikk-h.active::after {
  width: 16px;
  height: 16px;
  background: #1a1a1a;
}

/* Innholdsområde */
.prosess-innhold-wrapper {
  position: relative;
  padding-top: 8px;
}

.prosess-fade-topp {
  display: none;
}

.prosess-fade-bunn {
  display: none;
  pointer-events: none;
  z-index: 5;
  margin-top: -100px;
}

.prosess-separator-fade {
  height: 1px;
  background: #aaa;
  margin: 64px 0;
}

.index-separator {
  margin: 0 24px;
}

@media (min-width: 768px) {
  .index-separator {
    margin: 0 64px;
  }
}

.prosess-steg {
  margin-bottom: 64px;
}

.prosess-steg:last-child {
  margin-bottom: 0;
}

.prosess-steg-fase {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #595959;
  margin: 0 0 6px;
}

.prosess-steg-tittel {
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 16px;
}

.prosess-steg-bilde {
  margin-top: 24px;
}

.prosess-steg-bilde img {
  width: 100%;
  height: auto;
  display: block;
}

.prosess-til-resultat {
  margin-top: 48px;
}

.prosess-nedlasting {
  padding-top: 48px;
  border-top: 1px solid #aaa;
  margin-top: 48px;
}

/* ─── PROSESS DESKTOP ─────────────────── */
@media (min-width: 768px) {

  .prosess-sticky-bar {
    padding: 2px 64px 4px;
  }

  .prosess-fade-topp {
    display: none;
  }

  .prosess-steg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 100px;
  }

  .prosess-steg-tekst { order: 1; }
  .prosess-steg-bilde { order: 2; margin-top: 0; }

  .prosess-steg--speil .prosess-steg-tekst { order: 2; }
  .prosess-steg--speil .prosess-steg-bilde { order: 1; }

  .mini-karusell-bilder img {
    max-height: 500px;
    object-fit: contain;
    background: transparent;
  }

}



/* Fade under tabs — sticky, sits after the tabs div */
.prosess-tabs-fade {
  position: sticky;
  top: 34px;
  height: 60px;
  margin-bottom: -60px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.prosess-tabs-fade.synlig {
  opacity: 1;
  background: linear-gradient(to bottom, #f4f0ed 30%, transparent);
}

/* ─── VERDIORD ────────────────────────── */
.verdiord-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}

.verdiord-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.verdiord-tall {
  font-size: 5rem;
  font-weight: 700;
  color: #888;
  line-height: 1em;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .verdiord-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .verdiord-tall {
    font-size: 3rem;
  }
}

.verdiord-tekst {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
}

/* ─── MINI KARUSELL (prosess) ─────────── */
.mini-karusell {
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .mini-karusell-controls { order: 2; padding-top: 8px; padding-bottom: 0; }
  .mini-karusell-viewport { order: 1; }
}

@media (max-width: 767px) {
  .footer-topp {
    flex-direction: column;
  }
}

.mini-karusell-viewport {
  overflow: hidden;
  transition: height 0.4s ease;
  position: relative;
}

.mini-karusell-bilder {
  display: flex;
  align-items: flex-start;
  transition: transform 0.4s ease;
}

.mini-karusell-bilder img {
  min-width: 100%;
  height: auto;
  display: block;
}

.mini-karusell-indikatorer {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.mini-karusell-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  pointer-events: none;
}

.mini-karusell-controls .pil {
  pointer-events: all;
}

.mini-karusell-controls .mini-karusell-indikatorer {
  pointer-events: none;
  margin: 0;
}

.mini-karusell-caption {
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #595959;
  text-align: center;
}

/* ─── FLAT VISNING ────────────────────── */
.flat-visning {
  padding: 64px 0;
  border-top: 1px solid #aaa;
  margin-top: 64px;
}

.flat-visning-tittel {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 32px;
}

.flat-rad {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 48px;
  border-bottom: 1px solid #aaa;
  margin-bottom: 48px;
}

.flat-rad:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.flat-rad-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flat-rad-tittel {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #595959;
}

.flat-rad-format {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.78em;
  color: #595959;
}

.flat-visning--mork .flat-rad-tittel,
.flat-visning--mork .flat-rad-format {
  color: #555;
}

.flat-visning--mork .flat-rad-bilder img {
  max-width: 100% !important;
  max-height: none;
}

@media (min-width: 768px) {
  .flat-visning--mork .flat-rad-info {
    width: 180px;
  }

  .flat-visning--mork .flat-rad-bilder img {
    max-width: 500px !important;
    max-height: 700px;
  }
}

.flat-rad-bilder {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.flat-rad-bilder img {
  max-width: 100%;
  max-height: 80vw;
  width: auto;
  height: auto;
  display: block;
}


@media (min-width: 768px) {
  .flat-visning {
    padding: 80px 0;
  }

  .flat-rad {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .flat-rad-info {
    width: 120px;
    flex-shrink: 0;
    padding-top: 4px;
  }

  .flat-rad-bilder {
    flex: 1;
  }
}

/* ─── SPESIFIKASJONER ─────────────────── */
.spesifikasjoner {
  border-top: 1px solid #aaa;
  margin-top: 64px;
  padding-top: 48px;
}

.spesifikasjoner-tittel {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 40px;
}

.spesifikasjoner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.spesifikasjoner-felt h3 {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #595959;
  margin-bottom: 6px;
}

.spesifikasjoner-felt p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: #1a1a1a;
  line-height: 1.6em;
}

/* ─── SCROLL REVEAL ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.synlig {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── FULL-BLEED BAKGRUNN PÅ BREDE SKJERMER ──────────────────── */
/* Forlenger seksjonsbakgrunner til skjermkanten når
   viewport er bredere enn max-width (1920px).
   calc((100vw - 100%) / -2) = nøyaktig avstanden til viewport-kant. */

nav:not([class]),
.hero,
.om-meg-wrapper,
.footer,
.dark-seksjon {
  position: relative;
  isolation: isolate;
}

nav:not([class])::before,
.hero::before,
.om-meg-wrapper::before,
.footer::before,
.dark-seksjon::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((100vw - 100%) / -2);
  right: calc((100vw - 100%) / -2);
  background: inherit;
  z-index: -1;
}
