/* -------------------------- */
/* GLOBAL STYLE RESET         */
/* -------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: #0f0f0f;
    color: #e6e6e6;
    line-height: 1.6;
}


/* -------------------------- */
/* HEADER / NAV               */
/* -------------------------- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;

  /* Nesten gjennomsiktig */
  background: rgba(15, 15, 15, 0.18);

  /* Lett glass-effekt */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* Fjern skarp strek */
  border-bottom: none;

  z-index: 1000;
}

/* Myk "feather" under headeren */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  height: 28px;

  background: linear-gradient(
    to bottom,
    rgba(15, 15, 15, 0.18),
    rgba(15, 15, 15, 0)
  );

  pointer-events: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav a {
    margin-left: 2rem;
    color: #ffffff;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.2s;
}

.nav a:hover {
    color: #4ea8ff;
}

.nav .cta {
    padding: 8px 16px;
    border: 1px solid #4ea8ff;
    border-radius: 6px;
}

.nav .cta:hover {
    background: #4ea8ff;
    color: #000;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: 0.3s;
}

/* -------------------------- */
/* HERO SECTION               */
/* -------------------------- */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(90%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0,0,0,0.45));
}

.hero-overlay h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-overlay p {
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;

  color: rgba(255, 255, 255, 0.88);

  letter-spacing: 0.01em;
  line-height: 1.5;

  margin-bottom: 2rem;

  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.btn {
    padding: 14px 28px;
    background: #4ea8ff;
    color: #000;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
}

.btn:hover {
    background: #82c3ff;
}


/* -------------------------- */
/* CONTENT SECTIONS           */
/* -------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

h2, h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.intro p {
    font-size: 1.2rem;
    color: #c4c4c4;
}


/* -------------------------- */
/* FEATURED GRID              */
/* -------------------------- */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.media-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
}

.media-card img,
.media-card video {
    width: 100%;
    display: block;
}

figcaption {
    padding: 1rem;
    font-size: 0.95rem;
    color: #d3d3d3;
}

.intro.container {
    align-items: center;
    justify-content: center;
}


/* -------------------------- */
/* ANIMATIONS                 */
/* -------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

.portfolio {
    animation: fadeIn 0.7s ease;
}

section {
    animation: fadeIn 0.7s ease;
}
.content > h1,
.content > p {
  animation: fadeIn 0.7s ease;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;          /* jevn luft mellom blokker */
  max-width: 900px;     /* litt penere linjelengde */
  margin: 0 auto;
}

/* Litt bedre avstand mellom overskrift og intro */
.content > h1 {
  margin-bottom: 0.2rem;
}

/* Gjør intro-teksten litt mer lesbar uten å endre font/size */
.content > p {
  max-width: 70ch;
}

/* Listene får penere innrykk og jevn avstand */
.content ul {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Litt luft før nye seksjoner */
.content section {
  margin-top: 0.2rem;
}
.intro {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertikalt */
  align-items: center;     /* horisontalt */
  text-align: center;
}

.contact-info a {
  color: #cfd8ff;              /* softer light color */
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  color: #4ea8ff;              /* blue only on hover */
  text-decoration: underline;
}

/* Sosiale medier: mindre kort + 4 i en rekke */
.social-links .media-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.social-links .media-card {
  border-radius: 10px;
}

.social-links .media-card img {
  aspect-ratio: 16 / 10;   /* gjør alle like i høyde */
  object-fit: cover;
}

/* Responsivt: 2 og 2 på mindre skjermer */
@media (max-width: 900px) {
  .social-links .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobil: 1 per rad */
@media (max-width: 520px) {
  .social-links .media-grid {
    grid-template-columns: 1fr;
  }
}

.social-links .media-card img {
  object-fit: cover;
  object-position: center top; /* flytter fokus opp */
}

.social-links .media-card.fb-card img {
  object-position: center center;
}

.social-links h2 {
  font-family:  Arial, sans-serif;
  text-transform: lowercase;
}

.site-header .container {
  padding: 1.6rem 2rem;
}

.estate-link {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.estate-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.estate-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(75%);
  transition: transform 0.5s ease, filter 0.4s ease;
}

.estate-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
}

.estate-overlay h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.estate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px rgba(78,168,255,0.35);
}

.estate-card:hover img {
  transform: scale(1.05);
  filter: brightness(85%);
}

.estate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.services-page {
  max-width: 1080px;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(135deg, #1b1b1b, #111 68%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.service-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0 0 2rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.service-video-preview {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #080808;
  object-fit: cover;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

.service-photo-stack {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.service-photo-stack img {
  position: absolute;
  z-index: calc(3 - var(--photo-index));
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  transform: rotate(calc(var(--photo-index) * 2deg)) translateY(calc(var(--photo-index) * 7px));
  transition: transform 300ms ease;
}

.service-photo:hover .service-photo-stack img,
.service-photo:focus-visible .service-photo-stack img {
  transform: rotate(calc(var(--photo-index) * 2deg)) translateY(calc(var(--photo-index) * 10px)) scale(1.015);
}

.service-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.service-eyebrow {
  color: #82c3ff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.service-details h1,
.service-details h2 {
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.service-description {
  max-width: 48ch;
  color: #c4c4c4;
}

.service-purchase {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.service-price {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.service-price span {
  color: #aaa;
  font-size: 0.85rem;
}

.service-price strong {
  color: #fff;
  font-size: 1.5rem;
}

.service-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: 4px;
  background: #4ea8ff;
  color: #07111c;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.service-contact:hover {
  transform: translateY(-2px);
  background: #82c3ff;
}

.service-gallery {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  border: 0;
  background: rgba(10, 10, 10, 0.97);
  color: #fff;
}

.service-gallery[open] {
  display: block;
}

.service-gallery::backdrop {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
}

.service-gallery-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  margin-bottom: -76px;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0));
}

.service-gallery-header h2 {
  font-family: "Archivo", sans-serif;
  font-size: 1.25rem;
}

.service-gallery-close {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

.service-gallery-close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.18);
}

.service-gallery-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4rem, 10vh, 6.25rem);
  padding: 10rem 0 8rem;
}

.service-gallery-image {
  width: min(70vw, 900px);
  aspect-ratio: 16 / 9;
  scroll-snap-align: center;
  opacity: 0.3;
  transform: scale(0.92);
  transition: opacity 600ms ease, transform 600ms ease;
}

.service-gallery-image.visible {
  opacity: 1;
  transform: scale(1);
}

.service-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
}

@media (max-width: 700px) {
  .service-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-photo {
    max-width: 560px;
    margin: 0 auto;
  }

  .service-gallery {
    width: 100vw;
  }

  .service-gallery-images {
    gap: 4rem;
    padding-top: 8rem;
  }

  .service-gallery-image {
    width: 90vw;
  }
}

@media (max-width: 700px) {
  .estate-grid {
    grid-template-columns: 1fr;
  }
}




.cta-btn {
  position: relative;
  display: inline-block;
  padding: 1rem 2.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #4ea8ff, #82c3ff);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 30px rgba(78, 168, 255, 0.35);
}

.cta-btn span {
  position: relative;
  z-index: 2;
}

.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #82c3ff, #4ea8ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-btn:hover::before {
  opacity: 1;
}

.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(78, 168, 255, 0.55);
}

.cta-btn:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 999;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
  }
  .header-inner {
    position: relative;
    padding: 1rem 2rem;
  }
}

/* PREMIUM FULLBREDD SALGS-TEKST */
.premium-hook {
  width: 100%;
  background: rgba(15, 15, 15, 0.95);
  padding: 4rem 2rem 1rem;
  text-align: center;
  overflow: hidden;
}

.premium-hook h2 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.premium-hook p {
  font-size: 1.25rem;
  color: #d0d0d0;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.services-promo {
  width: 100%;
  padding: clamp(2rem, 4vw, 3.5rem) 2rem clamp(4rem, 8vw, 7rem);
  background: #0f0f0f;
  overflow: hidden;
}

.services-promo-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
  max-width: 1200px;
  margin: 0 auto;
}

.services-promo-copy {
  max-width: 510px;
}

.services-promo-eyebrow {
  margin-bottom: 1rem;
  color: #82c3ff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.services-promo-copy h2 {
  margin-bottom: 1.25rem;
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-size: 2.4rem;
  line-height: 1.15;
}

.services-promo-copy > p:not(.services-promo-eyebrow) {
  margin-bottom: 1rem;
  color: #c4c4c4;
  line-height: 1.75;
}

.services-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  background: #4ea8ff;
  color: #07111c;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.services-promo-cta:hover {
  transform: translateY(-2px);
  background: #82c3ff;
}

.services-promo-images {
  position: relative;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  /* Teksten bestemmer radhøyden; bildene tilpasses plassen ved siden av. */
  container-type: size;
}

.services-promo-composition {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Hele komposisjonen holdes innenfor både teksthøyden og kolonnebredden. */
  width: min(100cqw, 125cqh);
  aspect-ratio: 5 / 4;
  transform: translate(-50%, -50%);
  isolation: isolate;
}

.services-promo-image {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0c0c0c;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.4);
  transition: transform 300ms ease;
}

.services-promo-image-main,
.services-promo-image-secondary {
  position: absolute;
  aspect-ratio: 16 / 9;
  transform-origin: center;
}

.services-promo-image-main {
  top: 0;
  left: 0;
  width: 86%;
}

.services-promo-image-secondary {
  right: calc(-1 * clamp(0.5rem, 2vw, 1.25rem));
  bottom: 0;
  z-index: 1;
  width: 76%;
  box-shadow: -8px -8px 28px rgba(0, 0, 0, 0.45),
              0 24px 48px rgba(0, 0, 0, 0.6);
}

.services-promo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .services-promo-image:hover {
    transform: scale(1.02);
  }
}

.services-promo-image figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.5rem 0.85rem 0.65rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
}

.services-promo-image-main figcaption {
  top: 0;
  bottom: auto;
  padding: 0.65rem 0.85rem 1.5rem;
  background: linear-gradient(rgba(0, 0, 0, 0.55), transparent);
}

@media (max-width: 768px) {
  .services-promo-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-promo-copy {
    max-width: 620px;
  }

  .services-promo-copy h2 {
    font-size: 2rem;
  }

  .services-promo-images {
    container-type: normal;
    aspect-ratio: 5 / 4;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }

  .services-promo-composition {
    top: 0;
    left: 0;
    width: 100%;
    transform: none;
  }
}

/* INTRO + PORTRETT PREMIUM */
.intro-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 2rem;
}

.intro-text h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.intro-text p {
  color: #c4c4c4;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.intro-image {
  display: flex;
  justify-content: center;
}

/* SELVE BILDET */
.intro-image img {
  width: 100%;
  max-width: 250px; /* juster størrelse her */
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  margin-left: 100px;

  /* shadow for depth */
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);

  /* floating animation */
  animation: float 4s ease-in-out infinite;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* HOVER EFFEKT */
.intro-image img:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}

/* FLOATING ANIMASJON */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* PREMIUM KNAPP */
.premium-btn {
  background: linear-gradient(90deg, #4ea8ff, #82c3ff);
  color: #000;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.premium-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(78, 168, 255, 0.5);
}

/* ANIMASJONER */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .intro-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro-text {
    order: 1; /* tekst først */
  }

  .intro-image {
    order: 2; /* bilde under */
    margin-top: 2rem;
  }
  .intro-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.intro-image img {
  margin: 0 auto;
}
}
.highlight {
  background: linear-gradient(
    90deg,
    #4ea8ff,
    #82c3ff,
    #4ea8ff
  );
  background-size: 200% auto;

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
  color: transparent;

  font-weight: 700;

  animation: gradientMove 3s linear infinite;
}

/* ANIMASJON */
@keyframes gradientMove {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}
.highlight {
  letter-spacing: 0.5px;
}

/* Videoen begynner helt øverst og går bak headeren */
.home .hero {
  margin-top: 0;
}

/* ===================================== */
/* FORSIDE - HEADER OVER FULLSKJERM VIDEO */
/* ===================================== */

/* Video fyller hele skjermen */
.home .hero {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  margin-top: 0;
}

/* Sørger for at videoen alltid dekker hele hero */
.home .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* ===================================== */
/* GLASS HEADER */
/* ===================================== */

/* ===================================== */
/* FORSIDE - HEADER + EKTE FEATHER       */
/* ===================================== */

.home .site-header {
  position: fixed; /* var absolute */
  top: 0;
  left: 0;
  width: 100%;

  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  border-bottom: none;

  z-index: 1000;
  overflow: visible;
  isolation: isolate;
}


/* ETT sammenhengende blur-lag:
   dekker både headeren og området under */
.home .site-header::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  /* 100% = headerens høyde
     + 110px ekstra feather under */
  height: calc(100% + 110px);

  background: rgba(15, 15, 15, 0.06);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Full blur gjennom selve headeren,
     så gradvis mindre nedover */
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black calc(100% - 110px),
    rgba(0, 0, 0, 0.85) calc(100% - 90px),
    rgba(0, 0, 0, 0.55) calc(100% - 55px),
    rgba(0, 0, 0, 0.25) calc(100% - 25px),
    transparent 100%
  );

  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black calc(100% - 110px),
    rgba(0, 0, 0, 0.85) calc(100% - 90px),
    rgba(0, 0, 0, 0.55) calc(100% - 55px),
    rgba(0, 0, 0, 0.25) calc(100% - 25px),
    transparent 100%
  );

  pointer-events: none;

  /* bak tekst/logo, men foran video */
  z-index: -1;
}


/* Skru av gammel ::after-feather helt */
.home .site-header::after {
  content: none;
}

.hero-logo {
  width: 100%;
  max-width: 620px;
  height: auto;
  display: block;

  margin-bottom: -1.5rem;

  object-fit: contain;
}

@media (max-width: 768px) {
  .hero-logo {
    max-width: 280px;
  }
}

/* LOGO I HEADER */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  display: block;
  width: auto;
  height: 72px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .header-logo {
    height: 42px;
  }
}

.site-header .header-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 2.3rem;
  padding-right: 2rem;
}

@media (min-width: 769px) {
  .site-header .nav {
    margin-right: 5rem;
  }
}

.nav a {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.portfolio-video {
  width: 100%;
}

.portfolio-video h2 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
  color: #ffffff;
}

.portfolio-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #1a1a1a;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

.portfolio-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Portefølje: samme formspråk, med mer plass til bildene. */
.portfolio-page {
  max-width: 1080px;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.portfolio-intro {
  display: grid;
  /* Omtrent 38 / 62, inspirert av det gylne snitt. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr);
  align-items: end;
  gap: 2rem;
}

.portfolio-page .portfolio-eyebrow {
  margin-bottom: 0.65rem;
  color: #82c3ff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-page h1,
.portfolio-page h2 {
  font-family: "Archivo", Arial, sans-serif;
  color: #fff;
  text-transform: none;
}

.portfolio-page h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.portfolio-lead {
  max-width: 48ch;
  color: #c4c4c4;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.75;
}

.portfolio-page .portfolio-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.25rem;
}

.portfolio-section-heading h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.3;
}

.portfolio-section-heading p {
  max-width: 48ch;
  color: #aaa;
  font-size: 0.95rem;
}

.portfolio-page > .portfolio-video,
.portfolio-page > .estate-grid {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
}

.portfolio-page .estate-grid {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0;
}

.portfolio-page .estate-card {
  display: block;
  max-width: none;
  aspect-ratio: 2.618 / 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-page .estate-card img {
  display: block;
  object-position: center 70%;
  filter: brightness(95%);
  transform: none;
}

.portfolio-page .estate-overlay {
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2) 62%, transparent);
}

.portfolio-estate-copy {
  max-width: 38ch;
}

.portfolio-estate-copy h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.portfolio-estate-copy p {
  color: #e6e6e6;
  line-height: 1.6;
}

.portfolio-estate-link {
  flex-shrink: 0;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.portfolio-estate-link span {
  margin-left: 0.65rem;
  color: #82c3ff;
}

.portfolio-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.portfolio-project-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #1a1a1a;
}

.portfolio-project-card h3 {
  margin-bottom: 0.85rem;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.3;
}

.portfolio-project-card .portfolio-video-frame {
  border-radius: 6px;
  box-shadow: none;
}

.portfolio-project-card p {
  margin-top: 1rem;
  color: #c4c4c4;
  font-size: 0.9rem;
  line-height: 1.7;
}

.portfolio-page .social-links {
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.portfolio-page .media-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.portfolio-page .media-card {
  color: #e6e6e6;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.portfolio-page .media-card > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.portfolio-page .media-card > span > span {
  color: #82c3ff;
}

.portfolio-page a:focus-visible {
  outline: 2px solid #82c3ff;
  outline-offset: 5px;
}

@media (max-width: 700px) {
  .portfolio-intro {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .portfolio-project-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-page .estate-card {
    aspect-ratio: 1.618 / 1;
    min-height: 280px;
  }

  .portfolio-page .estate-overlay {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 1rem;
  }

  .portfolio-page .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .portfolio-page {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .portfolio-page .media-card > span {
    padding: 0.65rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-page section,
  .portfolio-page .estate-card,
  .portfolio-page .estate-card img,
  .portfolio-page .media-card {
    animation: none;
    transition: none;
    transform: none;
  }
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0b0b;
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1200px;
  padding: 0 2rem;
}

.footer-info {
  display: grid;
  min-width: 0;
  gap: 0.3rem;
}

.footer-brand {
  color: #e6e6e6;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-company,
.footer-contact {
  color: #a9a9a9;
  font-size: 0.78rem;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  gap: 0.25rem;
  margin-left: auto;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #a9a9a9;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.footer-socials svg {
  display: block;
  width: 20px;
  height: 20px;
}

.footer-socials a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
}

.footer-socials a:focus-visible {
  color: #fff;
  outline: 2px solid #c4c4c4;
  outline-offset: 2px;
}

.footer-contact a {
  color: #c4c4c4;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-contact a:hover {
  color: #82c3ff;
}

@media (max-width: 700px) {
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.25rem;
  }

  .footer-company {
    max-width: 100%;
  }
}
