/* PresentTool™ Storytelling — minimal sticky header + code-gate + note
   ────────────────────────────────────────────────────────────────
   §1.1 mockup: a 48px top-bar that fades in after ~200px of scroll,
   showing the studio name, the project title and progress dots.
   ──────────────────────────────────────────────────────────── */

.story-stickyhead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: color-mix(in srgb, var(--story-bg, #0a0906) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}
.story-stickyhead.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.story-stickyhead .sh-inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.story-stickyhead .sh-studio {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
  flex: 0 0 auto;
}
.story-stickyhead .sh-title {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.story-stickyhead .sh-dots {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.story-stickyhead .sh-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.story-stickyhead .sh-dot:hover { background: rgba(255, 255, 255, 0.55); }
.story-stickyhead .sh-dot.is-active {
  background: var(--story-accent, #c08457);
  transform: scale(1.45);
}
.story-stickyhead .sh-progress {
  height: 2px;
  background: transparent;
}
.story-stickyhead .sh-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--story-accent, #c08457);
  transition: width 0.1s linear;
}

@media (max-width: 720px) {
  .story-stickyhead .sh-title { display: none; }
  .story-stickyhead .sh-inner { gap: 12px; justify-content: space-between; }
}

/* ── Code-gate (beveiligde presentaties) ─────────────────────────── */
.story-codegate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--story-bg, #0a0906);
}
.story-codegate__card {
  max-width: 380px;
  width: 100%;
  text-align: center;
  color: #fff;
}
.story-codegate__lock {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--story-accent, #c08457);
}
.story-codegate__card h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
}
.story-codegate__card p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 20px;
}
.story-codegate__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.story-codegate__form input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.04em;
}
.story-codegate__form input:focus {
  outline: none;
  border-color: var(--story-accent, #c08457);
}
.story-codegate__form button {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--story-accent, #c08457);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.story-codegate__form button:hover { filter: brightness(1.08); }
.story-codegate__form button:disabled { opacity: 0.6; cursor: default; }
.story-codegate__err {
  margin-top: 14px !important;
  color: #e9897a !important;
  font-size: 13px !important;
}

/* ── Custom note section (Onderdeel toevoegen) ───────────────────── */
.story-note {
  padding: clamp(56px, 9vw, 110px) 24px;
}
.story-note__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.story-note__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--story-accent, #c08457);
  margin-bottom: 14px;
}
.story-note__title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--story-fg, #1a1714);
}
.story-note__body {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: color-mix(in srgb, var(--story-fg, #1a1714) 74%, transparent);
  white-space: pre-wrap;
}

/* Deep-link flash: subtiele puls wanneer de viewer naar een #anchor springt
   (bv. vanuit "preview dit onderdeel" in de editor). */
@keyframes pt-deeplink-pulse {
  0%   { outline: 2px solid transparent; }
  25%  { outline: 2px solid var(--story-accent, #C8956C); outline-offset: 6px; }
  100% { outline: 2px solid transparent; outline-offset: 16px; }
}
.pt-deeplink-flash {
  animation: pt-deeplink-pulse 1.8s ease-out forwards;
}

/* Moodboard-sectie — sfeer & materialen als eigen, omkaderd beeld. */
.story-moodboard {
  padding: clamp(48px, 8vw, 96px) 24px;
}
.story-moodboard__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.story-moodboard__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--story-accent, #C8956C);
  margin-bottom: 14px;
}
.story-moodboard__title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 600;
  font-style: italic;
  margin: 0 0 26px;
  color: var(--story-fg, #1a1714);
}
.story-moodboard__frame {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
  background: color-mix(in srgb, var(--story-fg, #1a1714) 6%, transparent);
}
.story-moodboard__frame img {
  display: block;
  width: 100%;
  height: auto;
}
.story-moodboard__cap {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
  color: color-mix(in srgb, var(--story-fg, #1a1714) 66%, transparent);
}

/* Pull-quote / tussenkop variant ("Citaat" uit het toevoeg-menu). */
.story-note--quote .story-note__inner { max-width: 860px; }
.story-note__quote {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--story-fg, #1a1714);
}
.story-note__quote::before { content: "\201C"; }
.story-note__quote::after { content: "\201D"; }
.story-note__cite {
  margin-top: 18px;
  font-size: clamp(13px, 1.3vw, 15px);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--story-fg, #1a1714) 60%, transparent);
}
