:root {
  --bg: #fffefb;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: rgba(255, 244, 252, 0.98);
  --line: #111111;
  --text: #101010;
  --muted: #51485f;
  --neon-pink: #ff4db8;
  --hot-pink: #ff2d95;
  --neon-cyan: #27e7ff;
  --electric-blue: #45a7ff;
  --neon-lime: #dbff4f;
  --sunset-orange: #ff9a3c;
  --sunset-yellow: #ffd95a;
  --neon-purple: #8f63ff;
  --shadow: 10px 10px 0 #111111;
  --shadow-soft: 6px 6px 0 rgba(17, 17, 17, 0.22);
  --radius: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Source Sans 3", system-ui, sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 77, 184, 0.09) 0, rgba(255, 77, 184, 0.09) 2px, transparent 2px, transparent 110px),
    linear-gradient(0deg, rgba(39, 231, 255, 0.09) 0, rgba(39, 231, 255, 0.09) 2px, transparent 2px, transparent 110px),
    radial-gradient(circle at top right, rgba(255, 154, 60, 0.26), transparent 30%),
    linear-gradient(180deg, #fffefb 0%, #fff6fc 42%, #f5ffff 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  right: -120px;
  top: 90px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    180deg,
    var(--sunset-orange) 0 12px,
    var(--sunset-yellow) 12px 24px,
    var(--hot-pink) 24px 36px,
    var(--neon-cyan) 36px 48px
  );
  border: 5px solid #111111;
  box-shadow: var(--shadow);
  opacity: 0.92;
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(69, 167, 255, 0.08) 100%),
    repeating-linear-gradient(90deg, rgba(17,17,17,0.14) 0 2px, transparent 2px 80px),
    repeating-linear-gradient(0deg, rgba(17,17,17,0.14) 0 2px, transparent 2px 40px);
  transform: perspective(500px) rotateX(70deg);
  transform-origin: bottom;
  z-index: 0;
  pointer-events: none;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; position: relative; z-index: 1; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 254, 251, 0.94);
  border-bottom: 4px solid #111111;
  backdrop-filter: blur(8px);
}
.topbar-inner {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
}
.topbar-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-width: 0;
}
.brand { text-decoration: none; }
.brand-mark {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem; letter-spacing: .08em;
  background: linear-gradient(135deg, var(--sunset-yellow), var(--neon-pink));
  display: inline-block;
  padding: .2rem .55rem;
  border: 3px solid #111111;
  box-shadow: 4px 4px 0 #111111;
  text-transform: uppercase;
}
.eyebrow, .meta, .small, .legend, .pill {
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
}
.meta, .small, .legend { color: var(--muted); }
.nav {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}
.nav a {
  text-decoration: none; padding: .55rem .85rem;
  border: 3px solid #111111; color: var(--text); background: #fff;
  box-shadow: 4px 4px 0 transparent;
  font-weight: 700;
}
.nav a:hover, .nav a:focus-visible, .nav a.active {
  background: linear-gradient(135deg, var(--neon-cyan), var(--electric-blue));
  box-shadow: 4px 4px 0 #111111;
}
.section { padding: 4.5rem 0; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(2rem, 3vw, 3.5rem);
  align-items: center;
  justify-content: space-between;
  padding: 4.8rem 0 3rem;
  max-width: 1280px;
  margin-inline: auto;
}
.eyebrow {
  color: var(--text);
  display: inline-block;
  background: linear-gradient(135deg, var(--neon-pink), var(--sunset-orange));
  padding: .35rem .55rem;
  border: 3px solid #111111;
  box-shadow: 4px 4px 0 #111111;
  margin-bottom: .85rem;
  font-weight: 700;
}
h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 0 1rem;
  line-height: 1.02;
}
h1 {
  font-size: clamp(2.5rem, 4.2vw, 4.6rem);
  max-width: 11ch;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(255, 77, 184, 0.22);
  position: relative;
  z-index: 2;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}
#hero-title {
  font-size: clamp(2.2rem, 3.7vw, 3.9rem);
  max-width: 10ch;
}
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; color: var(--muted); line-height: 1.7; }
.lead { font-size: 1.15rem; max-width: 58ch; color: var(--text); }
.divider {
  width: 140px; height: 10px; margin: 1.3rem 0 1.6rem;
  background: linear-gradient(90deg, var(--hot-pink), var(--sunset-orange), var(--neon-cyan));
  border: 2px solid #111111;
}
.panel {
  background: var(--panel);
  border: 4px solid #111111;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: 1.5rem 0;
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 720px;
}
.hero-copy-panel {
  align-self: center;
  padding-top: clamp(1.5rem, 3vw, 2.75rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.75rem);
  padding-left: clamp(1.5rem, 3vw, 2.75rem);
  padding-right: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 248, 0.96));
  overflow: hidden;
}
.hero-copy-panel > * {
  max-width: min(100%, 58ch);
}
.hero-side {
  padding: 1rem 0 1rem .5rem;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}
.profile-card {
  overflow: hidden;
  background: linear-gradient(180deg, #fffefc, var(--panel-strong));
  transform: rotate(-1deg);
  width: 100%;
}
.profile-media {
  background: linear-gradient(180deg, rgba(255, 77, 184, 0.16), rgba(39, 231, 255, 0.14));
}
.profile-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-bottom: 4px solid #111111;
}
.profile-body { padding: 1.3rem; }
.role {
  color: var(--text);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-lime));
  display: inline-block;
  padding: .3rem .55rem;
  border: 2px solid #111111;
  font-weight: 700;
}
.pills { display: flex; gap: .55rem; flex-wrap: wrap; }
.pill {
  padding: .45rem .8rem;
  background: var(--neon-lime); color: var(--text);
  border: 2px solid #111111; letter-spacing: .08em;
}
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.7rem; }
.button, .text-link {
  text-decoration: none; padding: 1rem 1.35rem;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  border: 3px solid #111111;
  font-weight: 800;
  text-transform: uppercase;
}
.button {
  background: linear-gradient(135deg, var(--hot-pink), var(--sunset-orange));
  color: #111111;
  box-shadow: 6px 6px 0 #111111;
}
.text-link {
  background: #fff;
  color: var(--text);
  box-shadow: 6px 6px 0 var(--neon-cyan);
}
.button:hover, .text-link:hover { transform: translate(-2px, -2px); }
.grid-3, .team-grid {
  display: grid; gap: 1rem;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value-card, .team-card, .cta-block, .audio-card, .org-card, .legend-item {
  padding: 1.25rem;
  background: var(--panel);
  border: 4px solid #111111;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.value-card:nth-child(1), .team-card:nth-child(3n+1) { background: linear-gradient(180deg, #fff9fc, #ffe7f5); }
.value-card:nth-child(2), .team-card:nth-child(3n+2) { background: linear-gradient(180deg, #f6feff, #ddfbff); }
.value-card:nth-child(3), .team-card:nth-child(3n+3) { background: linear-gradient(180deg, #fffdec, #f4ffc4); }
.value-card:hover, .team-card:hover, .cta-block:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow);
}
.value-card, .team-card, .cta-block { transition: transform .2s ease, box-shadow .2s ease; }
.audio-card {
  background: linear-gradient(135deg, #ffffff, #fff0f8 55%, #efffff 100%);
}
.audio-card audio { width: 100%; margin: 1rem 0; }
.audio-card details { margin-top: 1rem; }
.audio-card summary { cursor: pointer; color: var(--neon-purple); font-weight: 800; }
.cta-block {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: linear-gradient(135deg, #fff, #fff3e6 40%, #eefcff 100%);
}
.team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.team-card h3 { margin-bottom: .3rem; }
.team-card .discipline {
  color: var(--text);
  font-size: .94rem;
  display: inline-block;
  background: linear-gradient(135deg, var(--neon-cyan), var(--electric-blue));
  padding: .2rem .45rem;
  border: 2px solid #111111;
  font-weight: 700;
}
.org-shell {
  padding: 1.5rem; margin-top: 1rem;
  background: linear-gradient(180deg, #ffffff, #fff7fc);
  border: 4px solid #111111; border-radius: 0;
  box-shadow: var(--shadow);
}
.org-row { position: relative; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.org-row:last-child { margin-bottom: 0; }
.org-card {
  min-width: 160px; text-align: center; padding: 1rem 1.1rem;
  border: 3px solid #111111; background: #fff;
}
.org-card[data-target] { cursor: pointer; }
.org-card strong { display: block; margin-bottom: .2rem; }
.org-card:not(.regie):not(.structure) { background: linear-gradient(135deg, var(--neon-lime), #f4ffc4); }
.org-card.regie { background: linear-gradient(135deg, var(--hot-pink), var(--sunset-orange)); }
.org-card.structure { background: linear-gradient(135deg, var(--neon-cyan), var(--electric-blue)); }
.org-row.connected::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 3px; height: 14px;
  background: #111111;
}
.org-row.connected::after {
  content: ""; position: absolute; top: -14px; left: 15%; right: 15%; height: 3px;
  background: #111111;
}
.legend-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.legend-item { display: inline-flex; align-items: center; gap: .6rem; padding: .75rem 1rem; background: #fff; }
.dot { width: .75rem; height: .75rem; border-radius: 999px; display: inline-block; border: 2px solid #111111; }
.dot.regie { background: var(--hot-pink); }
.dot.structure { background: var(--electric-blue); }
.dot.specialist { background: var(--neon-lime); }
.footer { padding: 2rem 0 3rem; color: var(--muted); position: relative; z-index: 1; }
.footer-line {
  height: 8px;
  background: linear-gradient(90deg, var(--hot-pink), var(--sunset-orange), var(--neon-cyan), var(--electric-blue));
  border: 2px solid #111111;
  margin-bottom: 1.2rem;
}

/* Skills catalogus */
.skills-hero { padding-bottom: 2rem; }
.skills-section { padding-top: 3rem; }
.section-intro {
  max-width: 68ch;
  margin-bottom: 1.5rem;
  font-size: 1.02rem;
}
.skill-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  max-width: 780px;
}
.skill-stat {
  padding: 1rem;
  background: #fff;
  border: 3px solid #111;
  box-shadow: 5px 5px 0 #111;
}
.skill-stat:nth-child(1) { background: linear-gradient(135deg, #fff, #ffe1f2); }
.skill-stat:nth-child(2) { background: linear-gradient(135deg, #fff, #dffbff); }
.skill-stat:nth-child(3) { background: linear-gradient(135deg, #fff, #f2ffc1); }
.skill-stat strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
}
.skill-stat span {
  display: block;
  margin-top: .45rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.skill-card {
  display: flex;
  flex-direction: column;
}
.skill-card > p { flex: 1; }
.skill-card .pill {
  max-width: 100%;
  overflow-wrap: anywhere;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .66rem;
  text-transform: none;
}
.skills-toolbar {
  padding: 1.25rem;
  margin: 1.5rem 0;
  background: linear-gradient(135deg, #fff, #ecfdff 60%, #fff0f8);
  border: 4px solid #111;
  box-shadow: var(--shadow);
}
.skills-toolbar label {
  display: block;
  margin-bottom: .65rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.skills-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
}
.skills-search-row input,
.skills-search-row button {
  min-height: 52px;
  border: 3px solid #111;
  border-radius: 0;
  font: inherit;
}
.skills-search-row input {
  width: 100%;
  padding: .8rem 1rem;
  background: #fff;
  color: var(--text);
}
.skills-search-row input:focus-visible {
  outline: 4px solid var(--neon-cyan);
  outline-offset: 2px;
}
.skills-search-row button {
  padding: .7rem 1rem;
  background: var(--neon-lime);
  box-shadow: 4px 4px 0 #111;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
}
.skills-result-count {
  margin: .8rem 0 0;
  font-size: .9rem;
  font-weight: 700;
}
.downloaded-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.catalog-skill {
  align-self: start;
  background: rgba(255, 255, 255, .96);
  border: 3px solid #111;
  box-shadow: 4px 4px 0 rgba(17, 17, 17, .2);
}
.catalog-skill:nth-child(4n+2),
.catalog-skill:nth-child(4n+3) { background: rgba(239, 253, 255, .97); }
.catalog-skill[open] {
  background: #fff8fc;
  box-shadow: 5px 5px 0 #111;
}
.catalog-skill summary {
  padding: .9rem 1rem;
  cursor: pointer;
  list-style-position: outside;
}
.catalog-skill summary:focus-visible {
  outline: 4px solid var(--neon-pink);
  outline-offset: 2px;
}
.catalog-skill-name {
  display: block;
  color: var(--text);
  font-weight: 800;
  line-height: 1.3;
}
.catalog-skill-slug {
  display: block;
  margin-top: .32rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  overflow-wrap: anywhere;
}
.catalog-skill-body {
  padding: 0 1rem 1rem;
  border-top: 2px solid #111;
}
.catalog-skill-body p {
  margin: .9rem 0 0;
  color: var(--text);
  font-size: .92rem;
  line-height: 1.55;
}
.catalog-notice,
.skills-empty-state {
  padding: 1.25rem;
  background: #fff;
  border: 3px solid #111;
  box-shadow: 5px 5px 0 #111;
}
.skills-empty-state { text-align: center; }
.skills-empty-state h3 { margin-bottom: .35rem; }
.skills-empty-state p { margin: 0; }
[hidden] { display: none !important; }

@media (min-width: 1440px) {
  .container {
    width: min(1280px, calc(100% - 3rem));
  }
  .hero {
    grid-template-columns: minmax(620px, 1.15fr) minmax(380px, 460px);
    gap: clamp(2.5rem, 4vw, 4.5rem);
    padding-top: 5.4rem;
  }
  .hero-copy-panel {
    padding-right: clamp(3rem, 4vw, 4.25rem);
  }
  #hero-title {
    max-width: 11ch;
  }
  .profile-card {
    max-width: 460px;
  }
}

@media (min-width: 1720px) {
  .container {
    width: min(1360px, calc(100% - 4rem));
  }
  .hero {
    grid-template-columns: minmax(660px, 1.2fr) minmax(400px, 500px);
    gap: clamp(3rem, 4vw, 5rem);
  }
  .hero-copy {
    max-width: 760px;
  }
  .profile-card {
    max-width: 500px;
  }
}

@media (max-width: 920px) {
  body::before {
    width: 220px;
    height: 220px;
    right: -70px;
    top: 110px;
  }
  .topbar-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .topbar-meta {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .nav {
    justify-content: flex-start;
  }
  .hero, .team-grid, .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-copy-panel {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 2rem;
  }
  .hero-side {
    padding: 1.5rem 0 0;
  }
  h1 {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    max-width: 12ch;
  }
  #hero-title {
    font-size: clamp(2rem, 5.2vw, 3.1rem);
    max-width: 11ch;
  }
  .cta-block { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body::before,
  body::after { opacity: 0.45; }
  .container {
    width: min(1120px, calc(100% - 1rem));
  }
  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
  }
  .nav a {
    text-align: center;
  }
  .hero, .team-grid, .grid-3 { grid-template-columns: 1fr; }
  .hero {
    padding-top: 3.25rem;
  }
  .hero-copy-panel {
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1.25rem;
  }
  .profile-body {
    padding: 1rem;
  }
  h1 {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
    max-width: 13ch;
    line-height: 1.05;
  }
  #hero-title {
    font-size: clamp(1.75rem, 8.6vw, 2.35rem);
    max-width: 12ch;
  }
  .hero-side {
    padding: .75rem 0 0;
  }
  .cta-row {
    flex-direction: column;
  }
  .button,
  .text-link {
    width: 100%;
    text-align: center;
  }
  .section { padding: 3.5rem 0; }
  .org-row.connected::after { display: none; }
  .org-row.connected::before { display: none; }
  .org-row { justify-content: stretch; }
  .org-card { width: 100%; }
  .skill-stats,
  .downloaded-skills-grid { grid-template-columns: 1fr; }
  .skills-search-row { grid-template-columns: 1fr; }
  .skills-search-row button { width: 100%; }
}
