* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --card-w: 560px;
  --gutter: 16px;
  --card-black: #000;
}

html { -webkit-text-size-adjust: 100%; background: #000; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color: #fff;
  min-height: 100vh;
}

/* Wazige, licht verdonkerde achtergrond = de gekozen foto */
.bg {
  position: fixed;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.1);
  transform: scale(1.15);
  z-index: -2;
}
.bg-dim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  z-index: -1;
}

/* Sticky header — even breed als de kaart, faadt gelijk met de foto op */
.stickybar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--card-w);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  background: transparent; /* geen eigen vlak tijdens de fade — geen dubbel blok */
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  opacity: 0;
  will-change: opacity;
  z-index: 10;
}
/* pas als de foto al volledig zwart is: echte achtergrond (zwart-op-zwart, onzichtbaar) */
.stickybar.solid { background: #000; }
.sb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}
.sb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-name {
  font-size: 14px;
  font-weight: 700;
}

.wrap {
  max-width: calc(var(--card-w) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 44px var(--gutter) 16vh;
}

/* De grote rechthoek — zwart, ronde randen, subtiele schaduw.
   Geen overflow:hidden hier, anders werkt de sticky-foto niet. */
.card {
  position: relative;
  background: #000;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Profielfoto: zet vast zodra de kaart de bovenkant van het scherm raakt */
.hero {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  aspect-ratio: 10 / 11;
  overflow: hidden;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 68%; /* bovenkant iets weggesneden */
  transform: translateZ(0);
}
/* Vaste fade: vanaf de naam naar beneden van 0 → 100% zwart */
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0) 48%,
    rgba(0,0,0,0.75) 78%,
    rgba(0,0,0,1) 100%);
}
/* Scroll-gedreven vervaging naar zwart */
.hero-black {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  will-change: opacity;
}

/* Alles wat over de vastgezette foto heen scrollt */
.rest {
  position: relative;
  z-index: 2;
  margin-top: -185px; /* naam/socials een stuk hoger over de foto */
}

.hero-meta {
  text-align: center;
  padding: 0 16px 6px;
}
.hero-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.badge { width: 22px; height: 22px; flex: none; }

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
.socials a:hover { transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; display: block; }

/* Uitgelicht blok: horizontaal, met marge t.o.v. de kaartrand */
.feat {
  position: relative;
  display: block;
  margin: 16px;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  text-decoration: none;
  background:
    radial-gradient(420px 200px at 82% 12%, rgba(88,101,242,0.85), transparent 60%),
    radial-gradient(520px 260px at 12% 95%, rgba(45,50,120,0.9), transparent 65%),
    linear-gradient(135deg, #2a2f52, #10121c);
  transition: transform 0.15s;
}
.feat:hover { transform: scale(1.015); }
.feat-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 60%);
}
.feat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #5865f2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.feat-badge svg { width: 24px; height: 24px; fill: #fff; }
.feat-txt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Zwarte scrollruimte onderin de kaart, geeft de foto tijd om vast te staan
   en netjes af te ronden onderaan */
.card-spacer {
  height: 130px;
  background: #000;
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
}

/* Mobiel: geen blok — de kaart vult het hele scherm */
@media (max-width: 520px) {
  .bg { filter: blur(24px) saturate(1.1); inset: -16px; transform: scale(1.08); }
  .wrap { max-width: none; padding: 0 0 12vh; }
  .card { border-radius: 0; box-shadow: none; }
  .hero { border-top-left-radius: 0; border-top-right-radius: 0; }
  .card-spacer { border-radius: 0; }
  .stickybar {
    width: 100%;
    max-width: none;
    border-radius: 0;
  }
}
