/* === Fonts === */
@font-face {
  font-family: "Unageo";
  src: url("../fonts/Unageo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Unageo";
  src: url("../fonts/Unageo-Regular-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Unageo";
  src: url("../fonts/Unageo-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Unageo";
  src: url("../fonts/Unageo-SemiBold-Italic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: "Unageo";
  src: url("../fonts/Unageo-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Random Wednesday";
  src: url("/fonts/Random Wednesday.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* === Base styles === */
html,
body {
  margin: 0;
  padding: 0;
  font-family: "Unageo", sans-serif;
  scroll-behavior: smooth;
  height: 100%;
  overflow: auto;
  background: #fff;
  color: #000;
}

.background-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.95) 15%,
    rgba(255, 255, 255, 0.85) 30%,
    rgba(255, 255, 255, 0.4) 55%,
    rgba(255, 255, 255, 0.1) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.background-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-auto-rows: 100px;
  gap: 1px;
  background-color: rgba(0, 85, 170, 0.15); /* donkerder lijnen tussen vakken */
  pointer-events: none;
}

.grid-word {
  background-color: #ffffff; /* Witte blokjes zodat lijnen eromheen zichtbaar zijn */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(0, 85, 170, 0.35);
  user-select: none;
  pointer-events: none;

  /* interne rasterlijnen */
  background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 19px,
      rgba(0, 85, 170, 0.1) 19px,
      transparent 20px
    ),
    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(0, 85, 170, 0.1) 19px, transparent 20px);
  background-size: 20px 20px;
}

.white-overlay {
  position: fixed;
  inset: 0;
  z-index: 1; /* boven .background-grid (1), onder content (3) */
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 20%,
    rgba(255, 255, 255, 0.9) 30%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

/* === Noise overlay === */
.noise-layer {
  position: fixed;
  inset: 0;
  background-image: url("textures/noise.jpg");
  background-repeat: repeat;
  background-size: 75px 75px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 99;
}

/* === Scroll container === */
.scroll-container {
  position: relative;
  z-index: 3;
  height: 100vh;
  overflow-y: auto; /* <== deze moet "auto" zijn, niet "hidden"! */
  scroll-snap-type: y mandatory;
}

/* === Section screens === */
.screen {
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
  background-color: transparent;
}

/* === Content stacking === */
.content,
.white-panel {
  position: relative;
  z-index: 3;
}

/* === Headline & LEGAL block === */
.headline {
  margin-top: -60px;
  font-size: 140px;
  font-weight: 800;
  line-height: 0.7;
  text-align: center;
  position: relative;
  z-index: 4;
  color: #000;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.highlight {
  position: relative;
  display: inline-block;
  padding: 10px;
  margin-right: 10px;
  z-index: 5;
  overflow: visible;
}
.highlight::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 20px;
  background-image: url("textures/bgblock1.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 90%;
  border-radius: 10px;
  pointer-events: none;
  z-index: 0;
}
.highlight span {
  position: relative;
  z-index: 1;
  color: #000;
  padding: 40px 80px;
  display: inline-block;
  line-height: 1;
}

/* === Intro text === */
.intro-text {
  max-width: 600px;
  width: 90%;
  font-size: 20px;
  margin-top: 30px;
  font-weight: 100;
  text-align: center;
  line-height: 1.6em;
}

/* === Navigation dots === */
.nav {
  position: fixed;
  top: 50%;
  right: 20px;
  margin-left: -30px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 4;
}
.nav-dot {
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
  transform-origin: center;
}
.nav-dot.active,
.nav-dot:hover {
  transform: scale(1.5);
  background: #555;
}

/* === Scroll indicator === */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 3;
  animation: pulse 2s infinite;
}
.scroll-text {
  font-size: 18px;
  font-weight: 500;
  color: #000;
  margin-bottom: 6px;
}
.scroll-arrow {
  font-size: 24px;
  color: #000;
  animation: bounce 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

/* === Fixed face image === */
.face-img {
  position: fixed;
  bottom: 0;
  right: 0;
  margin-bottom: -15px;
  width: 35vw;
  max-width: 1000px;
  border-radius: 8px;
  animation: float 6s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(10px, -10px) scale(1.02);
  }
}

/* === Responsive tweaks === */
@media (max-width: 768px) {
  .headline {
    font-size: 60px;
  }
  .intro-text {
    width: 90%;
  }
  .filter-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
  .tag {
    font-size: 12px;
    padding: 8px 12px;
  }
  .tag-tooltip {
    font-size: 12px;
  }
  .face-img {
    bottom: 10px;
    right: 10px;
    width: 35vw;
    max-width: 200px;
  }
  .nav {
    right: 10px;
    gap: 10px;
  }
  .nav-dot {
    width: 10px;
    height: 10px;
  }
  .nav-dot.active,
  .nav-dot:hover {
    transform: scale(1.3);
  }
}

/* === Contact drawer === */
.contact-drawer {
  position: fixed;
  top: 40%;
  left: 0;
  transform: translateY(-50%);
  width: 72px; /* only the handle area is interactive */
  z-index: 12;
  pointer-events: auto;
  overflow: visible;
}

.contact-panel {
  position: absolute;
  left: 72px;
  top: 0;
  pointer-events: auto;
  background: #fff;
  padding: 24px 24px 20px;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border-left: 6px solid #000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateX(-110%);
  transition: transform 0.35s ease;
}
.contact-panel h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}
.contact-tagline {
  margin: 0 0 6px;
  font-size: 14px;
  color: #555;
}

.contact-handle {
  width: 72px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}
.contact-drawer:hover .contact-panel,
.contact-drawer:focus-within .contact-panel {
  transform: translateX(0);
}
.contact-drawer:hover .contact-handle,
.contact-drawer:focus-within .contact-handle {
  background: #444;
  transform: translateX(2px);
}

/* === Contact form === */
.contact-form-container {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  position: static;
  width: 100%;
  max-width: none;
}
.contact-form-container form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form-container .form-group {
  margin: 0;
}
.contact-form-container input,
.contact-form-container textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #d5d5d5;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  background: #f9f9f9;
}
.contact-form-container textarea {
  min-height: 120px;
}
.contact-form-container button {
  background: #000;
  color: #fff;
  border: none;
  padding: 13px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-form-container button:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.form-response {
  font-size: 13px;
  margin-top: 4px;
}
.form-response.success {
  color: green;
}
.form-response.error {
  color: red;
}

@media (max-width: 768px) {
  .contact-drawer {
    width: 60px;
  }
  .contact-panel {
    left: 60px;
    padding: 18px 18px 14px;
  }
  .contact-handle {
    width: 60px;
    font-size: 12px;
  }
}

.typing-cursor {
  border-right: 2px solid #000;
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: #000;
  }
}

/* ——— Dynamic‑word slide‑in animation ——— */
.dynamic-wrapper {
  display: inline-block;
  overflow: hidden;
  margin-bottom: -9px; /* bestaand */
  transition: width 0.5s ease-out;
}

.dynamic-wrapper .dynamic-word {
  display: inline-block;
  transform: translateY(50%);
  opacity: 0;
  animation: slideIn 0.5s ease-out forwards; /* duur 0.5s ipv 0.3s */
  white-space: nowrap;
  height: 1.6em;
}

@keyframes slideIn {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  60% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
/* echt forceren met aparte selector + !important */
.email-svg {
  width: 32px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
}

.second-screen {
  background-color: #79aaed;
  position: relative;
  z-index: 0;
}
.buttons-panel {
  display: flex;
  flex-direction: column;
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 24px;
}
/* Horizontale filter boven de knop-grid */
.filter-container {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: -16px;
  margin-left: 20px;
  padding-top: 30px;
}
.filter-btn {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 4px 2px;
  font-size: 10px;
  cursor: pointer;
  color: #333;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.filter-btn.active {
  opacity: 1;
}
.filter-marker {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.filter-company .filter-marker {
  background: #f28b82;
}
.filter-legal .filter-marker {
  background: #aecbfa;
}
.filter-work .filter-marker {
  background: #ffd54f;
}

/* Buttons-container en grid */
.buttons-container {
  flex: 0 0 50%;
  max-width: 100%;
  display: flex;
  padding-right: 24px;
  padding-left: 22px;
}

/* Tekstsectie links uitgelijnd */
.text-container {
  flex: 0 0 50%;
  max-width: 50%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: -30px;
  margin-left: 5px;
}

.text-section {
  text-align: left;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  padding-right: 44px;
  margin-top: -20px;
  margin-left: -20px;
}

/* === Grid voor sectie 2 (zelfde structuur als .background-grid) === */
.section2-grid {
  position: absolute;
  inset: 0;
  z-index: 1; /* onder de white-panel (z‑index:3) */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-auto-rows: 100px;
  gap: 1px;
  background-color: #a0c4f4;
  pointer-events: none;
}

/* Override van de .grid-word in sectie 2 */
.section2-grid .grid-word {
  /* match de sectie‑achtergrond zodat alleen de lijnen opvallen */
  background-color: #79aaed;
  /* tekst in wit */
  color: rgba(255, 255, 255, 0.3);
  /* witte, fijne rasterlijnen */
  background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.08) 18px,
      transparent 20px
    ),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255, 255, 255, 0.08) 18px, transparent 20px);
  background-size: 20px 20px;
}

/* === Radiale gradient in sectie 2 boven het grid, onder de white-panel === */
.second-screen {
  position: relative; /* zorg dat de pseudo‑elementen hierop worden gepositioneerd */
  z-index: 0;
}

.second-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2; /* boven de grid (1), onder de white-panel (3) */
  pointer-events: none;
  background: radial-gradient(circle at center, #79aaed 0%, rgba(121, 170, 237, 0) 100%);
}

/* === White panel (second screen) === */
.white-panel {
  background: transparent;
  width: 90%;
  max-width: 800px;
  padding: 40px;
  border-radius: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 500px;
  max-height: 550px;
  height: 60vh;
  position: relative;

  /* Nieuwe penseel-rand */
  background-image: url("textures/bgpainttt.png");
  background-size: 110% 115%;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
}

.white-panel .panel-heading {
  font-size: 42px;
  padding-bottom: 30px;
  margin-top: 10px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0px;
  width: 100%;
  color: #000;
}

.panel-inner {
  display: flex;
  width: 100%;
  max-width: 1000px;
  padding-top: 10px;
}

/* Buttons-container fixed half width */
* Buttons-container maximaal 50% van wit paneel,
met padding naar tekst */ .buttons-container {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  padding-right: 24px;
}
/* Tekstoppervlak flex */
.text-container {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 20px;
  padding-top: 30px;
}
/* Intro-heading bovenaan het tekstvak */
.section2-intro {
  font-size: 14px;
  font-weight: 800;
  color: #000;
  line-height: 1.4;
}

/* Grid voor alle knoppen */
.all-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  align-content: flex-start;
}
.choice-btn {
  padding: 8px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid;
  cursor: pointer;
  text-transform: uppercase;
  min-height: 40px;
  max-height: 40px;
  min-width: 40px;
  max-width: 220px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  transform-origin: center center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
/* Actieve knop iets groter */
.choice-btn.active {
  transform: scale(1.2);
}
.choice-btn.active:hover {
  transform: scale(1.2);
}
/* Kleuren per categorie */
.choice-btn.category-company {
  background: #f28b82;
  border-color: #f28b82;
  color: #fff;
}
.choice-btn.category-legal {
  background: #aecbfa;
  border-color: #aecbfa;
  color: #fff;
}
.choice-btn.category-work {
  background: #ffe082;
  border-color: #ffe082;
  color: #333;
}
/* Hover-states */
.choice-btn.category-company:hover:not(.active) {
  background: #e06666;
  border-color: #e06666;
  transform: scale(1.02);
}
.choice-btn.category-legal:hover:not(.active) {
  background: #8ab4f8;
  border-color: #8ab4f8;
  transform: scale(1.02);
}
.choice-btn.category-work:hover:not(.active) {
  background: #ffd54f;
  border-color: #ffd54f;
  transform: scale(1.02);
}
.choice-btn.neighbor-left,
.choice-btn.neighbor-right,
.choice-btn.neighbor-up,
.choice-btn.neighbor-down {
  transform: scale(0.9);
  font-size: 9px; /* 👈 kleiner lettertype voor de buren */
  opacity: 0.9;
}
/* === Section 3 === */
.third-screen {
  background-color: #fff;
  background: radial-gradient(circle at center, #ffffff 0%, #f7f7f7 100%);
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.philosophy-content {
  max-width: 800px;
  margin: auto;
  color: #222;
}

.quote-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.thinker-img {
  max-width: 200px;
  width: 100%;
  filter: grayscale(100%) contrast(1.2);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.quote-block blockquote {
  font-size: 24px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

.quote-block cite {
  font-size: 18px;
  color: #666;
  display: block;
  margin-top: 10px;
}

/* Scroll-indicator specifiek voor Section 2 */
.scroll-indicator-section2 {
  margin-top: 40px;
  animation: pulse 2s infinite;
}

.scroll-indicator-section2 .scroll-text {
  font-size: 18px;
  font-weight: 500;
  color: #000;
  margin-bottom: 6px;
}

.scroll-indicator-section2 .scroll-arrow {
  font-size: 24px;
  color: #000;
  animation: bounce 2s infinite;
}

.third-screen {
  position: relative;
  background: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  z-index: 2;
  overflow: hidden;
}
.philosophy-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.philosophy-content blockquote {
  font-size: 28px;
  line-height: 1.6;
  font-weight: 300;
  font-style: italic;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}
.philosophy-content cite {
  display: block;
  margin-top: 20px;
  font-size: 16px;
  font-style: normal;
  color: #aaa;
}

/* === Section 3: grid overlay on black with white text and visible gaps === */
.section3-grid {
  position: absolute;
  inset: 0;
  z-index: 1; /* onder content (z-index:2), boven achtergrond */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-auto-rows: 100px;
  gap: 1px; /* lijntje tussen de blokken */
  pointer-events: none;

  /* kleur van de lijntjes tussen de blokken */
  background-color: #222;
}
.section3-grid .grid-word {
  /* blok-achtergrond zwart zodat het contrast met de lijntjes duidelijk is */
  background-color: #000;
  /* woorden in wit */
  color: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 400;
  user-select: none;

  /* interne rasterlijntjes (optioneel) */
  background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 19px,
      rgba(255, 255, 255, 0.1) 19px,
      transparent 20px
    ),
    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255, 255, 255, 0.1) 19px, transparent 20px);
  background-size: 20px 20px;
}

.section3-inner {
  display: flex;
  width: 100%;
  max-width: 1000px;
  text-align-last: left;
}

.section3-panel {
  background: transparent;
  width: 90%;
  max-width: 800px;
  padding: 40px;
  border-radius: 12px;
  z-index: 3;
  position: relative;

  /* nieuwe background image voor section 3 */
  background-image: url("textures/bgpainttt2.png");
  background-size: 110% 115%;
  background-repeat: no-repeat;
  background-position: center;
}

/* Top-nav container */
.top-nav {
  position: absolute;
  top: 30px;
  padding: 0 16px;
  left: 0;
  width: 100%;
  text-transform: uppercase;
  font-size: 12px;
  display: flex;
  justify-content: center; /* horizontaal centreren */
  align-items: center; /* verticaal centreren */
  z-index: 3;
  animation: pulse 2s infinite;
}

/* Top-nav link styling */
/* === Top-nav container === */
.top-nav {
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center; /* centreert horizontaal */
  align-items: center; /* centreert verticaal */
  text-transform: uppercase;
  font-size: 12px;
  z-index: 3;
  animation: pulse 2s infinite;
}

/* === Link-styling met symmetrische padding en scheiding === */
.top-nav a {
  /* zorgt voor gelijke ruimte vóór en na de tekst */
  padding: 0 16px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #000 !important;
  text-decoration: none;
  transition: transform 0.2s ease;
}

/* voeg een verticale lijn toe vóór elke link behalve de eerste */
.top-nav a + a {
  border-left: 1px solid #000;
}

/* lichte schaalvergroting bij hover */
.top-nav a:hover {
  transform: scale(1.1);
}

/* bezoek/focus/active links blijven zwart */
.top-nav a:visited,
.top-nav a:focus,
.top-nav a:active {
  color: #000 !important;
}

/* === Sectie 3: 30/70-split met split-panel === */
.split-panel {
  display: flex;
  margin-top: -20px;
  width: 100%;
  gap: 20px;
  align-items: stretch; /* zorgt dat beide zijden even hoog zijn */
}
.split-left {
  flex: 0 0 30%;
  padding: 20px;
  box-sizing: border-box;
  padding-top: 10px;
}
.split-right {
  flex: 0 0 70%;
  padding: 20px;
  color: black;
  border-radius: 6px;
  box-sizing: border-box;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
  margin-top: -16px;
  position: relative;
  overflow: hidden; /* ⬅️ zorgt dat niets buiten het vlak zichtbaar is */
}

.split-text-animated {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: slideUpReveal 0.6s ease-out forwards;
  animation-delay: 0.2s;
  mask-image: linear-gradient(to top, transparent 0%, black 20%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 20%);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

/* Keyframe voor omhoogkomen */
@keyframes slideUpReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.split-btn {
  flex: 1; /* maakt ze automatisch even hoog binnen de container */
  width: 100%;
  margin-top: 12px;
  padding: 30px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;

  /* Alleen afbeelding als achtergrond */
  background-image: url("textures/bgblock1.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  background-color: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
  color: #fff;
  cursor: pointer;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.split-btn:hover {
  transform: scale(1.03);
  filter: brightness(0.9);
}
.split-btn.active {
  transform: scale(1.15);
  filter: brightness(1.1);
  z-index: 2; /* zet 'm optisch boven de rest */
}
/* Alleen voor tekst in het rechtervlak van Section 3 */
#display-text {
  text-align: left;
}

/* Headings zoals “Clarity” of “Transparency” in de content */
#display-text h3 {
  text-align: left;
  margin-right: -40px;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 800;
  color: #000;
}

#section3HeadingLine {
  font-size: 34px;
  font-weight: 800;
  margin-top: 12px;
  display: inline-block;
  line-height: 1.4;
}

/* Smooth transition for Section 2 buttons */
.choice-btn {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    max-height 0.3s ease,
    margin 0.3s ease,
    left 0.3s ease,
    top 0.3s ease,
    width 0.3s ease,
    height 0.3s ease,
    font-size 0.3s ease;
  will-change: opacity, transform, max-height;
}

.choice-btn.animating-hide {
  opacity: 0;
  transform: scale(0.95);
  max-height: 0;
  margin: 0;
  pointer-events: none;
}

.choice-btn.animating-show {
  opacity: 1;
  transform: scale(1);
  max-height: 40px;
  margin: 2px;
  pointer-events: auto;
}

/* === Section 4: achtergrond-grid === */
.section4-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-auto-rows: 100px;
  gap: 1px;
  background-color: rgba(0, 85, 170, 0.15);
  pointer-events: none;
}

/* Content en kop */
.content-fourth {
  position: relative;
  z-index: 3;
  text-align: center;
}
.fourth-heading {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 40px;
  color: #000;
}

/* Timeline balk */
.timeline {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-50%);
}

/* Drukpunten en labels */
.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.timeline-point {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #fff;
  border: 4px solid #0055aa;
}
.timeline-label {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}

/* Tooltip via CSS */
.timeline-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  font-size: 12px;
  z-index: 5;
}
.timeline-item:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ===== Section 4 timeline updates ===== */
.screen.fourth-screen .timeline {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%; /* bijna volle breedte */
  margin: 0 auto; /* gecentreerd in het scherm */
}

.screen.fourth-screen .timeline::before {
  content: "";
  position: absolute;
  top: 50%; /* precies midden in de punten */
  left: 5%; /* sluit aan bij de 90% breedte */
  right: 5%;
  height: 4px;
  background-color: rgba(0, 85, 170, 0.2);
  transform: translateY(-50%);
  z-index: 2;
}

.screen.fourth-screen .timeline-point {
  width: 24px; /* iets groter voor meer impact */
  height: 24px;
  border-radius: 50%;
  background-color: #0055aa; /* massief blauwe kleur */
  border: none; /* geen wit gat of rand meer */
  z-index: 3; /* boven de lijn zodat de lijn erdoorheen lijkt te lopen */
}
/* ===== Opening page email icon button ===== */
.contact-email-btn {
  position: absolute;
  top: 28px;
  right: 80px; /* leaves space for nav dots */
  z-index: 6;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.92);
  color: #000;
  text-decoration: none;

  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);

  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-email-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: #fff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16);
}

@media (max-width: 768px) {
  .contact-email-btn {
    right: 60px;
    top: 18px;
    width: 40px;
    height: 40px;
  }
}

/* ===== Section 4 contact panel layout ===== */
.contact-white-panel {
  height: auto;
  max-height: none;
  min-height: 0;
}

.contact-panel-inner {
  align-items: flex-start;
  gap: 26px;
}

.contact-copy {
  flex: 0 0 45%;
  max-width: 45%;
  text-align: left;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  padding-left: 30px;
}

.contact-copy ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.contact-form-wrap {
  flex: 0 0 55%;
  max-width: 45%;
}

@media (max-width: 900px) {
  .contact-panel-inner {
    flex-direction: column;
  }
  .contact-copy,
  .contact-form-wrap {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Safety: ensure the old drawer never appears */
#contactDrawer { display: none !important; }

/* Small fixed left contact button */
.contact-side-btn {
  position: fixed;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  z-index: 12;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.92);
  color: #000;
  text-decoration: none;

  border: 2px solid rgb(0, 0, 0);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);

  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-side-btn:hover {
  transform: translateY(-50%) translateX(2px) scale(1.03);
  background: #fff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16);
}

@media (max-width: 768px) {
  .contact-side-btn {
    left: 10px;
    width: 40px;
    height: 40px;
  }
}
/* ===== Glow behind top navigation (like the white radial you have in Section 1) ===== */
.first-screen .top-nav {
  /* keep existing positioning; this just ensures the glow layers correctly */
  z-index: 6;
  isolation: isolate; /* makes ::before sit behind the links reliably */
}

.first-screen .top-nav::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: 560px;
  height: 120px;
  border-radius: 999px;

  /* soft white radial glow */
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.75) 28%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 72%
  );

  z-index: -1;         /* behind the links, inside the nav */
  pointer-events: none; /* never blocks clicks */
}

@media (max-width: 768px) {
  .first-screen .top-nav::before {
    width: 30px;
    height: 30px;
  }
}

/* ===== Minimal, clean contact form (font + sizing + button) ===== */
.contact-form-container,
.contact-form-wrap {
  font-family: inherit; /* uses Unageo */
}

/* layout + spacing */
.contact-form-container form,
.contact-form-wrap form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form-container .form-group,
.contact-form-wrap .form-group {
  margin: 0;
}

/* inputs */
.contact-form-container input,
.contact-form-container textarea,
.contact-form-wrap input,
.contact-form-wrap textarea {
  width: 100%;
  box-sizing: border-box;

  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;

  padding: 14px 16px;
  border-radius: 12px;

  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.78);

  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form-container textarea,
.contact-form-wrap textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

.contact-form-container input::placeholder,
.contact-form-container textarea::placeholder,
.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder {
  color: rgba(0, 0, 0, 0.55);
  font-weight: 600;
}

/* focus state (clean + premium) */
.contact-form-container input:focus,
.contact-form-container textarea:focus,
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
  outline: none;
  border-color: #000;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

/* minimalist button */
.contact-form-container button,
.contact-form-wrap button {
  appearance: none;
  -webkit-appearance: none;

  align-self: flex-start;
  cursor: pointer;

  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;

  padding: 12px 16px;
  border-radius: 999px;

  background: transparent;
  color: #000;
  border: 2px solid #000;

  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form-container button:hover,
.contact-form-wrap button:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.contact-form-container button:active,
.contact-form-wrap button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* response text */
.contact-form-container .form-response,
.contact-form-wrap .form-response {
  font-size: 13px;
  margin-top: 4px;
}
.contact-form-container .form-response.success,
.contact-form-wrap .form-response.success {
  color: #0a7a2f;
}
.contact-form-container .form-response.error,
.contact-form-wrap .form-response.error {
  color: #b00020;
}

@media (max-width: 768px) {
  .contact-form-container input,
  .contact-form-container textarea,
  .contact-form-wrap input,
  .contact-form-wrap textarea {
    font-size: 14px;
    padding: 13px 14px;
  }
  .contact-form-container button,
  .contact-form-wrap button {
    font-size: 13px;
    padding: 11px 14px;
  }
}
/* Cover contact button image */
.contact-email-btn .contact-email-img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}
/* Left contact button: drops in, bounces, leaves, repeats (image only, no grey background) */
.contact-side-btn {
  position: fixed;
  top: 50%;
  left: 14px;
  z-index: 12;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  will-change: transform, opacity;
  animation: contactDropCycle 10.5s cubic-bezier(0.22, 0.9, 0.25, 1) infinite;
}

.contact-side-btn:hover {
  animation-play-state: paused;
  transform: translateY(-50%) translateX(0) scale(1.04);
}

.contact-side-btn:active {
  transform: translateY(-50%) translateX(0) scale(0.98);
}

.contact-side-img {
  width: 84px;
  height: 84px;
  display: block;
  object-fit: contain;

  /* removes the “greyish background/halo” */
  filter: none !important;
  background: transparent !important;
}

@media (max-width: 768px) {
  .contact-side-img {
    width: 80px;
    height: 80px;
  }
}

/* Drop in from top-left -> bounce -> chill -> slide out left -> wait -> repeat */
@keyframes contactDropCycle {
  /* off-screen (top-left) */
  0% {
    opacity: 0;
    transform: translateY(calc(-50% - 6px)) translateX(-160%);
  }

  /* falling in */
  10% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  /* settle */
  22% {
    transform: translateY(-50%) translateX(0);
  }

  /* stay visible for a while */
  58% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  /* exit to the left */
  70% {
    opacity: 1;
    transform: translateY(-50%) translateX(-160%);
  }

  /* off-screen pause */
  88% {
    opacity: 0;
    transform: translateY(-50%) translateX(-160%);
  }

  /* reset above (still off-screen), so next loop “drops in” again */
  100% {
    opacity: 0;
    transform: translateY(calc(-50% - 240px)) translateX(-160%);
  }
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {
  .contact-side-btn {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(-50%) translateX(0) !important;
  }
}