@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap');

:root {
  --bg: #FAFAF8;
  --text: #1A1A1A;
  --muted: #6B6B6B;
  --border: #E5E3DF;
  --gap-lg: 120px;
  --gap-lg-mobile: 64px;
  --pad-x: 48px;
  --pad-x-mobile: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

a { color: inherit; text-decoration: none; }

.uppercase-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 400;
  transition: opacity 0.4s ease;
}
.uppercase-link:hover { opacity: 0.6; }

.section-heading {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 400;
}

/* ---------- Placeholder images ---------- */
.placeholder-img {
  background: #EDEBE6;
  border: 1px dashed #C9C6C0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9A968E;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 12px;
  width: 100%;
}
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-5 { aspect-ratio: 4 / 5; }

.real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
}

.wordmark {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a.active { opacity: 1; }
.main-nav a:not(.active) { opacity: 0.55; }

.lang-toggle {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
.lang-toggle button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  opacity: 0.5;
}
.lang-toggle button.active { opacity: 1; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px;
  height: 1px;
  background: var(--text);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 14px; }
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer a { white-space: nowrap; }
.footer-copy {
  width: 100%;
  margin-top: 24px;
  font-size: 10px;
  opacity: 0.6;
}

/* ---------- Layout helpers ---------- */
main { padding-top: 0; }

.page-pad { padding-left: var(--pad-x); padding-right: var(--pad-x); }

.section { padding-top: var(--gap-lg); padding-bottom: var(--gap-lg); }

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  :root { --pad-x: var(--pad-x-mobile); }
  .section { padding-top: var(--gap-lg-mobile); padding-bottom: var(--gap-lg-mobile); }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-footer .footer-links { gap: 10px 20px; }
  .footer-copy { margin-top: 8px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.hero .placeholder-img { height: 100%; position: absolute; inset: 0; aspect-ratio: auto; }
.hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 48px;
  background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0));
  width: 100%;
}
.hero-text .name { font-size: 16px; text-transform: uppercase; letter-spacing: 0.2em; }
.hero-text .tagline { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; margin-top: 8px; opacity: 0.9; }

/* ---------- Intro paragraph ---------- */
.intro-statement {
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  font-weight: 300;
}

/* ---------- Project row (home) ---------- */
.project-row { margin-bottom: 128px; }
.project-row:last-child { margin-bottom: 0; }
.project-row-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.project-row-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; }
.project-row-sub { font-size: 13px; color: var(--muted); }

.see-all { text-align: center; margin-top: 80px; }

/* ---------- Projects (scroll page) ---------- */
.project-block { margin-bottom: 0; scroll-margin-top: 80px; }

/* Lead image: 'full' crops to 16:9 full-bleed (landscape photos).
   'centered' shows the photo uncropped at its natural (portrait) ratio,
   large but not full-bleed — used when the only available shot is portrait,
   so nothing gets cropped off. */
.lead-full { width: 100%; }
.lead-centered { width: 46%; margin: 0 auto; }
@media (max-width: 768px) { .lead-centered { width: 100%; } }
.project-text {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-top: 5px;
}
.project-meta-list { font-size: 11px; }
.project-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.project-meta-row .label { text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); flex-shrink: 0; }
.project-meta-row .value { color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; text-align: right; }
.project-title-large { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 20px; }
.project-title-lead { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; padding-top: 48px; padding-bottom: 6px; }
#projects-list > .project-block:first-child .project-title-lead { padding-top: 96px; }
.project-desc { font-size: 16px; font-weight: 300; max-width: 62ch; }
.project-desc p { margin-bottom: 16px; }

.project-images {
  margin-top: 72px;
  display: flex;
  flex-direction: row;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.project-images::-webkit-scrollbar { display: none; }
.project-images .full,
.project-images .centered {
  flex: 0 0 min(560px, 82%);
  width: min(560px, 82%);
  margin: 0;
  scroll-snap-align: start;
}

.project-divider {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-divider .rule { width: 40%; height: 1px; background: var(--border); }

@media (max-width: 768px) {
  .project-text { grid-template-columns: 1fr; gap: 24px; }
  .project-images { gap: 16px; margin-top: 36px; }
  .project-images .full,
  .project-images .centered { flex-basis: 88%; width: 88%; }
  .project-divider { height: 80px; }
}

/* ---------- Om page ---------- */
.om-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.om-text > * + * { margin-top: 24px; }
.om-subheading { margin-top: 48px; margin-bottom: 16px; }
.background-row {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.background-row .year { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); width: 90px; flex-shrink: 0; }

@media (max-width: 768px) {
  .om-layout { grid-template-columns: 1fr; }
}

/* ---------- Kontakt page ---------- */
.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.kontakt-info > * + * { margin-top: 24px; }
.kontakt-line { font-size: 16px; font-weight: 300; }
.kontakt-links { display: flex; gap: 24px; margin-top: 32px; }

@media (max-width: 768px) {
  .kontakt-layout { grid-template-columns: 1fr; }
}

/* ---------- Ydelser ---------- */
.ydelser-intro {
  max-width: 62ch;
  font-size: 18px;
  font-weight: 300;
  margin-bottom: var(--gap-lg);
}
.ydelser-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
  margin-bottom: var(--gap-lg);
}
.ydelser-step-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.ydelser-step-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  max-width: 42ch;
}
.ydelser-step-price {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 12px;
}
.ydelser-steps {
  margin-bottom: 60px;
}
.ydelser-steps-note {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: var(--gap-lg);
}
.ydelser-block {
  padding-top: var(--gap-lg);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.ydelser-block-intro {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  max-width: 40ch;
}
.ydelser-list {
  list-style: none;
}
.ydelser-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
}
.ydelser-list li:first-child { padding-top: 0; }
.ydelser-contact {
  padding-top: var(--gap-lg);
  border-top: 1px solid var(--border);
  text-align: center;
}
.ydelser-contact-text {
  max-width: 50ch;
  margin: 0 auto 24px;
  font-size: 16px;
  font-weight: 300;
}

@media (max-width: 768px) {
  .ydelser-steps { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
  .ydelser-block { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}
