/* ============================================================
   Ingmar de Lange — toonaangevend merkstrateeg
   Stijl: Polestar-minimalisme × Mountview
   Licht, veel wit, beeldvullende fotografie zonder kaders.
   Kleuren: Mountview kleuren.pdf · Font: Poppins (als mountview.nl)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Mountview brand colours */
  --green:      #358D61;
  --green-deep: #205338;
  --sage:       #D4E2DB;
  --terra:      #C4584E;

  --paper:      #FFFFFF;
  --paper-soft: #F5F7F6;
  --ink:        #131A16;   /* near-black with a green cast */
  --ink-soft:   rgba(19, 26, 22, 0.64);
  --ink-mute:   rgba(19, 26, 22, 0.40);
  --line:       rgba(19, 26, 22, 0.14);
  --line-soft:  rgba(19, 26, 22, 0.08);

  --dark:       #0C110E;   /* dark photo sections */
  --white-soft: rgba(255, 255, 255, 0.72);
  --white-mute: rgba(255, 255, 255, 0.45);
  --line-inv:   rgba(255, 255, 255, 0.18);

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 72px);

  --font: "Poppins", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--green); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; }

.overline {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.6rem;
}
.sec-dark .overline, .spreker .overline { color: var(--sage); }

.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 18em; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-soft); line-height: 1.7; }
.prose > * + * { margin-top: 1.15rem; }
.prose p { color: var(--ink-soft); max-width: 34em; }
.prose strong { color: var(--ink); font-weight: 500; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(88px, 12vw, 170px); position: relative; }
.sec-dark { background: var(--dark); color: #fff; }
.sec-dark .prose p { color: var(--white-soft); }
.sec-dark .prose strong { color: #fff; }

@media (min-width: 1600px) {
  :root { --maxw: 1456px; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  color: #fff;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              padding 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom-color: var(--line-soft);
  padding-block: 14px;
}
.brand { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav-links a {
  font-size: 0.85rem; font-weight: 400; opacity: 0.78;
  transition: opacity 0.25s var(--ease);
}
.nav-links a:hover { opacity: 1; }

.lang { display: inline-flex; align-items: center; gap: 2px; font-size: 0.8rem; }
.lang button {
  padding: 4px 7px; opacity: 0.45; font-weight: 500; letter-spacing: 0.04em;
  transition: opacity 0.25s var(--ease);
}
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; text-decoration-color: var(--green); }
.lang .sep { opacity: 0.35; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: 0.87rem; font-weight: 500; letter-spacing: 0.03em;
  padding: 0.95em 1.7em;
  border-radius: 2px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { border: 1px solid var(--line-inv); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.tlink {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: 0.9rem; font-weight: 500; color: var(--green);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.tlink:hover { gap: 0.9em; color: var(--green-deep); }
.sec-dark .tlink, .spreker .tlink { color: var(--sage); }
.sec-dark .tlink:hover, .spreker .tlink:hover { color: #fff; }

/* "(andere site)" bij externe links */
.tlink .ext { font-size: 0.76rem; font-weight: 400; color: var(--ink-mute); white-space: nowrap; }
.sec-dark .tlink .ext, .spreker .tlink .ext { color: var(--white-mute); }
.inline-note { font-size: 0.76rem; color: var(--ink-mute); white-space: nowrap; }
.sec-dark .inline-note, .spreker .inline-note { color: var(--white-mute); }

/* ============================================================
   HERO — full-bleed photo, subtle shader behind
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
#hero-canvas, .hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-fallback {
  background:
    radial-gradient(100% 90% at 20% 30%, rgba(53,141,97,0.16), transparent 60%),
    var(--dark);
  transition: opacity 0.6s ease;
}
.hero-photo {
  position: absolute; inset: 0 0 0 auto;
  width: min(54vw, 980px); height: 100%;
  object-fit: cover; object-position: 50% 22%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
          mask-image: linear-gradient(to right, transparent, #000 30%);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(12,17,14,0.82) 0%, rgba(12,17,14,0.2) 42%, transparent 65%),
    linear-gradient(105deg, rgba(12,17,14,0.72) 24%, transparent 58%);
}
.hero-content {
  position: relative; z-index: 2;
  padding-bottom: clamp(64px, 10vh, 130px);
}
.hero .overline { color: var(--sage); margin-bottom: 1.3rem; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  max-width: 13em;
}
.hero-lead {
  margin-top: 1.5rem;
  max-width: 34em;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.7;
  color: var(--white-soft);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.4rem; }

/* ============================================================
   STATEMENT — pure typography on white
   ============================================================ */
.statement .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.statement h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  letter-spacing: -0.025em;
}
.statement h2 em { font-style: normal; color: var(--green); white-space: nowrap; }
.statement-body { padding-top: 0.6em; }
.statement-body p { color: var(--ink-soft); max-width: 36em; }
.statement-body p + p { margin-top: 1.15rem; }

/* ============================================================
   BOEK — dark, cover blends frameless
   ============================================================ */
.book .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.book-cover img { width: min(100%, 560px); height: auto; margin-inline: auto; }
.book .award {
  display: inline-block;
  font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--sage);
  border-bottom: 1px solid rgba(212, 226, 219, 0.35);
  padding-bottom: 6px;
  margin-bottom: 1.7rem;
}
.book h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.book .quote {
  margin-top: 1.9rem;
  padding-left: 20px;
  border-left: 2px solid var(--green);
  font-size: 1.02rem; line-height: 1.7;
  color: var(--white-soft);
  max-width: 34em;
}
.book .quote cite { display: block; font-style: normal; margin-top: 0.9rem; font-size: 0.8rem; color: var(--white-mute); }
.book .tlink { margin-top: 2.1rem; }

/* ============================================================
   BUREAU — white, photo bleeds to the right edge
   ============================================================ */
.split-bleed {
  display: grid;
  grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 620px) minmax(0, 620px) minmax(var(--gutter), 1fr);
  gap: 0 clamp(28px, 4vw, 72px);
  align-items: center;
}
.split-bleed .txt { grid-column: 2; padding-block: clamp(88px, 12vw, 170px); }
.split-bleed .img { grid-column: 3 / 5; align-self: stretch; min-height: 480px; }
.split-bleed .img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 22%; }

.fivep { margin-top: 1.9rem; border-top: 1px solid var(--line-soft); max-width: 30em; }
.fivep li {
  padding: 12px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.98rem;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
}
.fivep li span {
  flex: 1 1 14rem;
  min-width: 0;
  color: var(--ink-mute);
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: right;
}
.bureau .tlink { margin-top: 2.1rem; }

/* ============================================================
   SPREKER — full-bleed stage photo, text overlay
   ============================================================ */
.spreker {
  position: relative;
  min-height: 92svh;
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}
.spreker-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
}
.spreker-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,17,14,0.88) 0%, rgba(12,17,14,0.32) 44%, rgba(12,17,14,0.12) 100%);
}
.spreker .wrap { position: relative; z-index: 2; padding-block: clamp(64px, 9vh, 110px); }
.spreker h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  max-width: 11.2em;
  text-wrap: balance;
}
.spreker p { margin-top: 1.3rem; max-width: 36em; color: var(--white-soft); }
.spreker .tlink { margin-top: 1.9rem; }

/* ============================================================
   KENNIS — minimal editorial list (RSS)
   ============================================================ */
.article-feed-block + .article-feed-block { margin-top: clamp(72px, 10vw, 128px); }
.kennis-intro { max-width: 620px; margin-bottom: clamp(36px, 5vw, 64px); }
.kennis-intro p {
  margin-top: 1.1rem;
  max-width: 43ch;
  color: var(--ink-soft);
  text-wrap: balance;
}
.kennis-intro p:empty, .vid-head p:empty { display: none; }

.feed { border-top: 1px solid var(--line); }
.feed-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(20px, 2.6vw, 30px) 2px;
  border-bottom: 1px solid var(--line);
}
.feed-title {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.3;
  transition: color 0.25s var(--ease);
}
.feed-arrow { color: var(--ink-mute); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
a.feed-row:hover .feed-title { color: var(--green); }
a.feed-row:hover .feed-arrow { transform: translateX(5px); color: var(--green); }

.feed-row.is-loading { display: block; }
.feed-skel {
  display: block; height: 13px; max-width: 520px;
  background: linear-gradient(90deg, rgba(19,26,22,0.05), rgba(19,26,22,0.11), rgba(19,26,22,0.05));
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}
.feed-skel + .feed-skel { margin-top: 10px; width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .feed-skel { animation: none; } }

.kennis-link { margin-top: clamp(28px, 4vw, 44px); }

/* ============================================================
   VIDEO — horizontale carrousel, één video prominent
   ============================================================ */
.vid-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.vid-head p { margin-top: 1.1rem; color: var(--white-soft); max-width: 34em; }
.vid-nav { display: flex; gap: 10px; }
.vid-btn {
  width: 46px; height: 46px;
  border: 1px solid var(--line-inv); border-radius: 2px;
  display: grid; place-items: center;
  font-size: 1.05rem; color: #fff;
  transition: border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.vid-btn:hover:not(:disabled) { border-color: #fff; }
.vid-btn:disabled { opacity: 0.3; cursor: default; }

.vid-track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.vid-track::-webkit-scrollbar { display: none; }

.vid-slide { flex: 0 0 auto; width: min(88%, 860px); scroll-snap-align: start; margin: 0; }
.vid-frame {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; background: #000;
  overflow: hidden; padding: 0; cursor: pointer;
}
.vid-frame img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.35s var(--ease), transform 0.7s var(--ease);
}
.vid-frame:hover img { opacity: 1; transform: scale(1.02); }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-play {
  position: absolute; inset: 0; margin: auto;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green);
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.vid-play::after {
  content: ""; width: 0; height: 0;
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.vid-frame:hover .vid-play { transform: scale(1.08); }
.vid-slide figcaption { margin-top: 14px; }
.vid-slide figcaption b { display: block; font-weight: 500; font-size: 0.98rem; }
.vid-slide figcaption small { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--white-mute); }

/* ============================================================
   CONTACT — deep green brand moment
   ============================================================ */
.contact { background: var(--green-deep); color: #fff; }
.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.contact .lead { color: rgba(255,255,255,0.72); margin-top: 1.3rem; max-width: 26em; }

.contact-list { border-top: 1px solid rgba(255,255,255,0.22); }
.contact-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 19px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.22);
}
.contact-row b { display: block; font-weight: 500; font-size: 1.05rem; }
.contact-row small { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 2px; }
.contact-row .arrow { color: rgba(255,255,255,0.55); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.contact-row:hover .arrow { transform: translateX(5px); color: var(--sage); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { padding: clamp(52px, 7vw, 84px) 0 40px; background: var(--paper); }
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.foot-brand { max-width: 30ch; }
.foot-brand .brand { display: block; margin-bottom: 14px; color: var(--ink); }
.foot-brand p { color: var(--ink-mute); font-size: 0.88rem; line-height: 1.65; }
.foot-cols { display: flex; gap: clamp(44px, 7vw, 100px); flex-wrap: wrap; }
.foot-col h4 { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; font-weight: 500; }
.foot-col a { display: block; color: var(--ink-soft); font-size: 0.9rem; padding: 4px 0; transition: color 0.25s; }
.foot-col a:hover { color: var(--green); }
.foot-bottom {
  margin-top: clamp(40px, 6vw, 60px); padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.78rem; color: var(--ink-mute);
}
.foot-bottom a:hover { color: var(--green); }

/* ============================================================
   Reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }

  .hero { align-items: flex-end; }
  .hero-photo {
    width: 100%;
    -webkit-mask-image: none; mask-image: none;
    object-position: 60% 18%;
  }
  .hero-scrim {
    background: linear-gradient(to top, rgba(12,17,14,0.92) 8%, rgba(12,17,14,0.42) 52%, rgba(12,17,14,0.08) 100%);
  }
  .statement .wrap, .book .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .book-cover { order: -1; }
  .book-cover img { width: min(100%, 420px); margin-inline: 0; }

  .split-bleed {
    grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter);
    column-gap: 0;
  }
  .split-bleed .txt { grid-column: 2; padding-block: clamp(72px, 10vw, 120px) 0; }
  .split-bleed .img { grid-column: 1 / 4; min-height: 0; margin-top: 48px; }
  .split-bleed .img img { aspect-ratio: 4 / 5; max-height: 640px; }
  .bureau .split-bleed .img {
    grid-row: 1;
    margin-top: 0;
    margin-bottom: 48px;
  }
  .bureau .split-bleed .txt {
    grid-row: 2;
    padding-bottom: clamp(72px, 12vw, 120px);
  }

  .feed-row { grid-template-columns: 1fr auto; }
}
@media (max-width: 560px) {
  .spreker { min-height: 78svh; }
  .hero-cta {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: start;
  }
  .hero-cta .btn-primary {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .foot-top { flex-direction: column; }
}

@media (max-width: 640px) {
  .hero, .spreker {
    display: block;
    min-height: auto;
    overflow: visible;
    background: var(--dark);
  }
  .hero {
    display: flex;
    flex-direction: column;
  }

  #hero-canvas, .hero-fallback, .hero-scrim, .spreker-scrim {
    display: none;
  }

  .hero-photo, .spreker-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero-content { display: contents; }
  .hero-content > .overline,
  .hero-content > h1,
  .hero-content > .hero-lead,
  .hero-content > .hero-cta {
    width: 100%;
    max-width: none;
    padding-inline: var(--gutter);
  }
  .hero-content > .overline {
    order: 1;
    padding-top: clamp(84px, 20vw, 112px);
    margin-bottom: clamp(1.8rem, 6vw, 2.4rem);
  }
  .hero-content > h1 {
    order: 2;
    padding-bottom: clamp(34px, 8vw, 48px);
  }
  .hero-photo { order: 3; }
  .hero-content > .hero-lead {
    order: 4;
    margin-top: 0;
    padding-top: clamp(34px, 8vw, 48px);
  }
  .hero-content > .hero-cta {
    order: 5;
    padding-bottom: clamp(42px, 11vw, 64px);
  }

  .spreker .wrap {
    position: relative;
    padding-block: clamp(42px, 11vw, 64px);
  }
}
