:root {
  --bg: #1a1a1a;
  --bg-deep: #111111;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.088);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(204, 255, 0, 0.42);
  --text: #f4f4ee;
  --muted: rgba(244, 244, 238, 0.68);
  --soft: rgba(244, 244, 238, 0.48);
  --lime: #ccff00;
  --blue: #00f0ff;
  --lime-soft: rgba(204, 255, 0, 0.13);
  --blue-soft: rgba(0, 240, 255, 0.12);
  --max: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  background: var(--bg-deep);
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(128deg, rgba(204, 255, 0, 0.08), transparent 28%),
    linear-gradient(235deg, rgba(0, 240, 255, 0.075), transparent 32%),
    linear-gradient(180deg, #202020 0%, var(--bg) 42%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: "Outfit", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, black 0%, transparent 76%);
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.08;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
strong {
  color: var(--text);
}

h1,
h2,
h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

h1 span {
  display: block;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

svg {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.page-grid,
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-grid {
  z-index: -4;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(204, 255, 0, 0.08) 50%, transparent calc(50% + 1px)),
    linear-gradient(180deg, transparent 0, transparent calc(54% - 1px), rgba(0, 240, 255, 0.055) 54%, transparent calc(54% + 1px));
  opacity: 0.5;
}

.scanline {
  z-index: 25;
  background: linear-gradient(180deg, transparent, rgba(204, 255, 0, 0.08), transparent);
  height: 38vh;
  opacity: 0.35;
  transform: translateY(-55vh);
  animation: scan 8s var(--ease) infinite;
}

.section-shell,
.site-header,
.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 68px;
  margin-top: 14px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(26, 26, 26, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(17, 17, 17, 0.9);
  border-color: rgba(204, 255, 0, 0.22);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(204, 255, 0, 0.3);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(204, 255, 0, 0.18), rgba(0, 240, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
  color: var(--lime);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.nav-links a,
.header-cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--muted);
  transition:
    transform 0.3s var(--ease),
    color 0.3s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.header-cta {
  justify-self: end;
  border: 1px solid rgba(204, 255, 0, 0.26);
  background: rgba(204, 255, 0, 0.08);
  color: var(--text);
  font-weight: 700;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: rgba(204, 255, 0, 0.52);
  color: var(--lime);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(760px, calc(100dvh - 112px));
  margin-top: 10px;
  padding: clamp(46px, 6vw, 78px) 0 clamp(42px, 5vw, 56px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: url("linkedin-pro-photo-3.png");
  background-position: min(92vw, calc(50% + 360px)) 42%;
  background-size: min(610px, 42vw) auto;
  background-repeat: no-repeat;
  opacity: 0.68;
  filter: saturate(0.86) contrast(1.04);
  mask-image:
    linear-gradient(90deg, transparent 0%, transparent 46%, black 62%, black 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, black 12%, black 86%, transparent 100%);
  mask-composite: intersect;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(26, 26, 26, 0.99) 0%, rgba(26, 26, 26, 0.94) 45%, rgba(26, 26, 26, 0.52) 70%, rgba(26, 26, 26, 0.9) 100%),
    linear-gradient(180deg, rgba(26, 26, 26, 0.12) 0%, rgba(17, 17, 17, 0.78) 100%);
}

.hero-copy {
  width: min(calc(100% - 32px), var(--max));
  max-width: 690px;
  margin-inline: auto;
  margin-left: max(16px, calc((100vw - var(--max)) / 2));
}

.eyebrow,
.mono-label,
.timeline-index,
.tile-number,
.hero-metrics dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--lime);
}

.mono-label,
.hero-metrics dt {
  color: var(--soft);
}

h1 {
  max-width: 10.8ch;
  font-size: clamp(4.9rem, 7.1vw, 6.25rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.91;
}

.hero-intro {
  max-width: 56ch;
  margin-top: 26px;
  color: rgba(244, 244, 238, 0.86);
  font-size: 1.2rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 680px;
  margin-top: 22px;
}

.hero-jump-links a,
.inline-link {
  color: var(--text);
  text-decoration-color: rgba(204, 255, 0, 0.55);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition:
    color 0.28s var(--ease),
    text-decoration-color 0.28s var(--ease);
}

.hero-jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: rgba(244, 244, 238, 0.8);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.hero-jump-links a:hover,
.hero-jump-links a:focus-visible,
.inline-link:hover,
.inline-link:focus-visible {
  color: var(--lime);
  text-decoration-color: var(--lime);
}

.button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.32s var(--ease),
    background-color 0.32s var(--ease),
    border-color 0.32s var(--ease),
    color 0.32s var(--ease);
  will-change: transform;
}

.button-primary {
  background: var(--lime);
  color: #151515;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #d7ff30;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(0, 240, 255, 0.42);
  color: var(--blue);
}

.button:active,
.nav-links a:active,
.header-cta:active {
  transform: translateY(1px) scale(0.985);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 620px;
  margin: 32px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--line);
}

.hero-metrics div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.hero-metrics dd {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 1.34rem;
  font-weight: 800;
}

.marquee {
  display: flex;
  width: 100%;
  margin: 0 auto;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}

.marquee-track {
  display: flex;
  min-width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  min-height: 72px;
  padding-inline: 28px;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.marquee-track span::after {
  width: 7px;
  height: 7px;
  margin-left: 28px;
  border: 1px solid rgba(204, 255, 0, 0.7);
  border-radius: 999px;
  content: "";
}

.story,
.ervaringen,
.split-section,
.skills,
.contact {
  scroll-margin-top: 112px;
  padding: clamp(72px, 9vw, 108px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(200px, 0.5fr);
  gap: clamp(20px, 5vw, 74px);
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.mindset-copy h2,
.contact h2 {
  max-width: 20ch;
  font-size: clamp(3.1rem, 5.6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.95;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.8fr;
  grid-auto-rows: minmax(190px, auto);
  gap: 14px;
}

.story-block,
.skill-tile,
.timeline-item,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.story-block {
  min-height: 260px;
  padding: clamp(22px, 3vw, 32px);
}

.story-block.large {
  grid-row: span 2;
  min-height: 534px;
}

.story-block h3,
.timeline-item h3,
.skill-tile h3 {
  margin-top: 18px;
  font-size: 1.75rem;
  line-height: 1.03;
}

.story-block p,
.timeline-item p,
.skill-tile p,
.mindset-copy p,
.contact-card p {
  margin-top: 16px;
}

.media-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.media-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05);
}

.media-card.tall {
  grid-row: span 2;
}

.media-card.tall img {
  object-position: 50% 34%;
}

.timeline {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: clamp(20px, 5vw, 70px);
  padding: clamp(24px, 4.5vw, 42px);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(204, 255, 0, 0.07), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.timeline-index {
  color: var(--lime);
  text-transform: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(34px, 7vw, 84px);
  align-items: center;
}

.image-stack {
  position: relative;
  min-height: 530px;
}

.image-stack img {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.06);
}

.image-wide {
  width: 82%;
  height: 390px;
}

.image-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 330px;
  box-shadow: 0 0 0 12px var(--bg);
}

.mindset-copy {
  align-self: center;
}

.mindset-copy h2 {
  max-width: 10ch;
}

.clean-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.clean-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: rgba(244, 244, 238, 0.84);
}

.clean-list li span {
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.skill-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.skill-tile {
  min-height: 260px;
  padding: clamp(22px, 3.3vw, 34px);
  transition:
    transform 0.32s var(--ease),
    border-color 0.32s var(--ease),
    background-color 0.32s var(--ease);
}

.skill-tile:nth-child(2),
.skill-tile:nth-child(3) {
  min-height: 220px;
}

.skill-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(204, 255, 0, 0.3);
  background: rgba(255, 255, 255, 0.064);
}

.tile-number {
  color: var(--blue);
}

.contact {
  padding-top: 40px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.8fr);
  gap: clamp(20px, 4vw, 34px);
  align-items: end;
  padding: clamp(22px, 5vw, 48px);
  border-color: rgba(204, 255, 0, 0.2);
  background:
    linear-gradient(135deg, rgba(204, 255, 0, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(0, 240, 255, 0.1), transparent 38%),
    rgba(255, 255, 255, 0.045);
}

.contact-card h2 {
  max-width: 15ch;
}

.contact-card h2 span {
  color: transparent;
  background: linear-gradient(135deg, var(--lime), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.contact-actions .button {
  max-width: 100%;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 44px;
  color: var(--soft);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

.site-footer a {
  color: var(--text);
}

.magnetic {
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
}

.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.62s var(--ease),
    transform 0.62s var(--ease);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.reveal:nth-child(4) {
  transition-delay: 0.18s;
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes scan {
  0% {
    transform: translateY(-55vh);
  }

  45%,
  100% {
    transform: translateY(120vh);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(720px, calc(100dvh - 112px));
    padding-top: 72px;
  }

  .hero::before {
    background-position: calc(100% + 150px) 34%;
    background-size: 560px auto;
    opacity: 0.34;
  }

  h1 {
    max-width: 11.6ch;
    font-size: clamp(3.7rem, 8.5vw, 4.5rem);
  }

  .story-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-block.large,
  .media-card.tall {
    grid-row: auto;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .mindset-copy h2 {
    max-width: none;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 96px;
  }

  .section-shell,
  .site-header,
  .site-footer {
    width: min(calc(100% - 24px), var(--max));
  }

  .site-header {
    top: 10px;
    gap: 12px;
    justify-content: space-between;
    min-height: 62px;
    padding: 9px;
    grid-template-columns: auto auto;
    grid-template-rows: auto;
  }

  .brand-copy {
    display: none;
  }

  .brand {
    gap: 0;
    grid-row: 1;
    grid-column: 1;
  }

  .header-cta {
    padding-inline: 10px;
    font-size: 0.9rem;
    grid-row: 1;
    grid-column: 2;
  }

  .nav-links {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0 2px;
    gap: 4px;
  }

  .nav-links a {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-copy {
    width: auto;
    max-width: none;
    margin-inline: 16px;
    margin-left: 16px;
  }

  .hero::before {
    background-position: calc(100% + 165px) 18%;
    background-size: 520px auto;
    opacity: 0.3;
    mask-image:
      linear-gradient(90deg, transparent 0%, black 28%, black 88%, transparent 100%),
      linear-gradient(180deg, transparent 0%, black 16%, black 90%, transparent 100%);
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 11vw, 4.2rem);
  }

  .hero-actions,
  .contact-actions,
  .hero-jump-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-metrics,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-index {
    font-size: 0.9rem;
  }

  .hero-metrics div {
    padding: 16px;
  }

  .marquee-track span {
    min-height: 58px;
    padding-inline: 20px;
    font-size: 0.74rem;
  }

  .story,
  .ervaringen,
  .split-section,
  .skills,
  .contact {
    scroll-margin-top: 96px;
    padding: 64px 0;
  }

  .section-heading h2,
  .mindset-copy h2,
  .contact h2 {
    font-size: clamp(2.2rem, 8vw, 2.8rem);
    max-width: none;
  }

  .story-block h3,
  .timeline-item h3,
  .skill-tile h3 {
    font-size: 1.45rem;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-block {
    min-height: auto;
  }

  .media-card img {
    min-height: 280px;
  }

  .image-stack {
    display: grid;
    gap: 14px;
    min-height: auto;
  }

  .image-wide,
  .image-small {
    position: static;
    width: 100%;
    height: 260px;
    box-shadow: none;
  }

  .skill-tile {
    min-height: auto;
  }

  .skill-tile:nth-child(2),
  .skill-tile:nth-child(3) {
    min-height: auto;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .site-footer {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .section-shell,
  .site-header,
  .site-footer {
    width: calc(100% - 24px);
    margin-inline: auto;
  }

  .hero-copy {
    width: auto;
    max-width: none;
    margin-inline: 12px;
  }
}

@media (max-width: 420px) {
  h1 {
    width: 100%;
    font-size: clamp(2rem, 9vw, 2.45rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .hero .eyebrow {
    max-width: 28ch;
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .hero-intro {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
