/* ════════════════════════════════════════════════════════════
   +OPCO/ — Huisstijl
   Kleuren en lettertype volgens het huisstijlhandboek 2022:
   - Zwart  #1C1C1C  (enkel als tekstkleur)
   - Wit    #FFFFFF  (achtergrond)
   - Grijsblauw #80A3B2 (enkel als kleurvlak, nooit als tekstkleur)
   - Helvetica Neue (Light/Regular voor tekst, Medium/Bold voor accent)
   ════════════════════════════════════════════════════════════ */

:root {
  --zwart: #1C1C1C;
  --wit: #FFFFFF;
  --grijsblauw: #80A3B2;
  --lijn: rgba(28, 28, 28, 0.15);
  --marge: clamp(1.25rem, 4vw, 4rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--zwart);
  background: var(--wit);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Eigen cursor: de + uit het logo */
  cursor: url("../assets/img/cursor-plus.png") 13 13, auto;
}

/* Boven klikbare elementen wordt de cursor de schuine streep uit het logo */
a, button, .statement-arrow, summary {
  cursor: url("../assets/img/cursor-slash.png") 13 13, pointer;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--marge);
  background: var(--wit);
  border-bottom: 1px solid var(--zwart);
}

/* Op de homepage (body.home) is het menu verborgen tot je begint
   te scrollen — dan schuift het van boven in beeld. */
.home .site-header {
  transform: translateY(-101%);
  transition: transform 0.35s ease;
}

.home.is-gescrold .site-header { transform: none; }

.header-logo img { height: 20px; }

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-size: 0.95rem;
  font-weight: 400;
}

.site-nav a { position: relative; padding-bottom: 2px; }

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--zwart);
  transition: width 0.3s ease;
}

.site-nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--grijsblauw);
  padding: 0.35rem 0.9rem !important;
  font-weight: 400;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--zwart); color: var(--wit); }

/* ── Hero ───────────────────────────────────────────────── */

.hero { position: relative; }

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--lijn) 1px, transparent 1px),
    linear-gradient(to bottom, var(--lijn) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 120px) clamp(60px, 8vw, 120px);
  opacity: 0.45;
  pointer-events: none;
}

.hero-logo {
  position: relative;
  padding: clamp(3rem, 9vw, 8rem) var(--marge);
  background: transparent;
}

.hero-logo svg { width: 100%; height: auto; display: block; }

/* De schuine streep flikkert — er worden nog nieuwe verhalen geschreven */
.logo-slash { animation: slash-blink 1.4s steps(1) infinite; }

@keyframes slash-blink {
  0%, 60% { opacity: 1; }
  60.01%, 100% { opacity: 0; }
}

.hero-statement {
  position: relative;
  background: var(--grijsblauw);
  padding: clamp(2.5rem, 6vw, 5rem) var(--marge);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero-statement p {
  font-size: clamp(1.5rem, 3.4vw, 2.9rem);
  font-weight: 400;
  line-height: 1.3;
  max-width: 22ch;
}

.u-bridge {
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

.statement-arrow {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  transition: transform 0.3s ease;
}
.statement-arrow:hover { transform: translateX(0.5rem); }

/* ── Marquee ────────────────────────────────────────────── */

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--zwart);
  padding: 0.9rem 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

.section { padding: clamp(4rem, 9vw, 8rem) var(--marge); }

.section-label {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  letter-spacing: 0.03em;
}

.section-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

/* Knipperende slash als cursor (bij titels) */
.blink-slash {
  display: inline-block;
  animation: slash-blink 1.4s steps(1) infinite;
  font-style: italic;
  margin-left: 0.05em;
}

/* ── Manifest ───────────────────────────────────────────── */

.manifest { border-bottom: 1px solid var(--zwart); }

.manifest-title {
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.manifest-body { max-width: 58ch; margin-left: auto; }

.manifest-body p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }

/* ── Diensten ───────────────────────────────────────────── */

.diensten { padding-bottom: 0; }

.diensten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--zwart);
  border-left: 1px solid var(--zwart);
  margin: 0 calc(-1 * var(--marge));
}

.dienst {
  border-right: 1px solid var(--zwart);
  border-bottom: 1px solid var(--zwart);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  min-height: clamp(240px, 30vw, 340px);
  display: flex;
  flex-direction: column;
  transition: background 0.35s ease;
}

.dienst:hover { background: var(--grijsblauw); }

.dienst-nr {
  font-size: 1rem;
  font-weight: 500;
}

.dienst h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 500;
  margin: clamp(2.5rem, 6vw, 5rem) 0 0.6rem;
}

.dienst p { font-size: 0.98rem; max-width: 34ch; margin-bottom: 1.2rem; }

/* "Meer uitleg"-link onderaan elk dienstenblok */
.dienst-meer {
  margin-top: auto;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ── Dienst-detailpagina (onderzoeken/ontwerpen/lanceren/beheren) ── */

.fase-kop { display: flex; align-items: baseline; gap: clamp(1rem, 2vw, 2rem); }

.fase-nr { font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 500; }

.fase-titel {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.fase-intro {
  max-width: 60ch;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.fase-intro p {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  margin-bottom: 1rem;
}

.fase-projecten { margin-top: clamp(3rem, 6vw, 5rem); }

.fase-projecten .section-label { margin-bottom: 1.5rem; }

/* ── Projecten ──────────────────────────────────────────── */

.projecten-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* maximaal 4 projecten per rij */
  border-top: 1px solid var(--zwart);
  border-left: 1px solid var(--zwart);
}

@media (max-width: 1200px) { .projecten-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .projecten-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .projecten-grid { grid-template-columns: 1fr; } }

.project {
  background: var(--wit);
  display: flex;
  flex-direction: column;
  /* elke kaart tekent zelf zijn lijnen; lege restvakken blijven wit */
  border-right: 1px solid var(--zwart);
  border-bottom: 1px solid var(--zwart);
}

.project figure {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease, transform 0.6s ease;
}

.project:hover img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.project-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem 0.3rem;
  border-top: 1px solid var(--zwart);
}

/* Fase-label (grijsblauw vakje onder de projectnaam) */
.project-fase {
  padding: 0 1.1rem 0.9rem;
  margin-top: auto;
}

.project-fase span {
  display: inline-block;
  background: var(--grijsblauw);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.18rem 0.55rem;
}

/* Placeholder voor projecten zonder foto: grid-vakje in huisstijl */
.project-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(to right, var(--lijn) 1px, transparent 1px),
    linear-gradient(to bottom, var(--lijn) 1px, transparent 1px);
  background-size: 44px 44px;
}

.project-placeholder span {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
}

article.project { cursor: default; }

.project-info h3 { font-size: 1.05rem; font-weight: 500; }

.project-info h3::after {
  content: "/";
  opacity: 0;
  margin-left: 0.15em;
  transition: opacity 0.3s ease;
}

.project:hover .project-info h3::after { opacity: 1; }

.project-info span { font-size: 0.9rem; white-space: nowrap; }

/* ── Quote-band (grijsblauw vlak) ───────────────────────── */

.quote-band {
  background: var(--grijsblauw);
  padding: clamp(3.5rem, 8vw, 7rem) var(--marge);
}

.quote-band p {
  font-size: clamp(1.5rem, 3.2vw, 2.7rem);
  font-weight: 400;
  line-height: 1.3;
  max-width: 30ch;
}

/* ── Team ───────────────────────────────────────────────── */

.team { border-bottom: 1px solid var(--zwart); }

.team-photo {
  position: relative;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
}

.team-photo img { width: 100%; }

/* Naam-hover op de groepsfoto: onzichtbare stroken per persoon.
   Boven een persoon verdwijnt de cursor en wordt hij vervangen
   door de naam, die met de muis meebeweegt (zie js/main.js). */
.foto-naam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--links);
  width: var(--breedte);
  cursor: none;
}

.foto-naam b {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 500;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  font-style: normal;
  color: var(--zwart);
  background: var(--grijsblauw);
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.foto-naam:hover b { opacity: 1; }

.team-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  border-top: 1px solid var(--lijn);
}

.team-list li {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  border-bottom: 1px solid var(--lijn);
}

.team-list strong { font-weight: 500; font-size: 1.05rem; }
.team-list span { font-size: 0.92rem; }

.ecosysteem { margin-top: clamp(3rem, 6vw, 5rem); }

.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}

.eco h3 { font-weight: 500; font-size: 1.15rem; margin-bottom: 0.4rem; }
.eco h3::before { content: "+ "; }
.eco p { font-size: 0.95rem; max-width: 36ch; }

.eco-note {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-size: 0.92rem;
  max-width: 60ch;
}

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

.contact-title {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}

.contact-kicker { font-size: 0.92rem; margin-bottom: 0.4rem; }
.contact-kicker::before { content: "+ "; }

.contact-big {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.4;
}

a.contact-big:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ── Contactformulier ───────────────────────────────────── */

.contact-form {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  max-width: 720px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.contact-form label {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.contact-form label::before { content: "+ "; }

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-weight: 300;
  color: var(--zwart);
  background: var(--wit);
  border: 1px solid var(--zwart);
  border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--grijsblauw);
}

.contact-form textarea { resize: vertical; }

.contact-form button {
  font: inherit;
  font-weight: 500;
  color: var(--zwart);
  background: var(--grijsblauw);
  border: 1px solid var(--zwart);
  padding: 0.8rem 1.8rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.contact-form button:hover { background: var(--zwart); color: var(--wit); }

.form-note { font-size: 0.82rem; margin-top: 0.8rem; opacity: 0.65; }

/* ── Projectdetailpagina ────────────────────────────────── */

.back-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.back-link:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.detail-media {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.detail-media img { width: 100%; }

.detail-text { position: sticky; top: 90px; }

.detail-text h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.detail-location { font-size: 0.95rem; margin: 0.7rem 0 2rem; }
.detail-location::before { content: "+ "; }

.detail-body p { margin-bottom: 1rem; max-width: 55ch; }

.detail-quote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--grijsblauw);
  font-size: 1.05rem;
  line-height: 1.5;
}

.detail-quote footer { margin-top: 0.6rem; font-size: 0.88rem; font-weight: 500; }

.facts {
  margin-top: 2.5rem;
  border-top: 1px solid var(--zwart);
}

.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--lijn);
  font-size: 0.92rem;
}

.facts dt { font-weight: 500; white-space: nowrap; }
.facts dd { text-align: right; }
.facts dd a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.detail-cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.detail-cta a {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  border-bottom: 1px solid var(--zwart);
  padding-bottom: 0.15rem;
  white-space: nowrap;
  transition: padding 0.25s ease;
}

.detail-cta a:hover { padding-bottom: 0.35rem; }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-text { position: static; order: -1; }
}

/* ── Vacatures ──────────────────────────────────────────── */

.vacatures-intro {
  max-width: 60ch;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.vacatures-intro p {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  margin-bottom: 1rem;
}

.vacatures-lijst {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--zwart);
}

/* Eén open vacature = één rij. Bij hover kleurt ze grijsblauw. */
.vacature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.3rem, 3vw, 2.2rem) clamp(0.5rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--zwart);
  transition: background 0.3s ease, padding-left 0.3s ease;
}

.vacature:hover { background: var(--grijsblauw); padding-left: clamp(1rem, 3vw, 2.5rem); }

.vacature-kop h3 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.1;
}

.vacature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 0.6rem;
  font-size: 0.92rem;
}

.vacature-meta span::before { content: "+ "; }

.vacature-pijl {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.vacature:hover .vacature-pijl { transform: translateX(0.5rem); }

.geen-vacatures {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  max-width: 55ch;
}

/* Detailpagina van een vacature */
.vacature-tekst { max-width: 65ch; margin-top: clamp(2rem, 4vw, 3rem); }

.vacature-tekst h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 500;
  margin: clamp(2rem, 4vw, 3rem) 0 0.8rem;
}

.vacature-tekst h2::before { content: "+ "; }

.vacature-tekst p { font-size: clamp(1rem, 1.4vw, 1.15rem); margin-bottom: 1rem; }

.vacature-tekst ul { list-style: none; margin: 0.5rem 0 1rem; }

.vacature-tekst li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.vacature-tekst li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-weight: 500;
}

.vacature-tekst ul ul { margin: 0.5rem 0 0.5rem 0; }

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--zwart);
  padding: 2rem var(--marge) 2.5rem;
  font-size: 0.85rem;
}

.footer-logo { height: 16px; margin-bottom: 1rem; }

.footer-credit { opacity: 0.6; margin-top: 0.3rem; }
.footer-credit a:hover { text-decoration: underline; }

/* ── Scroll-reveal animatie ─────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Toegankelijkheid: geen animaties als de gebruiker dat vraagt */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .logo-slash, .blink-slash { animation: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Mobiel ─────────────────────────────────────────────── */

@media (max-width: 640px) {
  .site-header { padding: 0.9rem var(--marge); gap: 1rem; }
  .header-logo img { height: 15px; }
  .site-nav { font-size: 0.8rem; gap: 0.7rem; }
  .nav-cta { padding: 0.25rem 0.6rem !important; }
  .hero-statement { flex-direction: column; align-items: flex-start; }
  .diensten-grid { grid-template-columns: 1fr 1fr; }
  .dienst { min-height: 0; }
  .dienst h3 { margin-top: 1.5rem; }
}

@media (max-width: 460px) {
  .diensten-grid { grid-template-columns: 1fr; }
}
