:root {
  --papier: #faf9f6;
  --inkt: #16150f;
  --inkt-zacht: #57544a;
  --lijn: #e3dfd2;
  --accent: #b23a20;
  --accent-donker: #8e2d17;
  --wit: #fffdf8;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--papier);
  color: var(--inkt);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--wit);
}

a {
  color: inherit;
}

/* ── Kop ─────────────────────────────────────────── */

.kop {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.merk {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.merk em {
  font-style: normal;
  color: var(--inkt-zacht);
  font-weight: 500;
}

.merk-vizier {
  width: 27px;
  height: 27px;
  color: var(--inkt);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.merk:hover .merk-vizier {
  transform: rotate(90deg);
}

.kop-contact {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--inkt);
  padding: 7px 16px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.kop-contact:hover {
  background: var(--inkt);
  color: var(--wit);
}

/* ── Held ────────────────────────────────────────── */

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.held {
  padding: 96px 0 88px;
  position: relative;
}

.held h1 {
  font-size: clamp(44px, 7.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 12ch;
  animation: opkomst 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.held-sub {
  margin-top: 26px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--inkt-zacht);
  max-width: 52ch;
  animation: opkomst 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s both;
}

.held-netwerk {
  position: absolute;
  right: -70px;
  top: -30px;
  width: min(640px, 50vw);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, black 62%, transparent 98%);
  mask-image: linear-gradient(to left, black 62%, transparent 98%);
  animation: netwerk-op 1.1s ease-out 0.2s both;
}

@keyframes netwerk-op {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes opkomst {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Secties ─────────────────────────────────────── */

.sectiekop {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--inkt-zacht);
  margin-bottom: 30px;
}

.sectiekop-lijn {
  width: 34px;
  height: 2px;
  background: var(--accent);
}

/* ── Tegels ──────────────────────────────────────── */

.projecten {
  padding-bottom: 96px;
}

.tegels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.tegel {
  display: flex;
  flex-direction: column;
}

.tegel-schot {
  position: relative;
  display: block;
  border: 1.5px solid var(--lijn);
  background: var(--wit);
  overflow: hidden;
  border-radius: 8px;
  transition: border-color 0.25s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s;
}

.tegel-schot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.tegel-schot:hover {
  border-color: var(--inkt);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(22, 21, 15, 0.35);
}

/* zoekerhoekjes: verschijnen bij hover, als een vizier dat scherpstelt */
.tegel-hoek {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--accent);
  opacity: 0;
  transition: opacity 0.2s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.th-lb { top: 10px; left: 10px; border-right: none; border-bottom: none; transform: translate(6px, 6px); }
.th-rb { top: 10px; right: 10px; border-left: none; border-bottom: none; transform: translate(-6px, 6px); }
.th-lo { bottom: 10px; left: 10px; border-right: none; border-top: none; transform: translate(6px, -6px); }
.th-ro { bottom: 10px; right: 10px; border-left: none; border-top: none; transform: translate(-6px, -6px); }

.tegel-schot:hover .tegel-hoek,
.tegel-schot:focus-visible .tegel-hoek {
  opacity: 1;
  transform: none;
}

.tegel-kop {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 8px;
}

.tegel-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.tegel-kop h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.tegel p {
  font-size: 15.5px;
  color: var(--inkt-zacht);
  flex: 1;
}

.tegel-link {
  margin-top: 14px;
  align-self: flex-start;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  color: var(--accent-donker);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}

.tegel-link::after {
  content: " ↗";
  font-size: 13px;
}

.tegel-link:hover {
  border-color: var(--accent-donker);
}

/* ── Nieuwsbrief ─────────────────────────────────── */

.nieuwsbrief {
  padding-bottom: 96px;
}

.nieuwsbrief-kaart {
  border: 1.5px solid var(--lijn);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--wit);
  padding: 30px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px 36px;
  align-items: center;
}

@media (max-width: 900px) {
  .nieuwsbrief-kaart {
    grid-template-columns: minmax(0, 1fr);
  }
}

.nieuwsbrief-tekst h2 {
  font-size: clamp(21px, 2.6vw, 26px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.nieuwsbrief-tekst p {
  font-size: 15px;
  color: var(--inkt-zacht);
  max-width: 46ch;
}

#nieuwsbriefformulier {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

#nieuwsbriefformulier input[type="email"] {
  flex: 1 1 200px;
  font: inherit;
  font-size: 16px;
  color: var(--inkt);
  background: var(--papier);
  border: 1.5px solid var(--lijn);
  border-radius: 7px;
  padding: 11px 13px;
  transition: border-color 0.2s;
}

#nieuwsbriefformulier input[type="email"]:focus {
  outline: none;
  border-color: var(--inkt);
}

.nb-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

#nieuwsbriefformulier button {
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--wit);
  background: var(--inkt);
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s;
}

#nieuwsbriefformulier button:hover {
  background: var(--accent-donker);
}

#nieuwsbriefformulier button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.nb-status {
  flex-basis: 100%;
  font-size: 14.5px;
  font-weight: 600;
}

.nb-status.is-goed {
  color: #1e7d4f;
}

.nb-status.is-fout {
  color: var(--accent-donker);
}

/* ── Contact ─────────────────────────────────────── */

.contact {
  border-top: 1.5px solid var(--lijn);
  padding: 72px 0 96px;
  max-width: 640px;
}

.contact-intro {
  color: var(--inkt-zacht);
  margin-bottom: 32px;
  max-width: 46ch;
}

.veldrij {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.veld {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.veld span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--inkt-zacht);
}

.veld input,
.veld textarea {
  font: inherit;
  font-size: 16px;
  color: var(--inkt);
  background: var(--wit);
  border: 1.5px solid var(--lijn);
  border-radius: 7px;
  padding: 11px 13px;
  transition: border-color 0.2s;
}

.veld textarea {
  resize: vertical;
  min-height: 120px;
}

.veld input:focus,
.veld textarea:focus {
  outline: none;
  border-color: var(--inkt);
}

/* honeypot: onzichtbaar voor mensen, aanwezig voor bots */
.veld-bedrijf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.verstuurrij {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.verstuur {
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--wit);
  background: var(--inkt);
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.verstuur:hover {
  background: var(--accent-donker);
}

.verstuur:active {
  transform: scale(0.98);
}

.verstuur:disabled {
  opacity: 0.6;
  cursor: wait;
}

.formulier-status {
  font-size: 15px;
  font-weight: 600;
}

.formulier-status.is-goed {
  color: #1e7d4f;
}

.formulier-status.is-fout {
  color: var(--accent-donker);
}

/* ── Voet ────────────────────────────────────────── */

.voet {
  border-top: 1.5px solid var(--lijn);
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 28px 46px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.voet p {
  font-size: 15px;
}

.voet a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
}

.voet a:hover {
  color: var(--accent-donker);
}

.voet-klein {
  color: var(--inkt-zacht);
  font-size: 13.5px;
}

/* ── Responsief ──────────────────────────────────── */

@media (max-width: 980px) {
  .tegels {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 44px;
  }

  .held-netwerk {
    display: none;
  }
}

@media (max-width: 560px) {
  .held {
    padding: 64px 0 60px;
  }

  .veldrij {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .kop {
    padding-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .held h1,
  .held-sub {
    animation: none;
  }

  .tegel-schot,
  .merk-vizier {
    transition: none;
  }
}
