@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Great+Vibes&family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ─── Custom Properties ─────────────────────────────────────────── */
:root {
  --bg-dark: #0A0A0A;
  --bg-light: #F5F0E8;
  --text-dark: #1A1A1A;
  --text-light: #F5F0E8;
  --accent: #1A1A1A;
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-script: 'Great Vibes', cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-serif);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── Section 00 — Loading Screen ───────────────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#loading-counter {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light);
}

#loading-line {
  width: 0%;
  height: 1px;
  background: var(--text-light);
  margin-top: 1.5rem;
  transition: width 0.1s linear;
  max-width: 200px;
}

/* ─── Section 01 — Intro ─────────────────────────────────────────── */
#intro-wrapper {
  height: 500vh;
  position: relative;
}

#intro-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  background: var(--bg-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#intro-letters {
  position: relative;
  width: 100%;
  height: 100%;
}

.intro-letter {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 140px);
  color: var(--text-light);
  line-height: 1;
  will-change: transform;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  user-select: none;
}

#intro-subtitle {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
}

.intro-motto {
  position: absolute;
  top: calc(50% + clamp(40px, 6vw, 70px) + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #f5f2ee;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
}

/* ─── Section 02 — Om VMStudio ──────────────────────────────────── */
#om {
  background: var(--bg-light);
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 8rem 8vw;
  overflow: hidden;
}

.om-watermark {
  position: absolute;
  left: -5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-script);
  font-size: 28vw;
  color: var(--text-dark);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
  z-index: 0;
}

.om-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 4vw;
  width: 100%;
  position: relative;
  z-index: 1;
  align-items: center;
}

.om-left {
  will-change: opacity, transform;
}

.om-left-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 160px);
  line-height: 0.9;
  color: var(--text-dark);
  display: block;
}

.om-right {
  will-change: opacity, transform;
}

.om-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 2rem;
  display: block;
}

.om-text {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.9;
  color: #2A2A2A;
}

.om-text p + p {
  margin-top: 1.2em;
}

.om-rule {
  border: none;
  border-top: 1px solid #CCC;
  margin: 2rem 0;
}

.om-stats {
  display: flex;
  gap: 3rem;
}

.om-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text-dark);
  line-height: 1;
  display: block;
}

.om-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  display: block;
  margin-top: 0.25rem;
}

/* ─── Section 03 — Portefølje ───────────────────────────────────── */
#portefolje {
  background: var(--bg-light);
  min-height: 100vh;
  padding: 8rem 8vw;
  position: relative;
}

.portefolje-heading {
  margin-bottom: 4rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.portefolje-heading-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 64px);
  color: var(--text-dark);
  line-height: 1;
}

.portefolje-heading-display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 96px);
  color: var(--text-dark);
  line-height: 1;
}

.portefolje-images {
  display: flex;
  gap: 2vw;
}

.portefolje-item {
  display: block;
  width: 48%;
  height: 65vh;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
}

.portefolje-item img,
.portefolje-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portefolje-placeholder {
  background: var(--text-dark);
}

.portefolje-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.portefolje-item:hover .portefolje-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.portefolje-overlay-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 3rem);
  color: var(--text-light);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.portefolje-download {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

/* ─── Wave-fill Button ───────────────────────────────────────────── */
.btn-wave {
  display: inline-block;
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dark);
  border: 1.5px solid var(--text-dark);
  background: transparent;
  padding: 16px 40px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.btn-wave::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text-dark);
  clip-path: ellipse(0% 50% at 0% 50%);
  transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 0;
}

.btn-wave:hover::before {
  clip-path: ellipse(150% 50% at 0% 50%);
}

.btn-wave:hover {
  color: var(--text-light);
}

.btn-wave span {
  position: relative;
  z-index: 1;
}

.btn-wave-full {
  width: 100%;
  text-align: center;
  padding: 18px 40px;
}

/* ─── Section 04 — Anmeldelser ───────────────────────────────────── */
#anmeldelser {
  background: var(--bg-light);
  padding: 6rem 0;
  overflow: hidden;
}

.anmeldelser-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #888;
  text-align: center;
  margin-bottom: 3rem;
  display: block;
}

.marquee-outer {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: fit-content;
  animation: marquee 18s linear infinite;
  align-items: center;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.testimonial-unit {
  display: flex;
  align-items: center;
  padding: 0 6vw;
  flex-shrink: 0;
}

.testimonial-content {
  text-align: center;
  max-width: 40vw;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--text-dark);
  line-height: 1.5;
}

.testimonial-author {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-top: 1rem;
  display: block;
}

.testimonial-sep {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #CCC;
  margin: 0 4vw;
  flex-shrink: 0;
}

/* ─── Section 05 — Priser ────────────────────────────────────────── */
#priser {
  background: var(--bg-light);
  min-height: 100vh;
  padding: 8rem 8vw;
}

.priser-heading {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 140px);
  color: var(--text-dark);
  line-height: 0.9;
}

.priser-rule {
  border: none;
  border-top: 1px solid #CCC;
  margin: 2rem 0 4rem;
}

.priser-columns {
  display: flex;
  border-top: 1px solid #CCC;
  border-bottom: 1px solid #CCC;
}

.priser-col {
  flex: 1;
  padding: 3rem 3vw;
  position: relative;
  display: flex;
  flex-direction: column;
}

.priser-col + .priser-col {
  border-left: 1px solid #CCC;
}

.priser-col-featured {
  border-top: 2px solid var(--text-dark);
  margin-top: -2px;
}

.priser-featured-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
  display: block;
}

.priser-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 56px);
  color: var(--text-dark);
  line-height: 1;
}

.priser-price {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-dark);
  margin: 0.5rem 0 1.5rem;
}

.priser-col-rule {
  border: none;
  border-top: 1px solid #CCC;
  margin-bottom: 1.5rem;
}

.priser-list {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2.2;
  color: #2A2A2A;
  flex: 1;
}

.priser-list li::before {
  content: '→ ';
}

.priser-cta {
  margin-top: 2rem;
}

.priser-footer {
  margin-top: 4rem;
  text-align: center;
}

.priser-footer-text {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: #888;
  max-width: 50ch;
  margin: 0 auto 2rem;
}

/* ─── Section 06 — Kontakt ───────────────────────────────────────── */
#kontakt {
  background: var(--bg-light);
  min-height: 100vh;
  padding: 8rem 8vw;
}

.kontakt-heading {
  margin-bottom: 4rem;
}

.kontakt-heading-line {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 130px);
  color: var(--text-dark);
  line-height: 0.95;
  display: block;
}

.kontakt-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-field {
  margin-bottom: 2.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid #CCC;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  transition: border-bottom-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-bottom-color: var(--text-dark);
}

.form-select {
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.kontakt-footer {
  border-top: 1px solid #CCC;
  padding: 2rem 0;
  margin-top: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kontakt-footer-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #888;
}

/* ─── Project Pages ──────────────────────────────────────────────── */
.project-page {
  background: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
  padding: 4rem 8vw;
  overflow-x: hidden;
}

.project-watermark {
  position: fixed;
  left: -5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-script);
  font-size: 28vw;
  color: var(--text-dark);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
  z-index: 0;
}

.project-back {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  margin-bottom: 3rem;
}

.project-back:hover {
  text-decoration: underline;
}

.project-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 180px);
  color: var(--text-dark);
  line-height: 0.9;
  margin-bottom: 1rem;
}

.project-title-rule {
  border: none;
  border-top: 1px solid #CCC;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.project-description {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.9;
  max-width: 65ch;
  margin: 0 0 3rem;
  color: var(--text-dark);
}

.project-images {
  position: relative;
  z-index: 1;
}

.project-image-wrap {
  width: 100%;
  max-height: 80vh;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  will-change: opacity, transform;
}

.project-image-wrap img,
.project-image-placeholder {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.project-image-placeholder {
  background: var(--text-dark);
  height: 60vh;
  max-height: 60vh;
  object-fit: unset;
}

.project-image-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-image-wrap:hover .project-image-hover {
  opacity: 1;
}

.project-image-hover span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-light);
}

/* ─── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .om-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .om-left-title {
    font-size: 20vw;
  }

  .om-watermark {
    font-size: 50vw;
    opacity: 0.03;
  }

  .portefolje-images {
    flex-direction: column;
  }

  .portefolje-item {
    width: 100%;
    height: 50vh;
  }

  .priser-columns {
    flex-direction: column;
    border: none;
  }

  .priser-col {
    border: none;
    border-top: 1px solid #CCC;
    padding: 2.5rem 0;
  }

  .priser-col + .priser-col {
    border-left: none;
    border-top: 1px solid #CCC;
  }

  .priser-col-featured {
    border-top: 2px solid var(--text-dark);
    margin-top: 0;
  }

  .btn-wave {
    width: 100%;
    text-align: center;
  }

  .project-watermark {
    font-size: 50vw;
    opacity: 0.03;
  }

  .kontakt-heading-line {
    font-size: clamp(3rem, 14vw, 130px);
  }

  .testimonial-content {
    max-width: 70vw;
  }

  .portefolje-heading {
    flex-direction: column;
    gap: 0.5rem;
  }
}
