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

body {
  font-family: Georgia, serif;
  color: #fff;
  background: #000;
}

/* Header */

header {
  padding: clamp(1rem, 0.77rem + 0.75vw, 2.4rem) 4%;
  border-bottom: 1px solid #222;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: block;
  text-decoration: none;
}

.logo img {
  height: clamp(2rem, 1.54rem + 1.47vw, 4.75rem);
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: clamp(1rem, 0.54rem + 1.47vw, 3.75rem);
}

nav a {
  text-decoration: none;
  color: #c0c0c0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(0.945rem, 0.87rem + 0.24vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: clamp(1px, 0.5px + 0.1vw, 4px);
}

nav a:hover {
  text-decoration: line-through;
  text-decoration-color: #c0c0c0;
  text-decoration-thickness: clamp(2px, 1.5px + 0.1vw, 4.75px);
}

nav a.active {
  text-decoration: line-through;
  text-decoration-color: #c0c0c0;
  text-decoration-thickness: clamp(2px, 1.5px + 0.1vw, 4.75px);
}

.meny-knapp {
  display: none;
}

/* Header — mobil */

@media (max-width: 768px) {
  .header-inner {
    position: relative;
    justify-content: center;
  }

  .logo img {
    height: 3.5rem;
  }

  .meny-knapp {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 20;
  }

  .meny-knapp span {
    display: block;
    height: 2px;
    width: 100%;
    background: #c0c0c0;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .meny-knapp.apen span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .meny-knapp.apen span:nth-child(2) {
    opacity: 0;
  }

  .meny-knapp.apen span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 15;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.25rem;
    background: #000;
    padding: calc(48vh - 4.5rem) 8% 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  nav.apen {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  nav a {
    font-size: clamp(1.134rem, 1.044rem + 0.288vw, 1.68rem);
  }
}

/* Hovedinnhold */

main {
  padding: 2rem 4%;
}

/* Forside / Hero */

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3143 / 1494;
  overflow: hidden;
  background: #000;
}

.hero > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-blokk {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 55vw;
  font-size: 1.1vw;
  display: grid;
  justify-items: stretch;
  row-gap: 1em;
}

.hero-logo {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.8;
}

.hero-knapper {
  display: flex;
  align-items: stretch;
  gap: 0.8em;
  width: 100%;
}

.hero-knapp {
  flex: 1 1 0;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #e6e6e6;
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 0.6em;
  padding: 0.77em 1em;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.3s ease;
}

.hero-knapp:hover {
  background: transparent;
  color: #fff;
  text-decoration: line-through;
  text-decoration-color: #fff;
  text-decoration-thickness: 3px;
}

/* Forside / Hero — mobil */

@media (max-width: 768px) {
  .hero {
    aspect-ratio: unset;
    height: 100vh;
    height: 100dvh;
  }

  .hero > img {
    object-fit: cover;
  }

  .hero-blokk {
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    font-size: clamp(1rem, 4.5vw, 1.6rem);
    row-gap: 1.5em;
  }

  .hero-knapper {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-knapp {
    flex: none;
    width: 100%;
  }
}

/* Galleri */

.galleri {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
  padding: 3rem 0;
}

.verk {
  width: 100%;
  max-width: 720px;
}

.verk-bilde {
  position: relative;
}

.verk-foto {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #444;
}

.verk-info {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.8rem;
  color: #c0c0c0;
}

.verk-tittel::before { content: "- "; }
.verk-tittel::after  { content: " -"; }

.verk-storrelse {
  color: #aaa;
}

.verk-storrelse-rad {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.25rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.17rem;
  color: #c0c0c0;
}

.verk-storrelse-rad .verk-storrelse {
  color: #c0c0c0;
}

.verk-type-rad {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.5em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.17rem;
  color: #c0c0c0;
}

.verk-ramme-rad {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.25rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.17rem;
  color: #c0c0c0;
}

/* Verk-tittel/pris/størrelse — mobil (matcher .info-boks h2 sin skriftstørrelse/stil) */

@media (max-width: 768px) {
  .verk-info {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
}

.info-boks {
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #333;
  background: rgba(255, 255, 255, 0.03);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #c0c0c0;
}

.info-boks h2 {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.info-boks p {
  font-size: 1rem;
  line-height: 1.6;
  color: #aaa;
}

/* Om */

.om {
  max-width: 1150px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.om-logo {
  display: block;
  height: 76.8px;
  width: auto;
  margin: 0 0 1.5rem;
  filter: brightness(0.75);
}

.om-intro {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.om-bilde {
  flex: 1 1 40%;
  max-width: 40%;
}

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

.om-tekst {
  flex: 1 1 60%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #c0c0c0;
}

.om-tekst p + p {
  margin-top: 1.25rem;
}

.om-bilde-full {
  position: relative;
  margin-top: 3rem;
}

.om-bilde-full img {
  width: 100%;
  height: auto;
  display: block;
}

.cv-boks {
  position: absolute;
  top: 68%;
  left: 4%;
  transform: translateY(-50%);
  width: 88%;
  max-width: 88%;
  height: auto;
  max-height: 45%;
  overflow-y: auto;
  padding: 1.75rem 1.75rem 1.25rem;
  border-radius: 10px;
  background: rgba(26, 26, 26, 0.88);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #eee;
}

.cv-boks p + p {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cv-boks h2 {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.cv-boks h2:not(:first-child) {
  margin-top: 1.75rem;
}

.cv-boks p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #c0c0c0;
}

@media (max-width: 768px) {
  .om {
    padding-top: 0;
    margin-top: -1rem;
  }

  .om-intro {
    flex-direction: column;
  }

  .om-bilde,
  .om-tekst {
    max-width: 100%;
  }

  .cv-boks {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    overflow-y: visible;
    margin-top: 1.5rem;
    padding: 0;
    border-radius: 0;
    background: none;
  }
}

/* Kontakt */

.kontakt {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 0;
}

.kontakt h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  color: #c0c0c0;
  margin-bottom: 2rem;
}

.kontakt p {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #c0c0c0;
  margin-bottom: 1.5rem;
}

.kontakt-epost {
  display: inline-block;
  margin-top: 1rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #c0c0c0;
  text-decoration: none;
  border-bottom: 2px solid #c0c0c0;
  padding-bottom: 2px;
}

.kontakt-sosiale {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.kontakt-sosiale .kontakt-epost {
  margin-top: 0;
}

.kontakt-epost:hover {
  color: #aaa;
  border-bottom-color: #aaa;
}

@media (max-width: 768px) {
  .kontakt {
    padding-top: 1rem;
  }

  .kontakt p {
    font-size: 1.1rem;
  }
}

/* Prisguide */

.prisguide {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 0;
}

.prisguide h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  color: #c0c0c0;
  margin-bottom: 2rem;
}

.prisguide-intro {
  margin-bottom: 10em;
}

.prisguide-intro p {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #c0c0c0;
  margin-bottom: 1.5rem;
}

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

.prisguide-liste {
  display: flex;
  flex-direction: column;
  gap: 10em;
}

.prisguide-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
}

.prisguide-item img {
  width: 60%;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.prisguide-pris {
  display: block;
  flex: 1;
  text-align: left;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: #c0c0c0;
}

@media (max-width: 768px) {
  .prisguide {
    padding-top: 1rem;
  }

  .prisguide-intro p {
    font-size: 1.1rem;
  }

  .prisguide-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .prisguide-item img {
    width: 100%;
  }

  .prisguide-pris {
    text-align: center;
    font-size: 1.365rem;
    margin-top: 2.5rem;
  }
}

/* Til toppen-knapp */

.til-topp-knapp {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  border: 1px solid #333;
  border-radius: 50%;
  color: #c0c0c0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, border-color 0.2s ease, color 0.2s ease;
  z-index: 100;
}

.til-topp-knapp.synlig {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.til-topp-knapp:hover {
  border-color: #666;
  color: #fff;
}
