
:root {
  --bg: #0d0d0d;
  --fg: #ededed;
  --muted: #777;
  --line: #353535;
  --accent: #bcbcbc;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, video { display: block; max-width: 100%; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 3%;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .035em;
}

.logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.06em;
}

.header-center { color: var(--muted); }

.hero {
  min-height: calc(100svh - 67px);
  padding: 32px 3%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eyebrow, .hero-bottom, .section-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  letter-spacing: .045em;
}

.hero h1 {
  font-size: clamp(65px, 13.5vw, 240px);
  font-weight: 600;
  letter-spacing: -.095em;
  line-height: .77;
  margin: 0 0 45px;
}

.period { color: #666; }

.hero p {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
}

.hero-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.work-section {
  padding: 40px 3% 120px;
}

.section-label {
  margin-bottom: 35px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
}

.filter {
  padding: 22px 0;
  border: none;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  transition: color .2s;
}

.filter:hover, .filter.active { color: white; }
.filter.active { border-bottom-color: white; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 85px;
}

.project-card {
  min-width: 0;
}

.project-card.featured {
  grid-column: 1 / -1;
}

.project-image {
  aspect-ratio: 4 / 3;
  background: #1b1b1b;
  overflow: hidden;
}

.featured .project-image {
  aspect-ratio: 16 / 8;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter .5s, transform .7s;
}

.project-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.025);
}

.project-card-info {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
}

.project-card h2 {
  font-size: clamp(16px, 2vw, 25px);
  font-weight: 500;
  letter-spacing: -.04em;
  margin: 0 0 8px;
}

.project-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.project-number {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

/* INDIVIDUAL PROJECT PAGES */

.project-page {
  padding: 35px 3% 120px;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
}

.project-title {
  font-size: clamp(48px, 9vw, 150px);
  line-height: .9;
  letter-spacing: -.075em;
  font-weight: 500;
  margin: 90px 0 70px;
  overflow-wrap: anywhere;
}

.project-hero-image {
  width: 100%;
  max-height: 85vh;
  object-fit: cover;
}

.project-description {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding: 50px 0 100px;
  border-bottom: 1px solid var(--line);
}

.project-description .label {
  color: var(--muted);
  font-size: 10px;
}

.project-description p {
  font-size: clamp(18px, 2.5vw, 32px);
  line-height: 1.35;
  letter-spacing: -.035em;
  margin: 0;
  max-width: 900px;
}

.project-gallery {
  padding-top: 70px;
}

.gallery-item {
  margin: 0 0 85px;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  background: #151515;
}

.gallery-item iframe {
  display: block;
  width: 100%;
  height: 80vh;
  border: 1px solid var(--line);
  background: white;
}

.gallery-item figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.gallery-item a {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

.project-credits {
  border-top: 1px solid var(--line);
  padding: 30px 0 80px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  font-size: 11px;
}

.project-credits p {
  white-space: pre-line;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}

.next-project {
  display: block;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.next-project span {
  font-size: 10px;
  color: var(--muted);
}

.next-project strong {
  display: block;
  margin-top: 25px;
  font-size: clamp(35px, 6vw, 90px);
  font-weight: 500;
  letter-spacing: -.06em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 3%;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}

.site-footer a { color: var(--fg); }

@media (max-width: 700px) {
  .header-center { display: none; }
  .hero { min-height: 75svh; }
  .hero h1 { font-size: 15vw; }
  .filters { gap: 0 18px; margin-bottom: 35px; }
  .filter { padding: 16px 0; }
  .project-grid { grid-template-columns: 1fr; row-gap: 45px; }
  .featured .project-image { aspect-ratio: 4 / 3; }
  .project-title { margin: 65px 0 45px; }
  .project-description, .project-credits {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery-item { margin-bottom: 50px; }
  .gallery-item iframe { height: 65vh; }
}

.written-piece {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 0;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.75;
  white-space: pre-line;
  color: #d0d0d0;
}

/* ===================================
   EDITORIAL PHOTO REPORTAGE
=================================== */

.reportage-gallery {
  display: flex;
  flex-direction: column;
  gap: 100px;
  padding-top: 80px;
}

/* Grundlayout för alla bildrader */

.reportage-row {
  width: 100%;
}

.reportage-row .gallery-item {
  margin: 0;
}

.reportage-row img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}

/* 01 — Stor bild */

.reportage-row.full {
  width: 100%;
}

.reportage-row.full img {
  max-height: 90vh;
  object-fit: contain;
}

/* 02 — Två bilder bredvid varandra */

.reportage-row.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
}

.reportage-row.pair img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

/* 03 — Centrerad bild */

.reportage-row.center {
  width: 65%;
  margin: 0 auto;
}

.reportage-row.center img {
  max-height: 80vh;
  object-fit: contain;
}

/* Bildtexter */

.reportage-gallery figcaption {
  margin-top: 14px;
  color: #777;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Mobilanpassning */

@media (max-width: 700px) {
  .reportage-gallery {
    gap: 45px;
    padding-top: 40px;
  }

  .reportage-row.pair {
    gap: 10px;
  }

  .reportage-row.center {
    width: 85%;
  }

  .reportage-gallery figcaption {
    font-size: 9px;
  }
}

/* YOUTUBE VIDEO PLAYER */

.gallery-item iframe[src*="youtube"] {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
  background: #000;
}
