/* ============================================================
   AAIG — Asset Alliance Investment Group
   Identity: Editorial black · Off white · Conviction orange
   Type:     Thunder LC (headings) · Figtree (body)
   ============================================================ */

/* ---------- Fonts (local, cookieless) ---------- */
@font-face {
  font-family: 'Thunder LC';
  src: url('../fonts/ThunderLC-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Thunder LC';
  src: url('../fonts/ThunderLC-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Thunder LC';
  src: url('../fonts/ThunderLC-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/Figtree-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/Figtree-latin-ext.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0;
}

/* ---------- Tokens ---------- */
:root {
  /* Colour palette — AAIG visual identity */
  --editorial-black: #121416;
  --ink:             #0B0C0D;
  --graphite:        #1C1E20;
  --slate:           #55524C;
  --platinum:        #D3D2CE;
  --taupe:           #A2968B;
  --paper:           #EAE6DF;
  --off-white:       #F5F5F5;
  --conviction:      #E87858;
  --horizon:         #B8D2ED;

  --gutter: 24px;
  --font-display: 'Thunder LC', 'Arial Narrow', sans-serif;
  --font-body: 'Figtree', 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.9s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--editorial-black);
  background: var(--editorial-black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
::selection { background: var(--conviction); color: var(--off-white); }

/* ---------- Meldingsbalk ---------- */
:root { --announce-h: 0px; }
body.has-announce { --announce-h: 32px; }
/* Zodra de bezoeker begint te scrollen trekt de balk samen met de nav terug,
   en schuift het logo naar zijn gewone positie. */
body.has-announce.nav-collapsed { --announce-h: 0px; }

.announce {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 130;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  background: var(--conviction);
  color: var(--editorial-black);
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}
/* .announce zet display:flex en zou het hidden-attribuut anders overrulen */
.announce[hidden] { display: none; }
body.nav-collapsed .announce {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.announce__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announce__dot {
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--editorial-black);
}
.announce__text { overflow: hidden; text-overflow: ellipsis; }
.announce__cta {
  flex: none;
  padding-left: 10px;
  border-left: 1px solid rgba(18,20,22,0.3);
  opacity: 0.75;
  transition: opacity 0.25s var(--ease-out);
}
.announce__link:hover .announce__cta { opacity: 1; }
.announce__cta::after { content: ' →'; }
@media (max-width: 620px) {
  body.has-announce { --announce-h: 30px; }
  .announce { height: 30px; }
  .announce__link { font-size: 10.5px; letter-spacing: 0.07em; gap: 8px; }
  .announce__cta { display: none; }
}
@media (max-width: 400px) {
  .announce { padding: 0 16px; }
  .announce__link { font-size: 9.5px; letter-spacing: 0.03em; gap: 7px; }
}

/* ---------- Fixed logo ---------- */
:root {
  --logo-mask: url('../img/aaig-research-logo.png') center / 100% 100% no-repeat;
}
.site-logo,
.logo-threshold {
  position: fixed;
  top: calc(20px + var(--announce-h)); left: var(--gutter);
  width: 60px;
  aspect-ratio: 900 / 795;
  -webkit-mask: var(--logo-mask);
  mask: var(--logo-mask);
  transition: top 0.4s var(--ease-out);
}
.logo-threshold {
  /* Laag 1: zet de achtergrond binnen de lettervormen om naar puur zwart/wit. */
  z-index: 119;
  pointer-events: none;
  backdrop-filter: grayscale(1) brightness(1.8) contrast(200);
  -webkit-backdrop-filter: grayscale(1) brightness(1.8) contrast(200);
}
.site-logo {
  /* Laag 2: witte vulling in difference-blend op het element zelf ->
     hard zwart/wit, pixel-exact. Beide lagen delen exact hetzelfde mask,
     dus identieke rasterisatie zonder randlijntje. */
  z-index: 120;
  display: block;
  background: #fff;
  mix-blend-mode: difference;
}
/* In de hero: massief wit logo, nog geen overlay-effect. */
body.logo-solid .logo-threshold { display: none; }
body.logo-solid .site-logo { mix-blend-mode: normal; background: var(--off-white); }

/* ---------- Top navigation ---------- */
.top-nav {
  position: fixed;
  top: var(--announce-h); right: 0; left: 0;
  z-index: 110;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;
  padding: 22px var(--gutter);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out),
              top 0.4s var(--ease-out);
}
.top-nav.is-hidden { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.top-nav__links { display: flex; gap: 32px; }
.top-nav__links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--off-white);
  position: relative;
  white-space: nowrap;
}
/* Vijf links + contactknop: bij smallere vensters (en langere, vertaalde
   labels) de tussenruimte inlopen in plaats van de nav laten breken. */
@media (max-width: 1240px) {
  .top-nav { gap: 24px; }
  .top-nav__links { gap: 22px; }
}
.top-nav__links a::after {
  content: '';
  position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.top-nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.top-nav__logo {
  display: none;
  width: 46px;
  aspect-ratio: 900 / 795;
  background: var(--off-white);
  -webkit-mask: var(--logo-mask);
  mask: var(--logo-mask);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--conviction); outline-offset: 3px; }
.btn--solid  { background: var(--conviction); color: var(--off-white); }
.btn--solid:hover { background: var(--off-white); color: var(--editorial-black); }
.btn--ghost  { border-color: rgba(245,245,245,0.4); color: var(--off-white); }
.btn--ghost:hover { border-color: var(--off-white); background: rgba(245,245,245,0.08); }
.btn--ghostdark { border-color: rgba(18,20,22,0.35); color: var(--editorial-black); }
.btn--ghostdark:hover { border-color: var(--editorial-black); }
.btn--dark { background: var(--editorial-black); color: var(--off-white); }
.btn--dark:hover { background: var(--conviction); }
.btn--outline {
  border-color: rgba(245,245,245,0.4);
  color: var(--off-white);
  padding: 12px 22px;
}
.btn--outline:hover { border-color: var(--off-white); }
.btn--small { padding: 11px 20px; font-size: 12px; }
.btn__arrow { width: 12px; height: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 18px;
}
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 11vw, 170px);
  line-height: 0.85;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Past een (vertaalde) kop echt niet meer op één regel, dan zet JS deze
   class erop en breekt de kop netjes af in plaats van door te lopen. */
.display.is-wrapped { white-space: normal; overflow-wrap: break-word; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 12vh, 160px) var(--gutter); }
.section--paper  { background: var(--paper); color: var(--editorial-black); }
.section--dark   { background: var(--editorial-black); color: var(--off-white); }
.section--orange { background: var(--conviction); color: var(--editorial-black); }
.section__head { margin-bottom: clamp(48px, 7vh, 88px); max-width: 1600px; margin-inline: auto; }


/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) 48px;
  background: var(--editorial-black);
  color: var(--off-white);
  overflow: hidden;
}
.hero__canvas,
.hero__grain {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero__canvas { object-fit: cover; }
.no-webgl .hero__canvas { display: none; }
.no-webgl .hero {
  background: var(--editorial-black) url('../img/hero-fallback.jpg') center/cover no-repeat;
}
.hero__grain {
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 2; max-width: 1600px; margin-inline: auto; width: 100%; }
.hero__subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: clamp(20px, 3.2vh, 34px);
}
.hero__title {
  display: flex;
  flex-direction: column; /* voorkomt margin-collapse van de mask-wrappers */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(66px, 13.5vw, 220px);
  line-height: 0.9; /* oogt als de eerder goedgekeurde 0.8-versie */
  text-transform: uppercase;
  letter-spacing: 0.004em;
  margin-bottom: clamp(32px, 5vh, 56px);
}
.hero__line { display: block; overflow: hidden; padding: 0.17em 0; margin: -0.17em 0; }
.hero__line > span {
  display: block;
  white-space: nowrap;
  transform: translateY(110%);
  animation: heroLine 1.1s var(--ease-out) forwards;
}
.hero__title.is-wrapped .hero__line > span { white-space: normal; overflow-wrap: break-word; }
.hero__line:nth-child(2) > span { animation-delay: 0.14s; }
@keyframes heroLine { to { transform: translateY(0); } }
.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__intro { max-width: 46ch; font-size: 15px; opacity: 0.85; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scrollhint {
  position: absolute;
  right: var(--gutter);
  bottom: 20px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s 1.6s forwards;
  writing-mode: vertical-rl;
  display: none;
}
@keyframes fadeIn { to { opacity: 0.45; } }
@media (min-height: 700px) { .hero__scrollhint { display: block; } }

/* ---------- What We Do ---------- */
.what-we-do__grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(320px, 7fr);
  gap: clamp(48px, 6vw, 120px);
  max-width: 1600px;
  margin-inline: auto;
}
.what-we-do__facts { display: flex; flex-direction: column; gap: 8px; align-content: start; }
.fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid rgba(18,20,22,0.18);
}
.fact:last-child { border-bottom: 1px solid rgba(18,20,22,0.18); }
.fact__value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(72px, 7.5vw, 128px);
  line-height: 0.8;
  min-width: 1.1ch;
}
.fact__label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
  max-width: 36ch;
}
.what-we-do__copy p {
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.7;
  margin-bottom: 1.4em;
  max-width: 62ch;
}
.what-we-do__copy p:first-child { font-weight: 500; }
.what-we-do__copy p:last-child { margin-bottom: 0; }

/* ---------- Our Focus ---------- */
.our-focus__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(245,245,245,0.14);
  border: 1px solid rgba(245,245,245,0.14);
  max-width: 1600px;
  margin-inline: auto;
}
.tile {
  background: var(--editorial-black);
  padding: clamp(32px, 3.4vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 300px;
  transition: background 0.4s var(--ease-out);
}
.tile:hover { background: var(--graphite); }
.tile__icon { width: 52px; height: 52px; color: var(--conviction); }
.tile__icon path, .tile__icon circle, .tile__icon rect, .tile__icon line, .tile__icon polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile__icon .thick { stroke-width: 4; }
.icon-draw path, .icon-draw circle, .icon-draw rect, .icon-draw line, .icon-draw polyline {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.icon-draw.in path, .icon-draw.in circle, .icon-draw.in rect, .icon-draw.in line, .icon-draw.in polyline {
  animation: draw 1.4s var(--ease-out) forwards;
}
.icon-draw.in :nth-child(2) { animation-delay: 0.18s; }
.icon-draw.in :nth-child(3) { animation-delay: 0.36s; }
.icon-draw.in :nth-child(4) { animation-delay: 0.54s; }
.icon-draw.in :nth-child(5) { animation-delay: 0.72s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tile__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-top: auto;
}
.tile__text { font-size: 14px; line-height: 1.65; opacity: 0.72; max-width: 40ch; }
.tile--cta {
  justify-content: flex-end;
  background: var(--conviction);
  color: var(--editorial-black);
}
.tile--cta:hover { background: var(--off-white); }
.tile--cta .tile__text { opacity: 0.85; }
.tile--cta .tile__cta-arrow { width: 34px; height: 34px; margin-left: auto; }
@media (max-width: 1100px) { .our-focus__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .our-focus__grid { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* ---------- Field research ---------- */
.field__grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(320px, 7fr);
  gap: clamp(48px, 6vw, 120px);
  align-items: start;
  max-width: 1600px;
  margin-inline: auto;
}
.field__tags {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
}
.field__tags li {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid rgba(18,20,22,0.22);
  border-radius: 999px;
  white-space: nowrap;
}
.field__copy p {
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.7;
  margin-bottom: 1.4em;
  max-width: 62ch;
}
.field__copy p:first-child { font-weight: 500; }
.field__copy p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .field__grid { grid-template-columns: 1fr; gap: 36px; }
  .field__tags { order: 2; }
}

/* ---------- Testimonials ---------- */
.testimonials { padding-right: 0; border-top: 1px solid rgba(245,245,245,0.14); }
.testimonials .section__head { padding-right: var(--gutter); }
.testimonials__row {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.testimonials__row::-webkit-scrollbar { display: none; }
.testimonials__row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.testimonials__list {
  display: flex;
  gap: 18px;
  width: max-content;
  padding-right: var(--gutter);
}
.quote {
  position: relative;
  background: var(--off-white);
  color: var(--editorial-black);
  flex: 0 0 auto;
  width: min(440px, 82vw);
  min-height: clamp(360px, 48vh, 440px);
  padding: 30px 34px 28px;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}
.quote.reveal { transform: none; } /* kaarten bewegen alleen opzij, nooit verticaal */
.quote__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid currentColor;
  padding-bottom: 18px;
  margin-bottom: 26px;
}
.quote__index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 0.8;
}
.quote__mark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 120px;
  line-height: 0.55;
  transform: translateY(0.12em);
  color: var(--conviction);
}
.quote__text {
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.6;
  font-weight: 500;
  max-width: 42ch;
}
.quote__name {
  margin-top: auto;
  padding-top: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quote__name::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--conviction);
  flex: none;
}
.quote--dark {
  background: var(--graphite);
  color: var(--off-white);
  border: 1px solid rgba(245,245,245,0.12);
}
.quote * { pointer-events: none; }
.quote__text {
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.55;
  font-style: italic;
  font-weight: 500;
}
.quote__name {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.quote__name::before { content: '— '; }

.drag-cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--conviction);
  color: var(--editorial-black);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  will-change: transform;
}
.drag-cursor span { display: flex; align-items: center; gap: 7px; }
.drag-cursor span::before { content: '\2190'; font-size: 13px; }
.drag-cursor span::after  { content: '\2192'; font-size: 13px; }
.drag-cursor.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.drag-cursor.is-pressed { transform: translate(-50%, -50%) scale(0.78); }
@media (hover: hover) and (pointer: fine) {
  .testimonials__row.has-overlay { cursor: none; }
}
@media (hover: none), (pointer: coarse) {
  .drag-cursor { display: none; }
}

/* ---------- Connect ---------- */
.connect__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  max-width: 1600px;
  margin-inline: auto;
}
.connect-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: clamp(32px, 3.6vw, 56px);
  background: var(--off-white);
  border: 1px solid rgba(18,20,22,0.12);
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
  overflow: hidden;
}
.connect-card:hover { background: var(--editorial-black); color: var(--off-white); }
.connect-card__platform {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5vw, 80px);
  line-height: 0.9;
  text-transform: uppercase;
}
.connect-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: auto;
}
.connect-card__text { font-size: 14px; line-height: 1.6; opacity: 0.72; max-width: 34ch; }
.connect-card__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.connect-card__cta svg { width: 11px; height: 11px; transition: transform 0.3s var(--ease-out); }
.connect-card:hover .connect-card__cta svg { transform: translate(3px, -3px); }

/* ---------- Institutions ---------- */
.institutions { overflow: hidden; }
.institutions__bg {
  position: absolute; inset: 0;
  background: url('../img/gradient-5.jpg') center/cover no-repeat;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 75%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 75%, transparent);
}
.institutions__inner {
  position: relative;
  max-width: 1600px;
  margin-inline: auto;
}

.institutions__body {
  max-width: 56ch;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.7;
  margin: 32px 0 44px;
  opacity: 0.9;
}
.institutions__form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 640px;
}
.institutions__form input {
  flex: 1 1 280px;
  background: transparent;
  border: 1px solid rgba(245,245,245,0.35);
  border-radius: 999px;
  padding: 15px 26px;
  font-size: 14px;
  color: var(--off-white);
  transition: border-color 0.3s;
}
.institutions__form input::placeholder { color: rgba(245,245,245,0.45); }
.institutions__form input:focus { outline: none; border-color: var(--conviction); }
.institutions__note { margin-top: 20px; font-size: 12.5px; letter-spacing: 0.02em; opacity: 0.55; }
.institutions__error { margin-top: 14px; font-size: 13px; color: var(--conviction); }
.institutions__success {
  margin-top: 20px;
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 600;
  color: var(--horizon);
}
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact__inner { max-width: 1600px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.contact .display { max-width: none; }
.contact__body { margin: 28px 0 36px; font-size: clamp(15px, 1.3vw, 18px); opacity: 0.75; max-width: 48ch; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding: 120px var(--gutter) 32px;
  color: var(--off-white);
  overflow: hidden;
}
.footer__media {
  position: absolute; inset: 0;
  background: url('../img/footer.jpg') center/cover no-repeat;
  transform: scale(1.08);
}
.footer__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,12,13,0.55), rgba(11,12,13,0.2) 45%, rgba(11,12,13,0.75));
}
.footer__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
}
.footer__logo {
  width: min(46vw, 600px);
  aspect-ratio: 900 / 795;
  margin: 0 auto clamp(56px, 9vh, 120px);
  background: currentColor;
  -webkit-mask: var(--logo-mask);
  mask: var(--logo-mask);
  filter: drop-shadow(0 8px 60px rgba(0,0,0,0.35));
}
.footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(245,245,245,0.25);
  padding-top: 24px;
}
.footer__mission { max-width: 44ch; font-size: 13.5px; opacity: 0.85; }
.footer__legal { max-width: 52ch; font-size: 11px; opacity: 0.55; line-height: 1.6; }
.footer__legal p:first-child { margin-bottom: 8px; }

/* ---------- Dock ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 130;
  transform: translate(-50%, 140%);
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--off-white);
  color: var(--editorial-black);
  border-radius: 999px;
  padding: 12px 14px 12px 28px;
  box-shadow: 0 14px 50px rgba(0,0,0,0.35);
  transition: transform 0.55s var(--ease-out);
  max-width: calc(100vw - 2 * var(--gutter));
}
.dock.is-visible { transform: translate(-50%, 0); }
.dock__label { font-size: 13px; font-weight: 600; letter-spacing: 0.03em; white-space: nowrap; }
.dock__actions { display: flex; gap: 8px; }

/* ---------- Reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-lines { display: block; }
.reveal-lines .line-wrap { display: block; overflow: hidden; padding: 0.09em 0; margin: -0.09em 0; }
.reveal-lines .line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.reveal-lines.in .line-inner { transform: translateY(0); }
.reveal-lines.in .line-wrap:nth-child(2) .line-inner { transition-delay: 0.1s; }
.reveal-lines.in .line-wrap:nth-child(3) .line-inner { transition-delay: 0.2s; }

/* stagger helper for rendered lists */
.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > :nth-child(1) { transition-delay: 0s; }
.stagger.in > :nth-child(2) { transition-delay: 0.08s; }
.stagger.in > :nth-child(3) { transition-delay: 0.16s; }
.stagger.in > :nth-child(4) { transition-delay: 0.24s; }
.stagger.in > :nth-child(5) { transition-delay: 0.32s; }
.stagger.in > :nth-child(6) { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* Zwarte navbar met logo en contactknop; blend-logo uit op mobiel */
  .site-logo, .logo-threshold { display: none; }
  .top-nav {
    justify-content: space-between;
    background: var(--editorial-black);
    padding: 12px var(--gutter);
  }
  .top-nav.is-hidden { opacity: 1; transform: none; pointer-events: auto; }
  .top-nav__logo { display: block; }
  .top-nav__links { display: none; }
  .what-we-do__grid { grid-template-columns: 1fr; }
  .what-we-do__facts { order: 2; }
  .footer__logo { width: 86vw; }
  .footer { padding-bottom: 132px; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .dock { gap: 0; padding: 10px; }
  .dock__label { display: none; }
}
@media (max-width: 560px) {
  .institutions__form input { flex-basis: 100%; }
  .site-logo, .logo-threshold { width: 52px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__canvas { display: none; }
  .hero { background: var(--editorial-black) url('../img/hero-fallback.jpg') center/cover no-repeat; }
  .hero__line > span { transform: none; animation: none; }
  .hero__scrollhint { opacity: 0.45; animation: none; }
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
  .quote { transition: none; }
  .reveal-lines .line-inner { transform: none; transition: none; }
  .icon-draw path, .icon-draw circle, .icon-draw rect, .icon-draw line, .icon-draw polyline {
    stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important;
  }
  .dock { transition: none; }
  .drag-cursor { transition: none; }
  .footer__media { transform: none; }
}
