/*
 * M² Project Support — dark / neon-blue "circuit board" design system.
 *
 * Colors, fonts, hero, badge, button and card mechanics are ported
 * near-verbatim from the approved design reference (oud.m2ps.nl). The
 * Projecten / Opdrachtgevers / Over Ons / Contact sections extend the same
 * vocabulary (hairline borders, uppercase Barlow Condensed headings,
 * IntersectionObserver scroll-reveal) since no design reference existed for
 * them. The circuit-board canvas animation lives in m2ps.js.
 */

:root {
  --blue-accent: #2b5bff;
  --blue-glow:   #6890ff;
  --bg:          #07091a;
  --bg-alt:      #0d1130;
  --text:        #ffffff;
  --muted:       #98a4c4;
  --border:      rgba(43, 91, 255, 0.18);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

section[id], .m2-proj-card[id], .m2-proj-full-card[id] { scroll-margin-top: 5.5rem; }

body.m2-body {
  background: var(--bg) !important;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.m2-page section { position: relative; z-index: 1; }

.m2-page a { color: inherit; }

/* ── CANVAS ── */
#m2-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── HEADER / NAV ── */
.m2-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: rgba(7, 9, 26, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(43, 91, 255, 0.22);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.65);
  transition: background 0.3s, box-shadow 0.3s;
}
/* Soft fade below the bar so it reads as an anchored header rather than a
   translucent rectangle with a hard-cut bottom edge. */
.m2-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 36px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 9, 26, 0.35), rgba(7, 9, 26, 0));
}

/* Bar itself is full-bleed (edge to edge); the actual logo/nav content
   stays centered within the site's normal content width, like before. */
.m2-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 2rem;
  position: relative;
}
.m2-header-inner .m2-nav-toggle { position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); }

.m2-header-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.m2-header-logo-mark {
  height: 38px;
  width: 140px;
  background-image: url('logo.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  filter: drop-shadow(0 0 10px rgba(43,91,255,0.3));
  transition: filter 0.2s;
}
.m2-header-logo:hover .m2-header-logo-mark {
  filter: drop-shadow(0 0 16px rgba(43,91,255,0.5));
}

.m2-nav { display: flex; align-items: center; gap: 2.1rem; }

.m2-nav a {
  position: relative;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  opacity: 0.78;
  padding-bottom: 3px;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
}
.m2-nav a:hover, .m2-nav a.is-active { opacity: 1; color: var(--blue-glow); }

.m2-nav a:not(.m2-nav-linkedin)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--blue-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.m2-nav a:hover:not(.m2-nav-linkedin)::after, .m2-nav a.is-active::after { transform: scaleX(1); }

.m2-nav-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.m2-nav-linkedin:hover {
  opacity: 1;
  background: rgba(43, 91, 255, 0.1);
  border-color: var(--blue-accent);
  transform: translateY(-2px);
}

.m2-nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 4px;
  width: 40px; height: 36px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.m2-nav-toggle span, .m2-nav-toggle span::before, .m2-nav-toggle span::after {
  content: ''; display: block; width: 18px; height: 2px; background: var(--text);
  position: relative; transition: transform 0.2s, opacity 0.2s;
}
.m2-nav-toggle span::before { position: absolute; top: -6px; }
.m2-nav-toggle span::after  { position: absolute; top: 6px; }

@media (max-width: 860px) {
  /* .m2-nav goes fixed/off-canvas below, so the inner flex only has the
     logo left in normal flow — keep it pinned left instead of centered. */
  .m2-header-inner { justify-content: flex-start; }

  .m2-nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    /* opaque solid fill + !important: some hosts' auto-generated global-styles
       stylesheet loads after ours and can override a plain background here */
    background: var(--bg) !important;
    background-color: #07091a !important;
    flex-direction: column; justify-content: center;
    padding: 6.5rem 2rem 2.5rem; gap: 1.6rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 30;
  }
  .m2-nav a { font-size: 1.15rem; opacity: 1; }
  .m2-page.m2-nav-open .m2-nav { transform: translateX(0); }
  .m2-nav-toggle { display: inline-flex; position: relative; z-index: 31; }
  .m2-page.m2-nav-open .m2-nav-toggle span { background: transparent; }
  .m2-page.m2-nav-open .m2-nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .m2-page.m2-nav-open .m2-nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

  /* iOS Safari renders a position:fixed element transparent when an ANCESTOR
     has backdrop-filter — .m2-nav sits inside .m2-header, which blurs. Drop
     the parent's blur while the full-screen menu is open to avoid that bug. */
  .m2-page.m2-nav-open .m2-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #07091a;
  }
}

/* ── HERO ── */
.m2-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7.5rem 2rem 5rem;
}

.m2-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(43, 91, 255, 0.09);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.42rem 1.2rem;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-glow);
  margin-bottom: 2rem;
}

.m2-hero-logo {
  width: 210px;
  max-width: 52vw;
  height: auto;
  margin-bottom: 2.2rem;
  filter: drop-shadow(0 0 30px rgba(43, 91, 255, 0.4));
}

.m2-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-accent);
  animation: m2-blink 2s ease infinite;
}

@keyframes m2-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

.m2-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.m2-hero-title .m2-line-accent {
  display: block;
  background: linear-gradient(90deg, var(--blue-accent) 0%, var(--blue-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.m2-hero-tag {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.4rem;
}

.m2-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.6rem; }

.m2-hero-contact {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
  transition: border-color 0.3s;
}
.m2-hero-contact:hover { border-color: rgba(43, 91, 255, 0.4); }

.m2-hc-item {
  padding: 1.1rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-right: 1px solid var(--border);
  min-width: 140px;
}
.m2-hc-item:last-child { border-right: none; }

.m2-hc-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-accent);
  font-weight: 600;
}

.m2-hc-value { font-size: 0.98rem; font-weight: 500; color: #fff; }
.m2-hc-value a { text-decoration: none; transition: color 0.2s; }
.m2-hc-value a:hover { color: var(--blue-glow); }

/* ── BUTTONS ── */
.m2-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.9rem 2.3rem;
  border-radius: 6px;
  transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out), color 0.2s, border-color 0.2s;
}

.m2-btn-solid { background: var(--blue-accent); color: #fff; }
.m2-btn-solid:hover { background: var(--blue-glow); box-shadow: 0 8px 28px rgba(43, 91, 255, 0.5); transform: translateY(-2px); }

.m2-btn-outline { border: 1px solid var(--border); color: var(--text); }
.m2-btn-outline:hover { border-color: var(--blue-accent); color: var(--blue-glow); transform: translateY(-2px); }

.m2-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.m2-scroll-hint svg { animation: m2-arrow-bounce 2s ease infinite; }
@keyframes m2-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ── SHARED SECTION HEAD ── */
.m2-section { padding: 7rem 2rem; max-width: 1180px; margin: 0 auto; }
.m2-section-narrow { max-width: 1060px; }
.m2-section-page-top { padding-top: 9.5rem; }

.m2-proj-link { display: block; color: inherit; text-decoration: none; }

.m2-proj-more { text-align: center; margin-top: 2.6rem; }

/* ── PROJECTEN — full detail cards (dedicated /projecten/ page) ── */
.m2-proj-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.m2-proj-full-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}
.m2-proj-full-card.m2-show { opacity: 1; transform: translateY(0) scale(1); }
.m2-proj-full-card:nth-child(3n+1) { transition-delay: 0s; }
.m2-proj-full-card:nth-child(3n+2) { transition-delay: 0.09s; }
.m2-proj-full-card:nth-child(3n+3) { transition-delay: 0.18s; }
.m2-proj-full-card:hover { border-color: var(--blue-accent); box-shadow: 0 12px 32px rgba(43, 91, 255, 0.16); }

.m2-proj-full-img { aspect-ratio: 16 / 10; overflow: hidden; }
.m2-proj-full-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.9) brightness(0.85);
  transition: transform 0.5s ease;
}
.m2-proj-full-card:hover .m2-proj-full-img img { transform: scale(1.05); }

.m2-proj-full-title {
  padding: 1.3rem 1.4rem 0.7rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  color: #fff;
}

.m2-proj-full-detail {
  margin: 0 1.4rem 1.4rem;
  padding: 1rem 1.2rem;
  background: rgba(43, 91, 255, 0.05);
  border-left: 3px solid var(--blue-accent);
  border-radius: 4px;
}
.m2-proj-full-detail p { font-size: 0.9rem; line-height: 1.9; color: var(--muted); }
.m2-proj-full-detail strong { color: var(--blue-glow); font-weight: 600; }

.m2-section-head {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.m2-section-head.m2-show { opacity: 1; transform: translateY(0); }

.m2-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.m2-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 1.3rem;
}

.m2-section-lead { color: var(--muted); font-size: 1.06rem; max-width: 640px; line-height: 1.75; margin-bottom: 3.4rem; }

/* ── DIENSTEN GRID ──
   Flex (not grid) on purpose: with an odd card count the last row must not
   leave a phantom empty track behind — flex just lets the final card grow
   to fill the row instead. */
.m2-grid {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  gap: 1px;
  background: var(--border);
}

.m2-card {
  flex: 1 1 230px;
  background: var(--bg);
  padding: 2.5rem 1.8rem;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: background 0.25s, opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.m2-card:hover { background: rgba(43, 91, 255, 0.06); }
.m2-card.m2-show { opacity: 1; transform: translateY(0) scale(1); }
.m2-card:nth-child(1) { transition-delay: 0s; }
.m2-card:nth-child(2) { transition-delay: 0.09s; }
.m2-card:nth-child(3) { transition-delay: 0.18s; }
.m2-card:nth-child(4) { transition-delay: 0.27s; }
.m2-card:nth-child(5) { transition-delay: 0.36s; }

.m2-card-icon {
  width: 36px; height: 36px; color: var(--blue-accent); margin-bottom: 1.4rem;
  transition: transform 0.3s var(--ease-out), color 0.3s;
}
.m2-card:hover .m2-card-icon { transform: translateY(-3px) scale(1.06); color: var(--blue-glow); }

.m2-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.26rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
}

.m2-card-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.8; }

/* ── PROJECTEN GRID ── */
.m2-proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.m2-proj-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.m2-proj-card.m2-show { opacity: 1; transform: translateY(0) scale(1); }
.m2-proj-card:nth-child(4n+1) { transition-delay: 0s; }
.m2-proj-card:nth-child(4n+2) { transition-delay: 0.07s; }
.m2-proj-card:nth-child(4n+3) { transition-delay: 0.14s; }
.m2-proj-card:nth-child(4n+4) { transition-delay: 0.21s; }

.m2-proj-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.85) brightness(0.75);
  transition: transform 0.5s ease, filter 0.3s ease;
}
.m2-proj-card:hover img { transform: scale(1.06); filter: saturate(1) brightness(0.85); }

.m2-proj-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,9,26,0.92) 0%, rgba(7,9,26,0.15) 55%, transparent 100%);
}

.m2-proj-more-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  text-decoration: none;
  color: var(--blue-glow);
  background: rgba(43, 91, 255, 0.05);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1rem;
  line-height: 1.25;
  transition: background 0.25s, color 0.25s;
}
.m2-proj-more-tile:hover { background: rgba(43, 91, 255, 0.12); color: #fff; }
.m2-proj-more-tile svg { transition: transform 0.25s var(--ease-out); }
.m2-proj-more-tile:hover svg { transform: translateX(4px); }

.m2-proj-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 1.1rem 1.2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* ── OPDRACHTGEVERS — auto-scrolling marquee ── */
.m2-marquee {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  padding: 0.5rem 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.m2-marquee.m2-show { opacity: 1; transform: translateY(0); }

.m2-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 3.2rem;
  animation: m2-marquee-scroll 32s linear infinite;
}
.m2-marquee:hover .m2-marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .m2-marquee-track { animation: none; }
}

@keyframes m2-marquee-scroll {
  /* track holds 3 duplicated sets (see home.php) so a full set-width loop is
     -33.333%, not -50% — keep these in sync if the duplicate count changes */
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}

.m2-marquee-item {
  flex: 0 0 auto;
  width: 200px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m2-marquee-item img {
  width: 100%;
  height: 100%;
  max-height: 64px;
  object-fit: contain;
  background: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 8px;
  filter: grayscale(0.15);
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s;
}
.m2-marquee-item img:hover { opacity: 1; transform: translateY(-2px); }

/* ── OVER ONS ── */
.m2-about {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 3.5rem;
  align-items: center;
}

.m2-about-portrait {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.m2-about-portrait.m2-show { opacity: 1; transform: translateY(0) scale(1); }
.m2-about-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(0.25) contrast(1.05); }

.m2-about-body { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out) 0.1s, transform 0.8s var(--ease-out) 0.1s; }
.m2-about-body.m2-show { opacity: 1; transform: translateY(0); }

.m2-about-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.m2-about-role { color: var(--blue-glow); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.5rem; }
.m2-about-text { color: var(--muted); font-size: 1.03rem; line-height: 1.85; }

@media (max-width: 720px) {
  .m2-about { grid-template-columns: 1fr; }
  .m2-about-portrait { max-width: 260px; margin: 0 auto; }
}

/* ── CONTACT ── */
.m2-contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.m2-contact-cell { background: var(--bg); padding: 2.8rem; opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.m2-contact-cell.m2-show { opacity: 1; transform: translateY(0); }
.m2-contact-cell:nth-child(2) { transition-delay: 0.12s; }

.m2-contact-cell p { color: var(--muted); font-size: 1.03rem; line-height: 1.8; margin-bottom: 1.7rem; }

.m2-contact-rows { display: flex; flex-direction: column; gap: 1.4rem; }
.m2-contact-row .m2-hc-label { display: block; margin-bottom: 0.35rem; }
.m2-contact-row .m2-hc-value { font-size: 1.05rem; }
.m2-contact-row .m2-hc-value a { text-decoration: none; transition: color 0.2s; }
.m2-contact-row .m2-hc-value a:hover { color: var(--blue-glow); }

@media (max-width: 760px) {
  .m2-contact-grid { grid-template-columns: 1fr; }
}

/* ── FOOTER ── */
.m2-footer-blurb {
  position: relative; z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 2.4rem 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}

.m2-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: 1.6rem;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
}
.m2-footer a { text-decoration: none; transition: color 0.2s; }
.m2-footer a:hover { color: var(--blue-glow); }

@media (max-width: 600px) {
  .m2-section { padding: 4.5rem 1.4rem; }

  /* Hero info bar: stack full-width instead of an unbalanced 2-then-1 wrap */
  .m2-hero-contact { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .m2-hc-item {
    min-width: 0; width: 100%;
    align-items: center; text-align: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1.2rem;
  }
  .m2-hc-item:last-child { border-bottom: none; }

  /* Contact section: center everything instead of a left-heavy block */
  .m2-contact-cell { padding: 2.2rem 1.6rem; text-align: center; }
  .m2-contact-cell p { text-align: center; }
  .m2-contact-rows { align-items: center; }
  .m2-contact-row { display: flex; flex-direction: column; align-items: center; }

  /* Homepage Projecten teaser: show a short preview, not the full 15-item list */
  .m2-proj-grid .m2-proj-card:not(.m2-proj-more-tile):nth-child(n+5) { display: none; }
  .m2-proj-more-tile { aspect-ratio: auto; padding: 1.6rem; }
}
