/* ==========================================================================
   100x Group — stijlen
   Alle kleuren, letters en afstanden staan hier als variabelen.
   Mobiel eerst; grotere schermen via @media (min-width: ...).
   ========================================================================== */

:root {
  /* Kleur: één grond, één inkt, één omgekeerd vlak voor de afsluiting */
  --bg: #050507;
  --surface: #15161b;
  --surface-hover: #1c1d23;
  --line: #2e3038;
  --card: #0d0e11;
  --ink: #ecebe7;
  --muted: #9b978f;
  --field: #ecebe7;
  --field-ink: #050507;
  --scrim: rgba(5, 5, 7, 0.72);
  --on-light-muted: #5f5c56;

  /* Letters */
  --font-display: "Newsreader", "Playfair Display", Georgia, serif;
  --font-text: "Inter", system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-statement: clamp(1.375rem, 0.9rem + 1.2vw, 2rem);
  --step-display: clamp(5rem, 1rem + 6vw, 7rem);
  --step-giant: clamp(6rem, 2rem + 24vw, 22rem);

  /* Ruimte */
  --margin: clamp(16px, 2.2vw, 32px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(112px, 14vw, 200px);
  --header: 72px;

  /* Beweging */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 700ms;
  --stagger: 80ms;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--margin); top: -100px; z-index: 20;
  background: var(--ink); color: var(--bg); padding: 12px 16px;
}
.skip-link:focus { top: var(--margin); }

/* Koppen in de smalle zware letter */
.display, .hero__title, .brands__title, .routes__title,
.founder__title, .partners__title, .site-footer__title, .wordmark, .story-stat__figure {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.015em;
  line-height: 1.04;
}
em { font-style: italic; }

/* ---------- Kop van de site: een lichte zwevende pil met het 100x in een eigen blokje ---------- */
.site-header {
  position: fixed; inset: 16px auto auto 50%; z-index: 10;
  transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--margin)), 800px); height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px;
  border-radius: 9999px;
  background: var(--ink); color: var(--bg);
  transition: transform 400ms var(--ease-out);
}
/* Gaat weg als je naar beneden scrolt, komt terug als je omhoog gaat (js/main.js) */
.site-header.is-hidden { transform: translate(-50%, -140%); }

.wordmark { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; line-height: 1; }
.wordmark__x {
  display: grid; place-items: center;
  height: 48px; padding: 0 16px;
  border-radius: 9999px;
  background: var(--bg); color: var(--ink);
  font-style: italic;
}

.site-nav { display: flex; align-items: center; gap: 4px; color: var(--bg); font-size: 0.9375rem; font-weight: 500; }
.site-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 9999px; transition: color 200ms; }
.site-nav a:hover { color: var(--on-light-muted); }
.site-nav li:last-child a { padding: 8px 20px 8px 8px; margin-left: 4px; background: var(--bg); color: var(--ink); }
.site-nav li:last-child a:hover { color: var(--ink); opacity: 0.85; }

/* Een geblurd gezichtje in de Founder-knop, zoals het portret verderop */
.nav-avatar { width: 32px; height: 32px; border-radius: 9999px; overflow: hidden; flex: none; }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; filter: blur(3px); transform: scale(1.3); }

/* Menuknop: alleen op de telefoon */
.menu-button {
  display: none;
  font: 500 var(--step-small) / 1 var(--font-text);
  color: var(--ink); background: var(--bg);
  border: 0; border-radius: 9999px;
  padding: 12px 18px; min-height: 44px; cursor: pointer;
}
@media (max-width: 759px) {
  .site-header { width: calc(100% - 2 * var(--margin)); height: 58px; padding: 0 6px; }
  .wordmark__x { height: 46px; }
  .menu-button { display: inline-flex; align-items: center; margin-left: auto; }
  .site-nav { display: none; }
  .site-header.is-open .site-nav {
    display: grid; gap: 0;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    padding: 8px 20px;
    border-radius: 16px;
    background: var(--surface); color: var(--ink);
    font-size: var(--step-lead);
  }
  .site-header.is-open .site-nav a { display: block; padding: 14px 0; margin: 0; background: none; color: inherit; }
  .nav-avatar { display: none; }
}

/* ---------- Hero: zin met het diamanten 100x ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: clamp(28px, 4vw, 48px);
  padding: calc(var(--header) + 56px) var(--margin) 64px;
  text-align: center;
  overflow: hidden;
}
.hero__title { display: grid; justify-items: center; gap: clamp(4px, 1vw, 14px); font-size: min(11vw, 5.5rem, 9svh); }
.hero__line { display: block; white-space: nowrap; }
.hero__diamond { display: block; width: min(92vw, 1000px, (100svh - 462px) * 2); }
.hero__lead { max-width: 34ch; font-size: var(--step-lead); line-height: 1.3; color: var(--muted); }

/* Het diamanten 100x (js/chrome.js); zonder WebGL blijven de witte letters staan */
.held__diamant { position: relative; aspect-ratio: 1593 / 784; }
.held__diamant .diamant { position: absolute; inset: 0; }
.diamant__mark, .diamant__canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.diamant__mark { fill: var(--ink); }
.diamant__mark.has-chrome .fly__glyph { visibility: hidden; }

/* ---------- Merken: verhalen zoals op slash.com, verborgen achter blur ---------- */
.brands { padding-top: var(--section); }
.brands__head {
  display: grid; justify-items: center; gap: 16px; text-align: center;
  padding: 0 var(--margin) 48px;
}
.brands__title { font-size: var(--step-head); }
.brands__note { color: var(--muted); font-size: var(--step-lead); line-height: 1.3; max-width: 34ch; }
.stories {
  display: flex; gap: 12px;
  max-width: 1216px; margin: 0 auto; padding: 0 var(--margin);
  height: clamp(360px, 36vw, 540px);
}
.story {
  position: relative;
  flex: 1 1 0; min-width: 0;
  overflow: hidden;
  border: 0; padding: 0; margin: 0;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink); font: inherit; text-align: left;
  cursor: pointer;
  transition: flex-grow 800ms var(--ease-out);
}
.story.is-active { flex-grow: 2.8; cursor: default; }
.story__media { position: absolute; inset: 0; }
.story__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 900ms var(--ease-out); }
.story.is-active .story__media img { animation: inzoomen 7s linear forwards; }
@keyframes inzoomen { from { transform: scale(1.1); } to { transform: scale(1.28); } }
.story::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: 0.55; transition: opacity 600ms var(--ease-out); }
.story.is-active::after, .story:hover::after { opacity: 0.15; }
.story .brand-card__eye { z-index: 1; }
.story__who { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: grid; gap: 2px; }
.story__name { font-weight: 600; font-size: var(--step-body); white-space: nowrap; }
.story__sub { color: var(--muted); font-size: var(--step-small); white-space: nowrap; }
.story:not(.is-active) .story__sub { opacity: 0; }
.story:not(.is-active) .story__who { opacity: 0; transition: opacity 300ms; }
.stories__stats { max-width: 1216px; margin: 28px auto 0; padding: 0 var(--margin); }
.stories__panel { display: flex; flex-wrap: wrap; align-items: end; gap: 20px 44px; }
.stories__panel[hidden] { display: none; }
.story-stat__figure { font-size: clamp(2.25rem, 1.6rem + 1.6vw, 3.25rem); line-height: 1; }
.story-stat__label { color: var(--muted); font-size: var(--step-body); }
.stories__tag {
  margin-left: auto;
  padding: 6px 14px; border-radius: 9999px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted); font-size: var(--step-small);
}

.brand-card__eye {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ink);
}
.brand-card__eye svg { width: 44px; height: 44px; }

/* ---------- Werkwijze: drie kaarten met bewegende visuals ---------- */
.routes { padding: var(--section) var(--margin) 0; display: grid; gap: 56px; justify-items: center; }
.routes__intro { display: grid; gap: 16px; justify-items: center; text-align: center; }
.routes__title { font-size: var(--step-head); }
.routes__lead { max-width: 34ch; color: var(--muted); font-size: var(--step-lead); line-height: 1.3; }
.routes__grid { width: 100%; max-width: 1216px; display: grid; gap: 16px; }
.feature {
  display: grid; grid-template-rows: auto 1fr;
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
}
.feature__visual {
  position: relative;
  height: 300px;
  display: grid; place-items: center;
  background: radial-gradient(60% 70% at 50% 45%, rgba(255, 255, 255, 0.07), transparent 70%); /* taste-skill-ignore: zachte lichtval zoals de slash-kaarten */
}
.feature__text { padding: 8px 28px 28px; color: var(--muted); font-size: var(--step-body); line-height: 1.45; }
.feature__text strong { color: var(--ink); font-weight: 600; }

/* Gedeelde UI-stukjes */
.ui-check { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 9999px; background: var(--ink); color: var(--bg); flex: none; }
.ui-check svg { width: 12px; height: 12px; }

/* Build: lanceerlijst die zich afvinkt */
.ui-panel { width: min(78%, 300px); padding: 18px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; }
.ui-panel__head { display: flex; justify-content: space-between; font-weight: 600; font-size: var(--step-small); }
.ui-panel__head span { color: var(--muted); font-weight: 400; }
.ui-steps { display: grid; gap: 10px; font-size: var(--step-small); }
.ui-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.ui-steps .ui-check { background: var(--line); color: transparent; animation: vink 6s infinite; }
.ui-steps li:nth-child(2) .ui-check { animation-delay: 0.6s; }
.ui-steps li:nth-child(3) .ui-check { animation-delay: 1.2s; }
.ui-steps li:nth-child(4) .ui-check { animation-delay: 1.8s; }
@keyframes vink { 0%, 8% { background: var(--line); color: transparent; } 14%, 88% { background: var(--ink); color: var(--bg); } 100% { background: var(--line); color: transparent; } }
.ui-bar { height: 4px; border-radius: 9999px; background: var(--line); overflow: hidden; }
.ui-bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; animation: vul 6s infinite; }
@keyframes vul { 0% { transform: scaleX(0.05); } 40%, 88% { transform: scaleX(1); } 100% { transform: scaleX(0.05); } }

/* Buy: jouw merk schuift naar 100x Group, dan komt de deal binnen */
.ui-deal { display: flex; align-items: center; gap: 12px; }
.ui-chip { padding: 10px 16px; border-radius: 9999px; font-size: var(--step-small); font-weight: 600; white-space: nowrap; }
.ui-chip--brand { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); filter: blur(0); animation: schuif 6s infinite var(--ease-out); }
.ui-chip--us { background: var(--ink); color: var(--bg); }
.ui-arrow { width: 40px; height: 2px; background: var(--line); position: relative; }
.ui-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--line); border-right: 0; }
@keyframes schuif { 0%, 10% { transform: translateX(-24px); opacity: 0; } 25%, 85% { transform: none; opacity: 1; } 100% { transform: translateX(16px); opacity: 0; } }
.ui-toast {
  position: absolute; right: 9%; bottom: 14%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px;
  background: var(--surface-hover); box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--step-small); font-weight: 600;
  animation: toast 6s infinite var(--ease-out);
}
@keyframes toast { 0%, 35% { transform: translateY(14px); opacity: 0; } 45%, 85% { transform: none; opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }

/* Invest: het 100x-blok, aangesloten op onze systemen */
.ui-pill { position: absolute; top: 12%; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 9999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--step-small); font-weight: 600; }
.ui-tile {
  position: relative; z-index: 1;
  width: 132px; height: 132px; border-radius: 22px;
  display: grid; place-items: center;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line), 0 0 60px rgba(255, 255, 255, 0.12); /* taste-skill-ignore: gloed om het blok zoals op slash */
  animation: puls 4s ease-in-out infinite;
}
.ui-tile img { width: 82%; height: auto; }
@keyframes puls { 0%, 100% { box-shadow: inset 0 0 0 1px var(--line), 0 0 40px rgba(255, 255, 255, 0.08); } 50% { box-shadow: inset 0 0 0 1px var(--line), 0 0 80px rgba(255, 255, 255, 0.2); } }
.ui-line { position: absolute; top: 50%; height: 1px; width: 40%; background: var(--line); overflow: hidden; }
.ui-line--l { left: 0; }
.ui-line--r { right: 0; }
.ui-line::after { content: ""; position: absolute; top: 0; width: 30%; height: 100%; background: var(--ink); animation: stroom 2.4s linear infinite; }
.ui-line--l::after { left: -30%; }
.ui-line--r::after { right: -30%; animation-name: stroom-terug; }
@keyframes stroom { to { transform: translateX(440%); } }
@keyframes stroom-terug { to { transform: translateX(-440%); } }

/* ---------- Partners: wie we zoeken en waar je op aansluit ---------- */
.partners {
  display: grid; gap: 56px;
  padding: var(--section) var(--margin) 0;
  max-width: calc(1216px + 2 * var(--margin)); margin: 0 auto;
}
.partners__intro { display: grid; gap: 24px; align-content: start; }
.partners__title { font-size: var(--step-head); max-width: 12ch; }
.partners__lead { max-width: 36ch; color: var(--muted); font-size: var(--step-lead); line-height: 1.3; }
.partners__lists { display: grid; gap: 48px; }
.partners__label { font: 500 var(--step-small) / 1 var(--font-text); color: var(--muted); padding-bottom: 16px; }
.partners__list { list-style: none; margin: 0; padding: 0; }
.partners__list li {
  display: grid; grid-template-columns: clamp(2.25rem, 1.5rem + 2vw, 3.5rem) 1fr; gap: var(--gap);
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.partners__num { font-family: var(--font-display); font-style: italic; font-size: var(--step-statement); line-height: 1; color: var(--muted); }
.partners__list p { font-size: var(--step-body); line-height: 1.45; color: var(--muted); max-width: 44ch; }
.partners__list strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 400; font-size: var(--step-statement); line-height: 1.15; color: var(--ink); }

/* ---------- Founder ---------- */
.founder {
  display: grid; gap: 40px;
  padding: var(--section) var(--margin);
}
.founder__body { display: grid; gap: 28px; justify-items: start; }
.founder__title { font-size: clamp(2.5rem, 1.4rem + 3.2vw, 4.25rem); }
.founder__bio { font-size: var(--step-statement); line-height: 1.25; max-width: 34ch; }
.founder__bio--soft { color: var(--muted); font-size: var(--step-body); line-height: 1.5; }
.founder__portrait {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface);
}
.founder__portrait img { width: 100%; height: 100%; object-fit: cover; filter: blur(18px); transform: scale(1.2); transition: filter 900ms var(--ease-out); }
.founder__portrait .brand-card__eye svg { width: 56px; height: 56px; }
.founder__portrait.is-peeking img { filter: blur(9px); }
.founder__facts { order: 3; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--step-small); color: var(--muted); }

.reveal-button {
  font: 500 var(--step-small) / 1 var(--font-text);
  color: var(--bg); background: var(--ink);
  border: 0; border-radius: 9999px;
  padding: 14px 22px; min-height: 44px;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), opacity 200ms;
}
.reveal-button:hover { opacity: 0.85; }
.reveal-button:active { transform: scale(0.97); }
.reveal-answer { min-height: 1.5em; font-size: var(--step-body); }

/* ---------- Afsluiting: compact, tekst in een geschilderd nachtbeeld, met een hangende 100x-chain ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 27vw, 440px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(40px, 4vw, 64px) var(--margin) 18px;
  background: var(--bg);
}
.site-footer__painting {
  position: absolute; inset: 42% 0 0 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%);
  mask-image: linear-gradient(to bottom, transparent, #000 30%); /* taste-skill-ignore: masker laat het schilderij in de achtergrond overlopen */
}
.site-footer__painting img { width: 100%; height: 100%; object-fit: cover; object-position: 12% 55%; }
.site-footer__content { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: start; padding-right: 22vw; }
.site-footer__title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--step-body); font-weight: 600; }
.site-footer__links a { color: var(--muted); transition: color 200ms; }
.site-footer__links a:hover { color: var(--ink); }

/* De chain hangt aan de bovenrand en zwaait om dat punt (js/main.js) */
.site-footer__chain {
  position: absolute; top: 0; right: 7vw; z-index: 2;
  width: clamp(52px, 7.5vw, 120px);
  transform-origin: 50% 0;
  transform: rotate(var(--zwaai, 0rad));
  cursor: grab;
  touch-action: pan-y;
}
.site-footer__chain img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }

.site-footer__legal {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px;
  font-size: var(--step-small); color: var(--muted);
}

/* ---------- Tablet en groter ---------- */
@media (min-width: 760px) {
  .routes__grid { grid-template-columns: repeat(3, 1fr); }
  .story:not(.is-active) .story__who { opacity: 1; }

  .partners { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .partners__intro { grid-column: 1 / 6; align-self: start; position: sticky; top: calc(var(--header) + 24px); }
  .partners__lists { grid-column: 7 / 13; }

  .founder { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .founder { align-items: start; }
  .founder__facts { order: 0; grid-column: 1 / 3; grid-row: 1; flex-direction: column; }
  .founder__body { grid-column: 3 / 8; grid-row: 1; }
  .founder__portrait { grid-column: 8 / 13; grid-row: 1; }

  .site-footer__content { margin-left: 42%; padding-right: 0; }
  .site-footer__painting { inset: 0; }
  .site-footer__painting img { object-position: 50% 52%; }
}

@media (min-width: 1100px) {
  .hero__title { font-size: clamp(6rem, 1rem + 9.4vw, 11rem); }
}

/* ---------- Beweging ---------- */
/* Delen van een sectie komen na elkaar binnen */
.js [data-enter] { opacity: 0; transform: translateY(24px); }
.js [data-enter].is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.reveal-button.is-denied { animation: nudge 320ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .ui-steps .ui-check, .ui-bar i, .ui-chip--brand, .ui-toast, .ui-tile, .ui-line::after { animation: none; }
  .ui-steps .ui-check { background: var(--ink); color: var(--bg); }
  .story, .story.is-active .story__media img { transition: none; animation: none; }
  html { scroll-behavior: auto; }
  .js [data-enter] { opacity: 1; transform: none; transition: none; }
  .reveal-button.is-denied { animation: none; }
}
