/*
  project.css merged version
  Base: project_oud.css
  Added: responsive hero/image-grid behaviour from project_new.css + index-grid styles
  Preserved: project-list, about-page, contact-line, list-row and all existing text/layout rules
*/

:root {
  --bg: #f6f5f1;
  --text: #0b0b0b;
  --muted: rgba(11, 11, 11, 0.46);
  --soft: rgba(11, 11, 11, 0.72);
  --line: rgba(11, 11, 11, 0.16);
  --blue: #1500ff;
  --pad: clamp(18px, 4vw, 56px);
  --max: 1540px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

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

a:hover {
  color: var(--blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 18px var(--pad) 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 245, 241, 0.9);
  backdrop-filter: blur(12px);
}

.brand,
.nav {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.project-page {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 92px) var(--pad) 100px;
}

.project-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: end;
  padding-bottom: clamp(34px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.project-index {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 11vw, 176px);
  line-height: 0.78;
  letter-spacing: -0.075em;
  font-weight: 880;
  text-transform: lowercase;
  max-width: 1120px;
}

.statement {
  margin-top: 26px;
  max-width: 820px;
  font-size: clamp(25px, 3.3vw, 54px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 780;
}

.meta {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.meta-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.meta-label {
  color: var(--muted);
}

/* HERO MEDIA */
.hero-media {
  margin-top: clamp(24px, 4vw, 56px);
  min-height: clamp(360px, 64vw, 860px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(11,11,11,0.045), rgba(11,11,11,0.012)),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.hero-media:has(.hero-img),
.hero-media:has(img),
.hero-media:has(video),
.hero-media:has(picture) {
  min-height: 0;
  padding: 0;
  background: var(--bg);
}

.hero-media picture {
  display: block;
  width: 100%;
}

.hero-img,
.hero-media > img,
.hero-media > video,
.hero-media picture > img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border: 0;
}

.project-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 8vw, 128px);
  padding-top: clamp(48px, 7vw, 92px);
}

.side-note {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.035em;
  max-width: 360px;
}

.copy {
  max-width: 900px;
}

.copy p {
  margin: 0 0 1.15em;
  font-size: clamp(19px, 2vw, 31px);
  line-height: 1.09;
  letter-spacing: -0.036em;
  font-weight: 520;
}

.copy p.large {
  font-size: clamp(28px, 4.8vw, 70px);
  line-height: 0.92;
  letter-spacing: -0.062em;
  font-weight: 820;
  margin-bottom: 0.9em;
}

.sections {
  margin-top: 72px;
  display: grid;
  gap: 1px;
  background: var(--line);
}

.section {
  background: var(--bg);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 24px 0;
}

.section h2 {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.section p,
.section ul {
  margin: 0;
  max-width: 720px;
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.024em;
}

.section ul {
  padding-left: 1.1em;
}

.image-grid {
  margin-top: 78px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.image-slot {
  background: var(--bg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 18px;
  text-align: center;
}

.image-slot:has(img),
.image-slot:has(video),
.image-slot:has(picture) {
  padding: 0;
}

.image-slot picture {
  display: block;
  width: 100%;
  height: 100%;
}

.image-slot img,
.image-slot video,
.image-slot picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.next-project {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
}

.next-project span {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.next-project strong {
  font-size: clamp(32px, 5vw, 86px);
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-transform: lowercase;
}

.arrow {
  font-size: clamp(34px, 5vw, 74px);
  line-height: 0.8;
}

.project-list {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 86px) var(--pad) 110px;
}

.project-list h1 {
  margin-bottom: 54px;
}

.list-row {
  display: grid;
  grid-template-columns: 70px 1fr 110px;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.list-row:last-child {
  border-bottom: 1px solid var(--line);
}

.num,
.year {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.list-title {
  font-size: clamp(30px, 5vw, 82px);
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-weight: 820;
  text-transform: lowercase;
}

.list-desc {
  margin-top: 8px;
  max-width: 680px;
  font-size: clamp(15px, 1.5vw, 22px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--soft);
}

.about-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px var(--pad) 110px;
}

.about-copy {
  font-size: clamp(28px, 4.7vw, 70px);
  line-height: 0.94;
  letter-spacing: -0.065em;
  font-weight: 800;
}

.about-copy p {
  margin: 0 0 0.9em;
}

.contact-line {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   Home Page Grid Styles (index.html)
   ========================================================================== */

.index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 64px);
  margin-top: clamp(40px, 6vw, 80px);
  margin-bottom: clamp(60px, 8vw, 120px);
}

.index-grid-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.grid-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.grid-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
  filter: grayscale(15%) contrast(95%);
}

.index-grid-item:hover .grid-img-wrapper img {
  transform: scale(1.015);
  filter: grayscale(0%) contrast(100%);
}

.grid-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: baseline;
  margin-top: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.index-grid-item:hover .grid-meta {
  border-color: var(--line);
}

.grid-number,
.grid-year {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.grid-title {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: var(--text);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 860px) {
  .site-header {
    position: relative;
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
    gap: 12px;
  }

  .project-opening {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
  }

  h1 {
    font-size: clamp(54px, 18vw, 104px);
  }

  .statement {
    font-size: clamp(25px, 8vw, 46px);
  }

  .hero-media {
    min-height: 52vh;
  }

  .hero-media:has(.hero-img),
  .hero-media:has(img),
  .hero-media:has(video),
  .hero-media:has(picture) {
    min-height: 0;
  }

  .project-body {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .side-note {
    max-width: none;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .next-project {
    grid-template-columns: 1fr;
  }

  .list-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  /* Mobiele optimalisatie voor de nieuwe index.html grid */
  .index-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .grid-meta {
    border-color: var(--line); /* Zorgt dat de lijn altijd zichtbaar is op mobiel zonder hover */
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
