/* hero — gigantische kapitalen, pill + avatarlink, meeschalende videokaart */
.hero {
  --hero-h1: clamp(3.05rem, 10.6vw, 9.55rem);
  --hero-p: 0;                 /* scrollvoortgang videokaart, gezet door js */
  --hero-s0: .84;              /* beginschaal videokaart */
  position: relative; text-align: center;
  padding-top: clamp(108px, 8.6vw, 124px); padding-bottom: clamp(56px, 6vw, 96px);
  isolation: isolate;
}
/* zacht licht achter de kop */
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 40px;
  width: min(1100px, 120vw); height: 620px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 45%, rgba(233,232,227,.055), transparent 70%);
}

/* kop */
.hero .hero__kop {
  font-size: var(--hero-h1); line-height: .8; letter-spacing: -.032em;
  text-wrap: nowrap; margin-inline: -2vw;
}
.hero .hero__regel { display: block; overflow: hidden; padding-block: .045em; margin-block: -.045em; }
.hero .hero__regel > span {
  display: block;
  background: linear-gradient(180deg, #F4F3EF 0%, var(--krijt) 55%, #D9D8D2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hero-regel 1.1s var(--ease) both;
}
.hero .hero__regel:nth-child(2) > span { animation-delay: .09s; }
.hero .hero__regel:nth-child(3) > span { animation-delay: .18s; }
@keyframes hero-regel { from { transform: translateY(104%); } to { transform: none; } }

.hero .hero__alinea,
.hero .hero__acties { animation: hero-op .9s var(--ease) both; }
.hero .hero__alinea { animation-delay: .38s; }
.hero .hero__acties { animation-delay: .48s; }
@keyframes hero-op { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* alinea */
.hero .hero__alinea {
  max-width: 612px; margin: clamp(30px, 3.3vw, 46px) auto 0;
  color: var(--grijs-licht); font-size: 16.5px; line-height: 1.58; letter-spacing: -.008em;
  text-wrap: pretty;
}
.hero .hero__alinea strong { color: var(--krijt); font-weight: 700; }

/* acties */
.hero .hero__acties {
  margin-top: 36px; display: flex; justify-content: center; align-items: center; gap: 18px;
}
.hero .hero__knop { height: 46px; padding-inline: 28px; box-shadow: 0 8px 30px -10px rgba(233,232,227,.35); }
.hero .hero__wie {
  display: inline-flex; align-items: center; gap: 13px; padding: 3px 14px 3px 3px;
  border-radius: 999px; color: var(--wit); font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  transition: background-color .3s var(--ease);
}
.hero .hero__wie:hover { background: rgba(233,232,227,.07); }
.hero .hero__wie:focus-visible { outline-offset: 2px; border-radius: 999px; }
.hero .hero__avatar {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; box-shadow: 0 0 0 1px rgba(233,232,227,.18);
}
.hero .hero__avatar-beeld { position: absolute; inset: 0; border-radius: 50%; }
.hero .hero__avatar-beeld::after { display: none; }
.hero .hero__avatar-play {
  position: relative; width: 20px; height: 20px; padding: 5px 4px 5px 6px; border-radius: 50%;
  color: var(--zwart); background: rgba(233,232,227,.92);
  transition: transform .35s var(--ease);
}
.hero .hero__wie:hover .hero__avatar-play { transform: scale(1.15); }
.hero .hero__wie-tekst { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.hero .hero__wie:hover .hero__wie-tekst { background-size: 100% 1px; }

/* videokaart */
.hero .hero__media { width: min(1240px, calc(100% - 2 * var(--zij))); margin: clamp(64px, 5.6vw, 84px) auto 0; }
.hero .hero__schaal {
  transform: scale(calc(var(--hero-s0) + (1 - var(--hero-s0)) * var(--hero-p)));
  transform-origin: 50% 0; will-change: transform;
}
.hero .hero__video {
  aspect-ratio: 16 / 9;
  border-radius: calc(30px - 10px * var(--hero-p));
  box-shadow: 0 0 0 1px rgba(233,232,227,.08) inset, 0 40px 120px -30px rgba(0,0,0,.9), 0 0 90px -20px rgba(233,232,227,.06);
}
.hero .hero__video::after { left: 22px; bottom: 18px; }
.hero .hero__play {
  position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px;
  display: grid; place-items: center; border-radius: 50%; color: var(--krijt);
  background: rgba(24,24,24,.45); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hero .hero__play svg { width: 26px; height: 26px; margin-left: 3px; }
.hero .hero__play::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(233,232,227,.28); animation: hero-puls 2.6s var(--ease) infinite;
}
@keyframes hero-puls { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

/* schermafdruk: eindtoestand */
.is-shot .hero { --hero-p: 1; }
.is-shot .hero .hero__regel > span,
.is-shot .hero .hero__alinea,
.is-shot .hero .hero__acties { animation: none; }
.is-shot .hero .hero__play::before { animation: none; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .hero { --hero-p: 1; }
  .hero .hero__play::before { animation: none; opacity: 0; }
}

@media (max-width: 640px) {
  .hero { --hero-s0: .9; padding-top: 104px; padding-bottom: 48px; }
  .hero .hero__kop { font-size: clamp(3rem, 14.6vw, 4.2rem); line-height: .82; margin-inline: -20px; }
  .hero .hero__alinea { font-size: 16px; line-height: 1.6; margin-top: 26px; max-width: 350px; }
  .hero .hero__acties { margin-top: 28px; gap: 8px; }
  .hero .hero__knop { padding-inline: 22px; font-size: 15px; }
  .hero .hero__wie { gap: 9px; padding-right: 8px; font-size: 14.5px; }
  .hero .hero__avatar { width: 40px; height: 40px; }
  .hero .hero__media { margin-top: 44px; }
  .hero .hero__video { aspect-ratio: 4 / 5; border-radius: calc(24px - 6px * var(--hero-p)); }
  .hero .hero__video::after { left: 16px; bottom: 14px; }
  .hero .hero__play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .hero .hero__play svg { width: 22px; height: 22px; }
}
@media (max-width: 360px) {
  .hero .hero__acties { flex-direction: column; }
}
.hero .hero__avatar-beeld { width: 100%; height: 100%; object-fit: cover; display: block; }

/* zolang de video er nog niet is: op mobiel liggend, geen leeg schermvullend vlak */
@media (max-width: 760px) { .hero .hero__video[data-label="Coming soon"] { aspect-ratio: 16 / 10; } }

/* twee oprichters: overlappende rondjes met een witte rand */
.hero .hero__avatar { box-shadow: 0 0 0 2px #F5F4F2; overflow: hidden; }
.hero .hero__avatar--twee { margin-left: -14px; }
.hero .hero__avatar-beeld { width: 100%; height: 100%; object-fit: cover; }
.hero .hero__wie-tekst { white-space: nowrap; }
@media (max-width: 420px) { .hero .hero__acties { gap: 10px; } .hero .hero__wie { padding-right: 4px; } .hero .hero__avatar { width: 38px; height: 38px; } .hero .hero__avatar--twee { margin-left: -12px; } }

/* hero: levend Mission Control-dashboard (tot de video er is) */
.hero .hero__video--demo { position: relative; overflow: hidden; }
.hero .hero__video--demo::before, .hero .hero__video--demo::after { content: none; }
.hero .hero__demo { position: absolute; inset: 0; padding: 0; }
.hero .hero__demo .regie__podium { position: absolute; inset: 0; height: auto; border: 0; border-radius: 0; background: none; overflow: hidden; }
.hero .hero__demo .regie__scene {
  position: absolute; left: 50%; top: 7%; width: 1120px; height: 600px; margin: 0;
  perspective: none; aspect-ratio: auto; -webkit-mask-image: none; mask-image: none;
  transform: translateX(-50%) scale(var(--demo-schaal, .8)); transform-origin: 50% 0;
}
.hero .hero__demo .regie__dash { transform: none; width: 1120px; height: 600px; }
.hero .hero__demo .d-app { box-shadow: 0 2px 4px rgba(20, 30, 80, .08), 0 40px 80px -40px rgba(20, 40, 120, .55); }
@media (max-width: 760px) {
  .hero .hero__video--demo { aspect-ratio: 4 / 3 !important; }
  .hero .hero__demo .regie__scene { width: 600px; height: 520px; top: 6%; }
  .hero .hero__demo .regie__dash { width: 600px; height: auto; }
}

/* hero-demo: melding die inschuift */
.hero .hero__melding {
  position: absolute; z-index: 5; right: 4%; bottom: 7%; display: grid; gap: 2px;
  padding: 14px 20px; border-radius: 14px; background: #fff; border: 1px solid rgba(10,10,10,.08);
  box-shadow: 0 1px 2px rgba(10,10,10,.05), 0 20px 40px -24px rgba(20, 30, 90, .5);
  font-size: 13px; color: #6B6B67; text-align: left; opacity: 0; transform: translateY(12px);
}
.hero .hero__melding b { font-size: 14px; font-weight: 600; color: #0A0A0A; }
.hero .hero__melding b::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; background: #E8F7EE; color: #1C8A4E; font-size: 11px; vertical-align: 1px; }
.hero .hero__melding.is-zichtbaar { animation: hero-melding 2.4s var(--ease) both; }
@keyframes hero-melding { 0% { opacity: 0; transform: translateY(12px); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 760px) { .hero .hero__melding { right: 5%; bottom: 6%; padding: 10px 14px; font-size: 12px; } .hero .hero__melding b { font-size: 13px; } }
.hero .hero__demo .d-app--donker .d-zij { background: var(--merk-zij); }
