:root {
  --blue: #4ba8d0;
  --ink: #1a1917;
  --sand: #f0ede7;
  --gutter: 2rem;
  --font-display: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
}

@media (min-width: 640px) {
  :root { --gutter: 3rem; }
}

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

body, h1, h2, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-size: inherit; font-weight: inherit; }

body {
  font-family: var(--font-sans);
  background: var(--sand);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  transform: translateY(-150%);
  border-radius: 6px;
  background: #111827;
  color: #fff;
  padding: 8px 12px;
  font: 600 14px/1.2 system-ui, sans-serif;
}
.skip-link:focus { transform: translateY(0); }

/* ── Layout ── */

.section { padding: 5rem var(--gutter); }
.section--white { background: #fff; }
.section--sand { background: var(--sand); }
.wrap { max-width: 720px; margin: 0 auto; }

@media (min-width: 640px) {
  .section--white { padding-block: 7rem; }
}

.label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #a09a93;
}
.label::after { content: ''; flex: 1; height: 1px; background: #e8e4dc; }
.label--muted { color: #9a9690; }
.label--muted::after { background: #ccc9c2; }

/* ── Hero ── */

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  max-height: 960px;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,19,17,0.3) 0%, rgba(20,19,17,0) 28%, rgba(20,19,17,0) 40%, rgba(20,19,17,0.55) 75%, rgba(20,19,17,0.75) 100%);
}
.hero__bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.25rem var(--gutter) 0;
}
.hero__logo { height: 2.25rem; width: auto; }
.hero__link {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  transition: color 0.2s, border-color 0.2s;
}
.hero__link:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

.hero__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 0 var(--gutter) 2.5rem;
}
.pill {
  display: inline-block;
  margin-bottom: 1.25rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
}
.hero__title {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 11.5vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.hero__title em { font-style: italic; font-weight: 700; }
.hero__sub {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.hero__rule { width: 2rem; height: 1px; background: rgba(255,255,255,0.4); }
.hero__sub p {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

@media (min-width: 640px) {
  .hero__logo { height: 2.75rem; }
  .hero__content { padding-bottom: 3.5rem; }
}

/* ── Bio ── */

.lead {
  margin-bottom: 2.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  line-height: 1.5;
}
.bio {
  display: grid;
  gap: 1.25rem 3rem;
  font-size: 0.9rem;
  line-height: 1.9;
  color: #5a5651;
}
@media (min-width: 640px) {
  .bio { grid-template-columns: 1fr 1fr; }
}

.quote {
  margin-top: 3.5rem;
  padding-left: 1.75rem;
  border-left: 3px solid var(--blue);
}
.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  line-height: 1.6;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; }
.tags li {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a7670;
  border: 1px solid #e0ddd6;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  transition: color 0.2s, border-color 0.2s;
}
.tags li:hover { color: var(--blue); border-color: var(--blue); }

/* ── Expertise ── */

.expertise { position: relative; }
.expertise::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/img/concrete.jpg') center / cover;
  opacity: 0.18;
  pointer-events: none;
}
.expertise .wrap { position: relative; }
.expertise__list { display: flex; flex-direction: column; gap: 1rem; }
.expertise__list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #dedad2;
}
.expertise__list li:last-child { border-bottom: 0; }
.expertise__nr {
  width: 1.5rem;
  text-align: right;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: #a09a93;
}
.expertise__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ── CV ── */

.cv { display: grid; gap: 4rem; }
@media (min-width: 640px) {
  .cv { grid-template-columns: 1fr 1fr; }
}

.timeline li { padding-bottom: 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid #eeebe5; }
.timeline li:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.timeline__period {
  margin-bottom: 0.375rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: #a09a93;
}
.timeline__title {
  margin-bottom: 0.125rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.375;
}
.timeline__org {
  margin-bottom: 0.125rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--blue);
}
.timeline__sub { font-size: 0.75rem; color: #a09a93; }

/* ── Footer ── */

.footer__title {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer__text {
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #5a5651;
}

.contact { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 4rem; }
.contact a, .contact__static {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #6b6762;
  transition: color 0.2s;
}
.contact a:hover { color: var(--blue); }
.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid #d5d0c8;
  transition: border-color 0.2s;
}
.contact a:hover .contact__icon { border-color: var(--blue); }

.footer__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid #dddad2;
}
.footer__bar p {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b0aba3;
}
.footer__bar img { height: 5rem; width: auto; }
@media (min-width: 640px) {
  .footer__bar img { height: 6rem; }
}

/* ── Recente projecten ── */

.section--dark { background: var(--ink); color: var(--sand); }
.wrap--wide { max-width: 1120px; }
.label--dark { color: #8f8a82; }
.label--dark::after { background: #3b3935; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Eén kaart: breed. Twee: twee kolommen. Drie of meer: horizontale strip waarbij de
   volgende kaart een stukje meekijkt. De kaart zelf past zich aan zijn breedte aan (container query). */
.projects { display: grid; gap: 1.5rem; }

.projects:has(> :nth-child(2)) {
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 1rem;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: #3b3935 transparent;
}
.projects > * { min-width: 0; scroll-snap-align: start; }

@media (min-width: 860px) {
  .projects:has(> :nth-child(2)) {
    grid-auto-columns: calc((100% - 1.5rem) / 2);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .projects:has(> :nth-child(3)) {
    grid-auto-columns: calc((100% - 4.5rem) / 3.3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
}

.project { container-type: inline-size; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #232220;
  border: 1px solid #34322e;
  transition: border-color 0.2s;
}
.card:hover, .card:focus-within { border-color: var(--blue); }

.card__shot { aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.card__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s;
}
.card:hover .card__shot img { transform: scale(1.03); }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.card__kind {
  margin-bottom: 0.75rem;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}
.card__title {
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}
.card__link::after { content: ''; position: absolute; inset: 0; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.card__url { margin-bottom: 1rem; font-size: 0.72rem; color: #8f8a82; }
.card__desc { margin-bottom: 1.25rem; font-size: 0.85rem; line-height: 1.7; color: #bdb8af; }

.card__sub {
  margin: 0 0 0.5rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8f8a82;
}
.card__work { margin-bottom: 1.25rem; }
.card__work li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #d6d2c9;
}
.card__work li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.5rem;
  height: 1px;
  background: var(--blue);
}

.card__skills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.card__skills li {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8a39a;
  border: 1px solid #3b3935;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
}

@container (min-width: 700px) {
  .card { flex-direction: row; }
  .card__shot { flex: 1.75; aspect-ratio: auto; }
  .card__shot img { object-position: left top; }
  .card__body { flex: 1; justify-content: center; padding: 2rem; }
  .card__title { font-size: 2.4rem; }
  .card__desc { font-size: 0.95rem; }
  .card__work li { font-size: 0.85rem; }
  .card__skills { margin-top: 0; padding-top: 0.25rem; }
}

.project-soon .card {
  justify-content: center;
  background: transparent;
  border-style: dashed;
  opacity: 0.7;
}
.project-soon .card__body { flex: 0 1 auto; }
.project-soon .card__title { color: #8f8a82; margin: 0; }
