* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(29, 78, 216, 0.07), transparent),
    #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 2rem;
}

main {
  max-width: 36rem;
  text-align: center;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.brand-mark {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.name {
  font-size: 1rem;
  color: #525252;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.125rem;
  color: #3d3d3d;
  margin-bottom: 0.5rem;
}

.availability {
  font-size: 0.875rem;
  color: #404040;
  margin-bottom: 2rem;
}

.availability::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #16a34a;
  margin-right: 0.4rem;
  vertical-align: 0.05em;
}

section {
  text-align: left;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #595959;
  margin-bottom: 0.5rem;
}

p {
  color: #404040;
  margin-bottom: 0.75rem;
}

ul {
  color: #404040;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

.history {
  list-style: none;
  padding: 0;
  border-left: 2px solid #e5e7eb;
  margin-left: 0.5rem;
}

.history li {
  padding-left: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.history li::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  background: #1d4ed8;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.history li:hover::before {
  transform: scale(1.35);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}

.history .period {
  display: block;
  font-size: 0.8rem;
  color: #595959;
}

.expertise {
  list-style: none;
  padding: 0;
  margin-left: 0.5rem;
  border-left: 2px solid #1d4ed8;
}

.expertise li {
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 0.4rem 0 0.4rem 1rem;
  margin: 0;
  color: #404040;
  border-radius: 0 0.25rem 0.25rem 0;
  transition: padding-left 0.2s ease, background-color 0.2s ease;
}

.expertise li:hover {
  padding-left: 1.2rem;
  background-color: rgba(29, 78, 216, 0.05);
}

.notes {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #595959;
}

.notes li {
  padding-left: 1rem;
  margin-bottom: 0.35rem;
  position: relative;
}

.notes li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #1d4ed8;
  font-weight: 700;
}

.projects {
  list-style: none;
  padding: 0;
  overflow: visible;
}

.projects li {
  margin-bottom: 0.65rem;
}

.projects li.has-preview {
  position: relative;
}

.has-preview-popal {
  --preview: url("img/popal.nl-homepage.jpg");
  --ratio: 1193 / 600;
}

.has-preview-verloskundigen {
  --preview: url("img/verloskundigen-aan-t-ij-homepage.jpg");
  --ratio: 1279 / 958;
}

.has-preview-solidsprocessing {
  --preview: url("img/solidsprocessing.nl-hompage.jpg");
  --ratio: 1331 / 958;
}

.has-preview-marketingconnectie {
  --preview: url("img/marketingconnectie.nl-homepage.jpg");
  --ratio: 1899 / 957;
}

section:has(.projects li.has-preview:hover),
section:has(.projects li.has-preview:focus-within) {
  position: relative;
  z-index: 100;
  overflow: visible;
}

.project-desc,
.project-design {
  display: block;
  font-size: 0.875rem;
  color: #595959;
  margin-top: 0.1rem;
}

.project-preview {
  display: none;
}

@media (hover: hover) {
  .projects li.has-preview:hover,
  .projects li.has-preview:focus-within {
    z-index: 101;
  }

  .project-preview {
    display: block;
    position: absolute;
    left: 50%;
    top: calc(100% + 0.35rem);
    z-index: 102;
    width: min(28rem, calc(100vw - 2rem));
    aspect-ratio: var(--ratio);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(0.25rem);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.14));
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: top center;
  }

  .projects li.has-preview:hover .project-preview,
  .projects li.has-preview:focus-within .project-preview {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    background-image: var(--preview);
  }
}

.links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

a {
  color: #1d4ed8;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 calc(100% - 0.1em);
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: color 0.15s ease, background-size 0.25s ease;
}

a:hover {
  color: #1e3a8a;
  background-size: 100% 2px;
}

a:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

footer {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #595959;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(0.4rem);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  main > * {
    animation: fade-up 0.45s ease both;
  }

  main > :nth-child(1) { animation-delay: 0s; }
  main > :nth-child(2) { animation-delay: 0.05s; }
  main > :nth-child(3) { animation-delay: 0.1s; }
  main > :nth-child(4) { animation-delay: 0.15s; }
  main > :nth-child(5) { animation-delay: 0.2s; }
  main > :nth-child(6) { animation-delay: 0.25s; }
  main > :nth-child(7) { animation-delay: 0.3s; }
  main > :nth-child(8) { animation-delay: 0.35s; }
  main > :nth-child(9) { animation-delay: 0.4s; }
}

@media (prefers-reduced-motion: reduce) {
  .expertise li,
  .history li::before,
  a,
  .project-preview {
    transition: none;
  }
}
