/* escaperoom-hero 1.0.0 · block-port van React Bits Pro hero-18 (commandopalet met key chips) als bedienbaar codeslot,
   met tech-wall (r3f-port) als achtergrond en het gordijn van preloader (motion-port).
   Maten uit de bron: kolom max 1400 px, min-h-screen, px-4 py-16 sm:px-6 sm:py-20 lg:px-8; pill py-1.5 pl-1.5 pr-4 met
   chip px-2.5 11 px; h1 mt-8 max-w-4xl 4xl/6xl/7xl leading 1.02 tracking -0.04em; intro mt-6 max-w-xl base/lg;
   paneel mt-12 max-w-2xl (rounded-3xl wordt 6 px); invoer px-5 py-4; scopes px-3 pt-3 rounded-lg px-3 py-1.5 xs;
   label px-5 pt-4 pb-1 0,2em; rijen px-2 pb-2 gap 2 px, rij px-3 py-2.5 met icoonvak 36 px; voet px-5 py-3;
   knoppen mt-10 gap-4 (rij vanaf sm); kbd h-6 min-w-6 px-1.5 11 px. */
.msm-escaperoom-hero {
  --sh-ease: cubic-bezier(.22, 1, .36, 1);
  --sh-soft: color-mix(in srgb, var(--m-ink, #ece4d4) 8%, var(--m-surface, #1f1a16));
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 64px 16px;
  overflow: hidden;
  background: var(--m-bg, #14110e);
  color: var(--m-ink, #ece4d4);
  font-family: var(--m-font-body, 'Spline Sans', ui-sans-serif, system-ui, sans-serif);
  scroll-margin-top: 112px;
}
.msm-escaperoom-hero *,
.msm-escaperoom-hero *::before,
.msm-escaperoom-hero *::after { box-sizing: border-box; }
.msm-escaperoom-hero p,
.msm-escaperoom-hero ul { margin: 0; padding: 0; }
.msm-escaperoom-hero ul { list-style: none; }
.msm-escaperoom-hero a { color: inherit; text-decoration: none; }
.msm-escaperoom-hero svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.msm-escaperoom-hero :is(a, button, input):focus-visible { outline: 2px solid var(--m-primary, #c9973f); outline-offset: 3px; }
.msm-escaperoom-hero .sh-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Achtergrond: de foto van de kluisdeur, de wand van tech-wall, het lijnraster van 96 px en een sluier achter de kolom. */
.msm-escaperoom-hero .sh-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.msm-escaperoom-hero .sh-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; opacity: .55; transition: opacity .8s var(--sh-ease); }
.msm-escaperoom-hero.is-wall .sh-photo img { opacity: .2; }
.msm-escaperoom-hero .sh-wall { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--sh-ease); }
.msm-escaperoom-hero.is-wall .sh-wall { opacity: .9; }
.msm-escaperoom-hero .sh-wall canvas { display: block; width: 100%; height: 100%; }
.msm-escaperoom-hero .sh-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, color-mix(in srgb, var(--m-ink, #ece4d4) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--m-ink, #ece4d4) 6%, transparent) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 38%, #000, transparent);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 38%, #000, transparent);
}
.msm-escaperoom-hero .sh-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 52% at 50% 42%, color-mix(in srgb, var(--m-bg, #14110e) 82%, transparent), transparent 100%),
    linear-gradient(to bottom, color-mix(in srgb, var(--m-bg, #14110e) 40%, transparent), transparent 30%, transparent 70%, var(--m-bg, #14110e));
}

/* De kolom. */
.msm-escaperoom-hero .sh-col { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1400px; margin: 0 auto; text-align: center; }
.msm-escaperoom-hero .sh-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--m-line, #352d25);
  border-radius: 999px;
  background: color-mix(in srgb, var(--m-surface, #1f1a16) 80%, transparent);
  box-shadow: 0 1px 2px rgb(0 0 0 / .3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: left;
}
.msm-escaperoom-hero .sh-chip { flex: none; display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--m-primary, #c9973f); color: var(--m-bg, #14110e); font-size: 11px; font-weight: 600; line-height: 16px; font-variant-numeric: tabular-nums; }
.msm-escaperoom-hero .sh-kicker { font-size: 12px; font-weight: 500; line-height: 16px; color: color-mix(in srgb, var(--m-ink, #ece4d4) 78%, var(--m-muted, #9c9080)); }
.msm-escaperoom-hero .sh-title {
  max-width: 56rem;
  margin: 32px 0 0;
  font-family: var(--m-font-display, 'Besley', Georgia, serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.02;
  letter-spacing: -.04em;
  color: var(--m-ink, #ece4d4);
  text-wrap: balance;
}
.msm-escaperoom-hero .sh-line { display: block; }
.msm-escaperoom-hero .sh-line-2 { color: var(--m-muted, #9c9080); }
/* rolling-text: ieder teken in een venster van 1 em (hier 1,1 em, zodat de staart van een p niet wegvalt) dat door
   zes willekeurige tekens rolt voor het landt. */
.msm-escaperoom-hero .sh-word { display: inline-block; white-space: nowrap; }
.msm-escaperoom-hero .sh-ch { position: relative; display: inline-block; height: 1.1em; line-height: 1.1em; overflow: hidden; vertical-align: bottom; margin-block: -.04em; }
.msm-escaperoom-hero .sh-ch::before { content: attr(data-c); visibility: hidden; }
.msm-escaperoom-hero .sh-reel { position: absolute; top: 0; left: 50%; display: flex; flex-direction: column; align-items: center; margin-left: -1em; width: 2em; }
.msm-escaperoom-hero .sh-reel > span { display: block; height: 1.1em; line-height: 1.1em; }
.msm-escaperoom-hero .sh-intro { max-width: 36rem; margin-top: 24px; font-size: 16px; line-height: 1.625; color: color-mix(in srgb, var(--m-ink, #ece4d4) 72%, var(--m-muted, #9c9080)); }

/* Het codeslot (het commandopalet van de bron). */
.msm-escaperoom-hero .sh-panel {
  width: 100%;
  max-width: 42rem;
  margin-top: 48px;
  border: 1px solid var(--m-line, #352d25);
  border-radius: 6px;
  background: var(--m-surface, #1f1a16);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / .6);
  text-align: left;
}
.msm-escaperoom-hero .sh-input { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--m-line, #352d25); }
.msm-escaperoom-hero .sh-key { width: 20px; height: 20px; flex: none; color: var(--m-muted, #9c9080); }
.msm-escaperoom-hero .sh-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.msm-escaperoom-hero .sh-q {
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--m-ink, #ece4d4);
  font: 400 16px/24px var(--m-font-body, 'Spline Sans', ui-sans-serif, system-ui, sans-serif);
  caret-color: var(--m-ink, #ece4d4);
}
.msm-escaperoom-hero .sh-q::placeholder { color: var(--m-muted, #9c9080); }
.msm-escaperoom-hero .sh-q:focus-visible { outline: none; }
.msm-escaperoom-hero .sh-input:has(.sh-q:focus-visible) { box-shadow: inset 0 -2px 0 var(--m-primary, #c9973f); }
/* De knipperende caret van de bron (1 px, dekking [1, 1, 0, 0] in 1,06 s), zolang het veld niet zelf focus heeft. */
.msm-escaperoom-hero .sh-ghost { position: absolute; left: 0; top: 50%; display: flex; align-items: center; height: 20px; transform: translateY(-50%); pointer-events: none; font: 400 16px/24px var(--m-font-body, 'Spline Sans', ui-sans-serif, system-ui, sans-serif); }
.msm-escaperoom-hero .sh-mirror { visibility: hidden; white-space: pre; }
.msm-escaperoom-hero .sh-caret { display: inline-block; width: 1px; height: 20px; margin-left: 1px; background: var(--m-ink, #ece4d4); animation: sh-blink 1.06s steps(1, end) infinite; }
@keyframes sh-blink { 0%, 49.99% { opacity: 1; } 50%, 100% { opacity: 0; } }
.msm-escaperoom-hero .sh-panel:has(.sh-q:focus) .sh-ghost,
.msm-escaperoom-hero .sh-panel.is-typed .sh-ghost { display: none; }
.msm-escaperoom-hero .sh-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 24px;
  padding: 0 6px;
  border: 1px solid var(--m-line, #352d25);
  border-radius: 6px;
  background: var(--m-bg, #14110e);
  box-shadow: 0 1px 2px rgb(0 0 0 / .3);
  color: var(--m-muted, #9c9080);
  font: 500 11px/1 var(--m-font-body, 'Spline Sans', ui-sans-serif, system-ui, sans-serif);
}
.msm-escaperoom-hero .sh-scopes { display: flex; align-items: center; gap: 4px; padding: 12px 12px 0; overflow-x: auto; scrollbar-width: none; }
.msm-escaperoom-hero .sh-scopes::-webkit-scrollbar { display: none; }
.msm-escaperoom-hero .sh-scope {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--m-muted, #9c9080);
  font: 500 12px/16px var(--m-font-body, 'Spline Sans', ui-sans-serif, system-ui, sans-serif);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.msm-escaperoom-hero .sh-scope:hover { color: var(--m-ink, #ece4d4); }
.msm-escaperoom-hero .sh-scope[aria-pressed="true"] { background: var(--sh-soft); color: var(--m-ink, #ece4d4); }
.msm-escaperoom-hero .sh-count { color: color-mix(in srgb, var(--m-muted, #9c9080) 60%, var(--m-surface, #1f1a16)); font-variant-numeric: tabular-nums; }
.msm-escaperoom-hero .sh-scope[aria-pressed="true"] .sh-count { color: var(--m-muted, #9c9080); }
.msm-escaperoom-hero .sh-label { padding: 16px 20px 4px; font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: .2em; text-transform: uppercase; color: var(--m-muted, #9c9080); }
.msm-escaperoom-hero .sh-list { display: flex; flex-direction: column; gap: 2px; padding: 0 8px 8px; }
.msm-escaperoom-hero .sh-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .15s;
}
.msm-escaperoom-hero .sh-row:hover { background: color-mix(in srgb, var(--m-ink, #ece4d4) 4%, var(--m-surface, #1f1a16)); }
.msm-escaperoom-hero .sh-row.is-active { background: var(--sh-soft); }
.msm-escaperoom-hero .sh-row[hidden] { display: none; }
.msm-escaperoom-hero .sh-shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(to right, transparent, color-mix(in srgb, var(--m-ink, #ece4d4) 7%, transparent), transparent); transform: translateX(-140%); }
.msm-escaperoom-hero .sh-row.is-active .sh-shine { opacity: 1; }
.msm-escaperoom-hero .sh-icon { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--m-line, #352d25); border-radius: 6px; background: var(--m-bg, #14110e); color: var(--m-primary, #c9973f); }
.msm-escaperoom-hero .sh-icon svg { width: 16px; height: 16px; }
.msm-escaperoom-hero .sh-row-title { position: relative; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--m-ink, #ece4d4); }
.msm-escaperoom-hero .sh-row-meta { position: relative; display: none; flex: none; font-size: 12px; color: var(--m-muted, #9c9080); font-variant-numeric: tabular-nums; }
.msm-escaperoom-hero .sh-open { position: relative; display: none; flex: none; align-items: center; gap: 6px; font-size: 12px; color: var(--m-muted, #9c9080); }
.msm-escaperoom-hero .sh-row.is-active .sh-open { display: flex; }
.msm-escaperoom-hero .sh-open-word { display: none; }
.msm-escaperoom-hero .sh-empty { padding: 4px 20px 16px; font-size: 14px; color: var(--m-muted, #9c9080); }
.msm-escaperoom-hero .sh-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--m-line, #352d25); font-size: 12px; color: var(--m-muted, #9c9080); }
.msm-escaperoom-hero .sh-help { display: flex; align-items: center; gap: 16px; }
.msm-escaperoom-hero .sh-hint { display: flex; align-items: center; gap: 6px; }
.msm-escaperoom-hero .sh-brand { font-family: var(--m-font-display, 'Besley', Georgia, serif); font-weight: 600; font-size: 12px; }

.msm-escaperoom-hero .sh-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; margin-top: 40px; }
.msm-escaperoom-hero .sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--m-primary, #c9973f);
  color: var(--m-bg, #14110e);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .2s;
}
.msm-escaperoom-hero .sh-btn:hover { background: color-mix(in srgb, var(--m-primary, #c9973f) 86%, var(--m-ink, #ece4d4)); }
.msm-escaperoom-hero .sh-btn:focus-visible { outline-color: var(--m-ink, #ece4d4); }
.msm-escaperoom-hero .sh-btn svg { width: 16px; height: 16px; stroke-width: 2; }
.msm-escaperoom-hero .sh-or { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--m-muted, #9c9080); }
.msm-escaperoom-hero .sh-trust { display: flex; align-items: flex-start; gap: 8px; max-width: 34rem; margin-top: 28px; font-size: 13px; line-height: 1.5; color: var(--m-muted, #9c9080); text-align: left; }
.msm-escaperoom-hero .sh-trust svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--m-primary, #c9973f); }

@media (max-width: 639.98px) {
  .msm-escaperoom-hero .sh-pill { border-radius: 18px; }
  .msm-escaperoom-hero .sh-scope { min-height: 44px; }
  .msm-escaperoom-hero .sh-input { padding: 12px 16px; }
  .msm-escaperoom-hero .sh-label { padding-inline: 16px; }
  .msm-escaperoom-hero .sh-foot { padding-inline: 16px; }
}
@media (min-width: 640px) {
  .msm-escaperoom-hero { padding: 80px 24px; }
  .msm-escaperoom-hero .sh-kicker { font-size: 14px; line-height: 20px; }
  .msm-escaperoom-hero .sh-title { font-size: 60px; }
  .msm-escaperoom-hero .sh-intro { font-size: 18px; }
  .msm-escaperoom-hero .sh-row-meta { display: block; }
  .msm-escaperoom-hero .sh-open-word,
  .msm-escaperoom-hero .sh-hint-word { display: inline; }
  .msm-escaperoom-hero .sh-actions { flex-direction: row; justify-content: center; width: auto; }
  .msm-escaperoom-hero .sh-btn { width: auto; padding-inline: 28px; }
}
@media (max-width: 639.98px) { .msm-escaperoom-hero .sh-hint-word { display: none; } }
@media (min-width: 768px) { .msm-escaperoom-hero .sh-title { font-size: 72px; } }
@media (min-width: 1024px) { .msm-escaperoom-hero { align-items: center; padding-inline: 32px; } }

/* Het gordijn van preloader (variant curtain): twee helften in --m-bg die naar links en rechts wegschuiven. */
.msm-escaperoom-hero .sh-curtain { position: fixed; inset: 0; z-index: 9990; display: flex; overflow: hidden; pointer-events: none; }
.msm-escaperoom-hero .sh-curtain .sh-half { width: 50%; height: 100%; background: var(--m-bg, #14110e); }
.msm-escaperoom-hero .sh-curtain .sh-words { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 0 .75rem; padding: 0 2rem; }
.msm-escaperoom-hero .sh-curtain .sh-word { font: 700 2.25rem/1.2 var(--m-font-display, 'Besley', Georgia, serif); color: var(--m-ink, #ece4d4); opacity: 0; will-change: transform, filter, opacity; }
.msm-escaperoom-hero:is(.sh-curtain-pending *)::after { content: ''; position: fixed; inset: 0; z-index: 9989; background: var(--m-bg, #14110e); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .msm-escaperoom-hero .sh-caret { animation: none; opacity: 0; }
  .msm-escaperoom-hero .sh-shine { display: none; }
  .msm-escaperoom-hero .sh-photo img,
  .msm-escaperoom-hero .sh-wall { transition: none; }
}
