body {
  font-family: "Inter", sans-serif;
}

:root {
  --shell-offset: 0px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 1100;
  transform: translateY(-200%);
  background: #020617;
  color: #ffffff;
  padding: 0.9rem 1.1rem;
  border-radius: 0.9rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.18s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

[id] {
  scroll-margin-top: calc(var(--shell-offset) + 1rem);
}

.lang-btn {
  transition: all 0.2s;
  opacity: 0.5;
  font-weight: 700;
  letter-spacing: 1px;
}

body.lang-nl .btn-nl,
body:not(.lang-nl) .btn-en {
  opacity: 1;
  color: #0ea5e9 !important;
  font-weight: 900;
}

.dropdown-enter {
  animation: fadeIn 0.2s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-shell {
  display: block;
  min-height: 135px;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.site-shell.is-scrolled {
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.18);
}

.shell-topbar {
  max-height: 4rem;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition: max-height 0.22s ease, opacity 0.22s ease, transform 0.22s ease,
    border-color 0.22s ease;
}

.shell-header-inner,
.shell-brand-logo,
.shell-mobile-trigger,
.shell-mobile-menu {
  transition: height 0.22s ease, width 0.22s ease, padding 0.22s ease,
    opacity 0.22s ease, transform 0.22s ease;
}

body.mobile-menu-open {
  overflow: hidden;
}

body [lang] {
  display: none !important;
}

body:not(.lang-nl) [lang="en"] {
  display: revert !important;
}

body.lang-nl [lang="nl"] {
  display: revert !important;
}

a:focus-visible,
button:focus-visible,
[role="menuitem"]:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.55);
  outline-offset: 3px;
  border-radius: 12px;
}

.portfolio-band {
  position: relative;
  z-index: 20;
  margin-top: -4rem;
}

.portfolio-band--flat {
  margin-top: 0;
}

.surface-card-block {
  border: 1px solid rgba(100, 116, 139, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 18px 40px rgba(15, 23, 42, 0.09);
}

.surface-subcard {
  border: 1px solid rgba(100, 116, 139, 0.36);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 32%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.99), rgba(255, 255, 255, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 24px rgba(15, 23, 42, 0.08);
}

.surface-panel-accent {
  border: 1px solid rgba(96, 165, 250, 0.48);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.09), transparent 34%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 18px 40px rgba(15, 23, 42, 0.08);
}

.summary-shell {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 2rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 30px 70px -40px rgba(15, 23, 42, 0.35);
  padding: 1.5rem;
}

.summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-kicker {
  color: #2563eb;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.summary-title {
  color: #020617;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 18rem;
}

.summary-copy {
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.65;
  max-width: 43rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.summary-card {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 32%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1.5rem;
  padding: 1rem 1.1rem;
  min-height: 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 30px rgba(15, 23, 42, 0.08);
}

.summary-card-label {
  color: #2563eb;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.summary-card-value {
  color: #020617;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.summary-card-text {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
}

.summary-note {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.95), #ffffff);
  border: 1px solid rgba(96, 165, 250, 0.48);
  border-radius: 1.75rem;
  padding: 1.2rem 1.25rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 16px 30px rgba(15, 23, 42, 0.08);
}

.cv-dropdown-menu {
  width: min(28rem, calc(100vw - 2rem));
}

.cv-menu-panel {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
}

.cv-menu-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), #ffffff);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  color: #0f172a;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease,
    background 0.18s ease;
}

.cv-menu-primary:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.cv-menu-primary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.13), rgba(14, 165, 233, 0.08));
  color: #2563eb;
  flex-shrink: 0;
}

.cv-menu-primary-copy {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cv-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.cv-menu-grid--mobile {
  grid-template-columns: 1fr;
}

.cv-menu-card {
  border-radius: 1.15rem;
  border: 1px solid rgba(96, 165, 250, 0.36);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 28px rgba(15, 23, 42, 0.07);
  padding: 0.9rem;
}

.cv-menu-card-label {
  color: #475569;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.cv-menu-actions {
  display: grid;
  gap: 0.55rem;
}

.cv-menu-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.04), transparent 30%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  color: #0f172a;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

.cv-menu-action:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.cv-menu-action-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cv-menu-action-copy {
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.engineer-card {
  position: relative;
  border-radius: 2.4rem;
  padding: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 24px 48px rgba(15, 23, 42, 0.10);
}

.engineer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.engineer-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.82rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.engineer-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  border: 1px solid rgba(147, 197, 253, 0.55);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 1));
  color: #2563eb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 12px 24px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.engineer-card-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
}

.engineer-card-photo-wrap {
  position: relative;
  flex-shrink: 0;
  padding: 0.55rem;
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
  border: 1px solid rgba(96, 165, 250, 0.34);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.10);
}

.engineer-card-photo {
  display: block;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1rem;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.engineer-card-name {
  color: #020617;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.engineer-card-role {
  margin-top: 0.4rem;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.engineer-card-copy {
  margin-top: 1.45rem;
  color: #475569;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 600;
}

.engineer-card-actions {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.engineer-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.85rem 1rem;
  border-radius: 1.1rem;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.engineer-card-action:hover {
  transform: translateY(-1px);
}

.engineer-card-action--primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.engineer-card-action--primary:hover {
  box-shadow: 0 20px 34px rgba(37, 99, 235, 0.26);
}

.engineer-card-action--secondary {
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 1));
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 22px rgba(15, 23, 42, 0.05);
}

.engineer-card-action--secondary:hover {
  border-color: rgba(191, 219, 254, 0.96);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 1));
}

.engineer-card-tags {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.engineer-card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.95);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 1));
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 20px rgba(15, 23, 42, 0.05);
}

.sidebar-action-card,
.recruiter-sidebar-card {
  border-radius: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 24px 60px rgba(15, 23, 42, 0.10);
}

.sidebar-action-link,
.recruiter-action-link {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 28px rgba(15, 23, 42, 0.07);
}

.sidebar-action-link::before,
.recruiter-action-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.03), rgba(37, 99, 235, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.sidebar-contact-panel,
.recruiter-contact-panel {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.24), transparent 32%),
    linear-gradient(135deg, rgba(2, 6, 23, 1), rgba(15, 23, 42, 0.98));
  box-shadow: 0 28px 64px rgba(2, 6, 23, 0.32);
}

.sidebar-contact-link,
.recruiter-contact-link {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-contact-link::before,
.recruiter-contact-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.36), rgba(255, 255, 255, 0.04), rgba(37, 99, 235, 0.10));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

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

@media (max-width: 767px) {
  #mobileMenu {
    max-height: min(var(--mobile-menu-max-height, calc(100dvh - 8rem)), calc(100dvh - 1rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio-band {
    margin-top: -2.5rem;
  }

  .summary-shell {
    padding: 1.25rem;
    border-radius: 1.5rem;
  }

  .summary-title {
    max-width: 100%;
  }

  .cv-menu-grid {
    grid-template-columns: 1fr;
  }

  .engineer-card {
    border-radius: 2rem;
    padding: 1.4rem;
  }

  .engineer-card-profile {
    align-items: flex-start;
  }

  .engineer-card-photo {
    width: 4rem;
    height: 4rem;
  }

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

@media (max-width: 767px) and (max-height: 520px) {
  .site-shell {
    min-height: 72px;
  }

  .shell-topbar {
    max-height: 0;
    opacity: 0;
    transform: translateY(-0.75rem);
    border-bottom-color: transparent;
    pointer-events: none;
  }

  .shell-header-inner {
    height: 4.5rem !important;
  }

  .shell-brand-logo {
    height: 3rem !important;
  }

  .shell-mobile-trigger {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  #mobileMenu {
    max-height: min(var(--mobile-menu-max-height, calc(100dvh - 5.5rem)), calc(100dvh - 0.75rem));
  }
}
