/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #00C9A7;
  z-index: 9999;
  transition: width 80ms linear;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #scroll-progress { transition: none; }
}

/* ===== TOKENS ===== */
:root {
  --bg-primary:    #0D1117;
  --bg-secondary:  #161B22;
  --bg-surface:    #21262D;
  --border-subtle: #30363D;
  --text-primary:  #E6EDF3;
  --text-muted:    #8B949E;
  --teal:          #0F6E56;
  --amber:         #BA7517;
  --radius:        8px;
  --max-width:     1440px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { background: var(--bg-primary); color: var(--text-primary);
       font-family: 'Inter', system-ui, sans-serif; line-height: 1.6;
       overflow-x: clip; }

/* ===== NAV ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
       height: 56px; background: rgba(13,17,23,0.9);
       backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-subtle);
       display: flex; align-items: center; justify-content: space-between;
       padding: 0 2rem; }
.nav-logo { font-weight: 700; font-size: 1.1rem; color: var(--text-primary);
            text-decoration: none; flex-shrink: 0; }
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { color: var(--text-muted); font-size: 0.8rem; text-decoration: none;
            letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
            transition: color 0.2s; }
.nav-link:hover { color: var(--text-primary); }
@media (max-width: 480px) { .nav-links { gap: 1rem; } .nav-link { font-size: 0.7rem; } }

/* ===== JUMP-TO-TOP ===== */
#jump-top { position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
            width: 40px; height: 40px; border-radius: 50%;
            background: rgba(15,110,86,0.85); color: #fff; border: none;
            font-size: 1.1rem; cursor: pointer; opacity: 0; pointer-events: none;
            transition: opacity 0.3s, background 0.2s; }
#jump-top:hover { background: var(--teal); }
@media (prefers-reduced-motion: reduce) { #jump-top { transition: none; } }

/* ===== HERO — 3-Zonen-Layout: Text | Canvas | Text (kein Overlap) ===== */
.hero { display: flex; flex-direction: column; min-height: 860px; height: 100vh; overflow: hidden; }
/* Zone 1: Titel-Block — kein Canvas dahinter */
.hero-top { flex-shrink: 0; background: var(--bg-deep);
            text-align: center; padding: 52px 2rem 36px;
            position: relative; z-index: 2; }
/* Zone 2: Canvas — isoliert, kein Text */
.hero-canvas-zone { flex: 1; position: relative; overflow: hidden; min-height: 550px; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
/* Zone 3: Sub-Text + CTAs — kein Canvas dahinter */
.hero-bottom { flex-shrink: 0; background: var(--bg-deep);
               text-align: center; padding: 32px 2rem 48px;
               position: relative; z-index: 2;
               display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.hero-badge { display: inline-block; font-size: 0.75rem; font-weight: 600;
              letter-spacing: 0.1em; color: var(--teal);
              border: 1px solid rgba(15,110,86,0.55); border-radius: 100px;
              padding: 0.25rem 0.85rem; margin-bottom: 0; text-transform: uppercase;
              background: rgba(15,110,86,0.07); backdrop-filter: blur(4px); }
.hero-title { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.12; }
.hero-title .accent { color: var(--amber); }
.hero-sub { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--text-muted);
            margin: 0; max-width: 640px; }
/* Persona-Quote — amber, prominent */
.hero-sub-2 { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--amber);
              font-weight: 600; letter-spacing: 0.02em;
              margin: 0; max-width: 640px; }
/* CFP Persona Badge */
.hero-persona-badge { font-size: clamp(0.75rem, 1.2vw, 0.85rem); color: var(--teal);
              letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
              margin: 0; max-width: 640px; }
.cta-btn { display: inline-block; background: var(--teal); color: #fff;
           font-weight: 600; padding: 0.85rem 2rem; border-radius: var(--radius);
           text-decoration: none; transition: background 0.2s, transform 0.2s;
           box-shadow: 0 0 24px rgba(15,110,86,0.4); }
.cta-btn:hover { background: #0d5f49; transform: translateY(-1px);
                 box-shadow: 0 0 36px rgba(15,110,86,0.6); }
.scroll-hint { position: absolute; bottom: 0.5rem; left: 50%; transform: translateX(-50%);
               color: var(--text-muted); font-size: 0.8rem; animation: bounce 2s infinite; z-index: 2; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); }
                    50% { transform: translateX(-50%) translateY(6px); } }

/* ===== SECTIONS (gemeinsam) ===== */
.section { padding: 6rem 2rem; max-width: var(--max-width); margin: 0 auto; }
.section-badge { display: inline-block; font-size: 0.78rem; font-weight: 700;
                 letter-spacing: 0.12em; text-transform: uppercase;
                 color: var(--amber); margin-bottom: 1rem; }
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700;
                 margin-bottom: 0.75rem; }
.section-title .hl { color: var(--amber); }
.section-sub { color: var(--text-muted); font-size: 1.1rem; max-width: 560px;
               margin-bottom: 3rem; }

/* ===== HERO NARRATIVE — full-viewport immersive layout ===== */
.hero-n {
  position: relative;
  height: 100vh; min-height: 700px;
  overflow: hidden;
  background: var(--bg-primary);
}
#hero-canvas-narrative {
  position: absolute; inset: 0;
  width: 100%; height: 100%; z-index: 0;
}
/* Headline: absolute top, over canvas */
.hero-n-top {
  position: absolute; top: 72px; left: 0; right: 0;
  text-align: center; z-index: 10; pointer-events: none;
  padding: 0 2rem;
}
.hero-n-top .hero-badge { margin-bottom: 1rem; }
/* CTAs: absolute bottom, over canvas */
.hero-n-bottom {
  position: absolute; bottom: 44px; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  z-index: 10; padding: 0 2rem;
}
@media (max-width: 480px) {
  .hero-n-top { top: 64px; }
  .hero-n-bottom { bottom: 28px; gap: 0.75rem; }
}

/* ===== PAIN POINTS ===== */
#pain-points { background: var(--bg-secondary); }
#pain-points .section-inner { padding: 6rem 2rem; max-width: var(--max-width); margin: 0 auto; }
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.pain-grid .pain-card:first-child { grid-column: span 2; }
.pain-card { background: var(--bg-surface); border: 1px solid var(--border-subtle);
             border-radius: var(--radius); padding: 1.75rem;
             border-left-width: 3px; border-left-style: solid;
             border-left-color: var(--border-subtle);
             transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
                         box-shadow 0.22s ease, border-color 0.22s ease; }
.pain-card:hover { transform: translateY(-6px);
                   box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
/* Amber framing — high-urgency pain points */
.pain-card.amber-frame { border-left-color: var(--amber); }
.pain-card.amber-frame:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.35),
                                            0 0 16px rgba(234,179,8,0.12); }
/* Teal framing — system-addressable pain points */
.pain-card.teal-frame { border-left-color: var(--teal); }
.pain-card.teal-frame:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.35),
                                           0 0 16px rgba(15,110,86,0.15); }
.pain-card .icon { font-size: 1.5rem; margin-bottom: 1rem; }
.pain-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.pain-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

/* ===== DREI SAEULEN ===== */
#drei-saeulen .section { background: var(--bg-primary); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar-card { background: var(--bg-surface); border: 1px solid var(--border-subtle);
               border-radius: var(--radius); padding: 2rem 1.75rem;
               border-left-width: 3px; border-left-style: solid;
               transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1),
                           box-shadow 0.32s ease, opacity 0.3s ease; }
.pillar-card:hover { transform: translateY(-8px) scale(1.02); }
.pillar-card.amber-accent { border-left-color: var(--amber); }
.pillar-card.teal-accent  { border-left-color: var(--teal); }
.pillar-card.white-accent { border-left-color: #555; }
.pillar-card.amber-accent:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 32px rgba(245,158,11,0.22); border-color: rgba(245,158,11,0.4); }
.pillar-card.teal-accent:hover  { box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 32px rgba(0,201,167,0.20); border-color: rgba(0,201,167,0.4); }
.pillar-card.white-accent:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 20px rgba(255,255,255,0.06); }
/* Dim non-hovered siblings for cinematic focus effect */
.pillars-grid:has(.pillar-card:hover) .pillar-card:not(:hover) { opacity: 0.42; transform: translateY(0) scale(0.98); }
.pillar-num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
              color: var(--text-muted); margin-bottom: 0.75rem; }
.pillar-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.pillar-card p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.7; }

/* ===== MINI-FLOW ANIMATION ===== */
#mini-flow { background: var(--bg-secondary); }
.section-title .hl-teal { color: var(--teal); }
.mf-container { background:var(--bg-secondary); border:1px solid var(--border-subtle);
                border-radius:var(--radius); overflow:hidden; max-width:640px;
                margin:0 auto 2rem; position:relative; }
.mf-titlebar { background:#1C2128; border-bottom:1px solid var(--border-subtle);
               padding:0.6rem 1rem; display:flex; align-items:center; gap:0.4rem; }
.mf-dot-r { width:12px; height:12px; border-radius:50%; background:#FF5F57; }
.mf-dot-y { width:12px; height:12px; border-radius:50%; background:#FEBC2E; }
.mf-dot-g { width:12px; height:12px; border-radius:50%; background:#28C840; }
.mf-header-label { font-family:'Courier New',monospace; font-size:0.78rem;
                   color:var(--text-muted); margin-left:0.5rem; }
.mf-overlay { position:absolute; top:40px; left:0; right:0;
              padding:1.25rem 1.5rem 0; z-index:2; pointer-events:none; }
.mf-input-line { font-family:'Courier New',monospace; font-size:0.9rem;
                 color:var(--text-primary); min-height:1.4em; }
.mf-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }
.mf-meta { font-size:0.75rem; color:var(--text-muted); font-family:Inter,sans-serif;
           margin-top:0.5rem; }
#mf-canvas { display:block; width:100%; height:260px; }
.mf-dots { display:flex; justify-content:center; gap:0.5rem; padding:0.75rem 0;
           background:#1C2128; border-top:1px solid var(--border-subtle); }
.mf-dot { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,0.5);
          border:none; cursor:pointer; transition:background 200ms ease, box-shadow 200ms ease, width 200ms ease, height 200ms ease; }
.mf-dot.active { background:#00C9A7; width:12px; height:12px; box-shadow:0 0 6px rgba(0,201,167,0.6); }
.mf-dot:hover  { background:var(--text-muted); }
.mf-closer { text-align:center; color:var(--text-muted); font-size:0.9rem; margin-top:0; }

/* ===== HOW IT WORKS ACCORDION ===== */
#how-it-works { background: var(--bg-primary); }
.section-title .hl-amber { color: var(--amber); }

.accordion { margin-top: 2.5rem; }
.accordion-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.accordion-item:first-child { border-top: 1px solid rgba(255,255,255,0.06); }

.accordion-header {
  display: grid;
  grid-template-columns: 3rem 1fr auto 1.5rem;
  align-items: center;
  gap: 0 1rem;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 1.25rem 0;
  cursor: pointer;
  text-align: left;
}
.accordion-num  { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
                  color: var(--amber); }
.accordion-title { font-size: 1.05rem; font-weight: 700; }
.accordion-sub   { font-size: 0.88rem; color: var(--text-muted); }
.accordion-chevron {
  font-size: 1.4rem; color: var(--text-muted); line-height: 1;
  transition: transform 0.3s ease;
  display: inline-block;
}
.accordion-item[data-open="true"] .accordion-chevron { transform: rotate(90deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  border-left: 2px solid var(--teal);
  padding-left: 1.25rem;
  margin-left: 3rem;
}
.accordion-item[data-open="true"] .accordion-body { max-height: 220px; }
.accordion-body p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.7;
                    padding-bottom: 0.75rem; }
.accordion-body p:last-child { padding-bottom: 1.25rem; }

/* ===== DECISION PACKET PREVIEW ===== */
#decision-packet { background: var(--bg-primary); }
.dp-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem; align-items: start; }

.dp-progress-bar { height: 4px; background: var(--border-subtle); border-radius: 2px;
                   margin-bottom: 0.5rem; overflow: hidden; }
.dp-progress-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--amber));
                    transition: width 0.4s ease; border-radius: 2px; }
.dp-progress-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1.25rem;
                     letter-spacing: 0.05em; }

.dp-items { list-style: none; }
.dp-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.dp-btn { display: flex; align-items: center; gap: 0.6rem; width: 100%;
          background: none; border: none; color: var(--text-muted);
          font-size: 0.93rem; padding: 0.65rem 0; cursor: pointer;
          text-align: left; transition: color 0.2s; }
.dp-item.active .dp-btn { color: var(--teal); }
.dp-item.selected .dp-btn { color: var(--text-primary); background: rgba(15,110,86,0.08);
                             padding-left: 0.5rem; border-radius: 4px; }
.dp-check       { color: var(--teal); font-size: 1rem; }
.dp-check-empty { color: var(--text-muted); font-size: 0.9rem; }

.dp-json-col { background: var(--bg-secondary); border: 1px solid var(--border-subtle);
               border-radius: var(--radius); overflow: hidden; }
.dp-code { margin: 0; padding: 1.5rem; font-family: 'Courier New', monospace;
           font-size: 0.88rem; line-height: 1.65; color: var(--text-primary);
           white-space: pre; overflow-x: auto; }
.dp-hl-key { color: var(--teal); }
.dp-hl-str { color: var(--amber); }
.dp-hl-num { color: #79C0FF; }

/* ===== FLOW-KARTEN ===== */
#flow-cards { background: var(--bg-secondary); }
.fc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }

.fc-card { opacity: 0; transform: translateY(40px);
           transition: opacity 0.6s ease, transform 0.6s ease; }
.fc-card.visible { opacity: 1; transform: translateY(0); }

.fc-screen { background: var(--bg-surface); border: 1px solid var(--border-subtle);
             border-radius: var(--radius); padding: 1.5rem; margin-bottom: 0.75rem;
             min-height: 160px; display: flex; align-items: center; justify-content: center;
             transform: perspective(800px) rotateY(-2deg);
             box-shadow: 8px 8px 24px rgba(0,0,0,0.4);
             transition: transform 0.3s ease, box-shadow 0.3s ease; }
.fc-card:hover .fc-screen { transform: perspective(800px) rotateY(0deg);
                             box-shadow: 4px 4px 16px rgba(0,0,0,0.3); }
.fc-screen-inner { width: 100%; text-align: center; }
.fc-graph-preview { display: flex; align-items: center; justify-content: center; }

.fc-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.fc-label { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.4rem; }
.fc-desc  { font-size: 0.8rem; color: var(--text-muted); }

.fc-slider-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; font-size:0.75rem; }
.fc-slider-label { color: var(--text-muted); width: 5rem; text-align: left; }
.fc-slider-track { flex: 1; height: 4px; background: var(--border-subtle); border-radius: 2px; }
.fc-slider-fill  { height: 100%; background: var(--teal); border-radius: 2px; }
.fc-slider-val   { color: var(--teal); width: 2.5rem; text-align: right; font-weight: 600; }
.fc-override-badge { display: inline-block; font-size: 0.7rem; font-weight: 700;
                     color: var(--amber); border: 1px solid rgba(186,117,23,0.5);
                     border-radius: 100px; padding: 0.2rem 0.7rem; margin-top: 0.5rem; }

.fc-packet-preview { text-align: left; padding: 0.5rem; }
.fc-json-line { font-family: 'Courier New', monospace; font-size: 0.72rem;
                color: var(--text-muted); padding: 0.1rem 0; }
.fc-jk { color: var(--teal); }
.fc-jn { color: #79C0FF; }
.fc-json-dot { color: var(--text-muted); font-size: 1.2rem; margin-top: 0.4rem; letter-spacing: 0.2em; }
.fc-json-dot::after { content: '···'; }

.fc-badge { display: inline-block; font-size: 0.72rem; font-weight: 600;
            color: var(--amber); border: 1px solid rgba(186,117,23,0.45);
            background: rgba(186,117,23,0.07); border-radius: 100px;
            padding: 0.25rem 0.8rem; }

@media (max-width: 768px) { .fc-grid { grid-template-columns: 1fr; } }

/* ===== BENTO GRID — Welle 4 ===== */
#bento-grid { background: var(--bg-primary); }

.bento-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.bento-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 24px;
  overflow: hidden;
  transition: border-color 0.3s;
  position: relative;
}
.bento-card:hover { border-color: rgba(15,110,86,0.3); }

.card-a { grid-column: span 2; grid-row: span 2; padding: 0; }
.card-b { grid-column: span 2; }
.card-c { grid-column: span 2; }
.card-d { grid-column: span 1; }
.card-e { grid-column: span 3; }

#bento-canvas { width: 100%; height: 100%; display: block; border-radius: 20px; }

.bento-label {
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 12px;
}
.bento-score {
  font-size: 3rem; font-weight: 700; color: var(--teal); line-height: 1; margin-bottom: 6px;
}
.bento-sub { font-size: 0.8rem; color: var(--text-muted); }

.bento-kv-list { display: flex; flex-direction: column; gap: 8px; }
.bento-kv { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.bento-k { color: var(--text-muted); }
.bento-v { color: var(--text-primary); font-weight: 600; }
.bv-teal { color: var(--teal); }
.bv-amber { color: var(--amber); }

.bento-timeline { display: flex; flex-direction: column; gap: 12px; }
.bento-tl-item { display: flex; align-items: flex-start; gap: 10px; }
.bento-tl-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.2); margin-top: 3px; flex-shrink: 0;
}
.bento-tl-dot--active { background: var(--teal); box-shadow: 0 0 8px rgba(15,110,86,0.7); }
.bento-tl-time { font-size: 0.7rem; color: var(--text-muted); font-family: monospace; }
.bento-tl-event { font-size: 0.78rem; color: var(--text-primary); }

.bento-stats-row {
  display: flex; align-items: center; gap: 24px; height: 100%; justify-content: center;
}
.bento-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bento-stat-n { font-size: 2.2rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.bento-stat-l { font-size: 0.75rem; color: var(--text-muted); }
.bento-stat-sep { font-size: 1.5rem; color: rgba(255,255,255,0.15); }

/* ===== PERSONA ===== */
#persona { background: var(--bg-secondary); }
.persona-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; align-items: stretch; }
.persona-card { background: var(--bg-surface); border: 1px solid var(--border-subtle);
                border-radius: var(--radius); padding: 1.75rem;
                display: flex; flex-direction: column;
                transition: box-shadow 0.35s ease, border-color 0.35s ease; }

/* Active card — teal glow + spring hover */
.persona-card.active {
  border-color: rgba(15,110,86,0.50);
  box-shadow: 0 0 0 1px rgba(15,110,86,0.18),
              0 0 24px rgba(15,110,86,0.12),
              inset 0 0 0 1px rgba(15,110,86,0.07);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.22s ease;
}
.persona-card.active:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 20px rgba(15,110,86,0.18);
}

/* Soon card — subtle neutral glow, slightly dimmed */
.persona-soon-card {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 0 16px rgba(255,255,255,0.03);
  opacity: 0.75;
}

.persona-soon { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
                color: var(--text-muted); border: 1px solid var(--border-subtle);
                border-radius: 100px; padding: 0.2rem 0.6rem; display: inline-block;
                margin-bottom: 1rem; }
.persona-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.persona-card p { color: var(--text-muted); font-size: 0.9rem; }
.persona-bullets { list-style: none; margin-top: 1rem; }
.persona-bullets li { font-size: 0.9rem; color: var(--text-muted); padding: 0.25rem 0;
                      padding-left: 1.2em; position: relative; }
.persona-bullets li::before { content: '\2713'; color: var(--teal);
                               position: absolute; left: 0; }
/* Wave D: UC01-Quote unter Persona-Bullets — higher specificity to override .persona-card p */
.persona-card .persona-uc01-quote { font-size: 1.05rem; font-style: italic; color: var(--amber);
                      margin-top: auto; padding-top: 1.25rem; opacity: 1;
                      letter-spacing: 0.01em; font-weight: 600; }

/* Compact soon-list */
.persona-soon-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.persona-soon-list li { display: flex; flex-direction: column; gap: 0.15rem; }
.persona-soon-list strong { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.persona-soon-list span { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

/* ===== CTA / FOOTER ===== */
#cta-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle);
              text-align: center; padding: 5rem 2rem; }
#cta-footer .cta-eyebrow { color: var(--text-muted); font-size: 0.85rem;
                             font-style: italic; margin-bottom: 0.5rem; }
#cta-footer h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700;
                 margin-bottom: 1rem; }
#cta-footer .contact { color: var(--teal); font-size: 1rem; font-weight: 500;
                        text-decoration: none; }
#cta-footer .contact:hover { text-decoration: underline; }

/* ===== SCROLL REVEAL ===== */
.section-reveal { opacity: 0; transform: translateY(40px);
                  transition: opacity 0.6s ease, transform 0.6s ease; }
.section-reveal.visible { opacity: 1; transform: translateY(0); }
/* V2-FIX: Removed nth-child-based delays — DOM-position-dependent selectors
   break when sections are repositioned. IntersectionObserver in main.js
   handles per-section reveal timing already. */

/* ===== PERFORMANCE ===== */
.section-reveal, .fc-card { will-change: transform, opacity; }
.mf-container, .dp-progress-fill { will-change: transform; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .pain-grid { grid-template-columns: 1fr; }
  .pain-grid .pain-card:first-child { grid-column: span 1; }
  .pillars-grid { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: 1fr; }
  /* Decision Packet: stack on mobile */
  .dp-layout { grid-template-columns: 1fr; }
  /* Accordion: tighten header grid */
  .accordion-header { grid-template-columns: 2.5rem 1fr 1.5rem; }
  .accordion-sub { font-size: 0.75rem; line-height: 1.3; }
  /* Mini-Flow: static height reduction */
  #mf-canvas { height: 200px; }
  /* Bento Grid: 2-column on tablet */
  .bento-container { grid-template-columns: repeat(2, 1fr); }
  .card-a { grid-column: span 2; }
  .card-b, .card-c, .card-d, .card-e { grid-column: span 2; }
}
@media (max-width: 480px) {
  .persona-grid { grid-template-columns: 1fr; }
  .fc-grid { grid-template-columns: 1fr; }
  /* Bento: single column on small phones */
  .bento-container { grid-template-columns: 1fr; grid-auto-rows: auto; }
  /* Fix Card-A height at narrow viewports */
  .card-a { grid-column: span 1; grid-row: span 1; min-height: 280px; }
  .card-b, .card-c, .card-d, .card-e { grid-column: span 1; min-height: 140px; }
}

/* ===== HERO CTA GROUP ===== */
.hero-cta-group { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-ghost { display: inline-block; color: var(--teal); font-weight: 600;
             padding: 0.85rem 2rem; border-radius: var(--radius);
             text-decoration: none; border: 1.5px solid rgba(15,110,86,0.7);
             background: transparent;
             transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.cta-ghost:hover { background: rgba(15,110,86,0.10); border-color: var(--teal);
                   transform: translateY(-1px); }

/* ===== MINI-FLOW CTA BLOCK ===== */
.mf-cta-block { text-align: center; margin-top: 2.5rem; }
.mf-cta-question { color: var(--amber); font-size: 1rem; margin-bottom: 1rem; font-weight: 600; }
.mf-cta-btn { font-size: 1.05rem; padding: 1rem 2.5rem;
              box-shadow: 0 0 32px rgba(15,110,86,0.35); }

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; gap: 0.75rem; }
}

/* Mobile: eliminate 300ms tap delay on interactive elements */
.cta-btn,
.cta-ghost,
.accordion-header,
.mf-dot,
button { touch-action: manipulation; }

/* ── FOCUS STYLES (Keyboard Navigation) ──────────────────────── */
/* Visible focus ring for keyboard users, invisible for mouse */
.accordion-header:focus-visible,
.mf-dot:focus-visible,
.cta-btn:focus-visible,
.cta-ghost:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Remove default outline when focus-visible is supported */
.accordion-header:focus:not(:focus-visible),
.mf-dot:focus:not(:focus-visible),
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* === STORY TEASER (Welle 5) === */
.story-teaser-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
.story-cover-wrap { perspective: 800px; }
.story-cover-card {
  background: #161B22;
  border: 1px solid rgba(15,110,86,0.3);
  border-radius: 8px;
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-3deg);
  box-shadow: 8px 16px 40px rgba(0,0,0,0.5);
  transition: transform 0.4s ease;
}
.story-cover-wrap:hover .story-cover-card { transform: rotate(0deg); }
.story-cover-content { text-align: center; padding: 24px; }
.story-cover-teal-bar { width: 40px; height: 2px; background: #0F6E56; margin: 0 auto 16px; }
.story-cover-title { font-size: 18px; font-weight: 700; color: #E6EDF3; margin: 0 0 8px; }
.story-cover-sub { font-size: 12px; color: #8B949E; margin: 0; }
.story-cta-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 24px;
  border: 1px solid #0F6E56;
  color: #0F6E56;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.story-cta-btn:hover { background: #0F6E56; color: #fff; }
@media (max-width: 767px) {
  .story-teaser-inner { grid-template-columns: 1fr; }
  .story-cover-wrap { max-width: 160px; margin: 0 auto; }
}

/* ===== WAVE B1 — LOST-SIGNAL WAVEFORM (Pain Cards) ===== */
.pain-card { position: relative; overflow: hidden; }
.pain-wave { position: absolute; bottom: 0; left: 0; right: 0; height: 32px;
             pointer-events: none; opacity: 0.15; }
.pain-wave .pain-ekg  { fill: none; stroke-width: 1.5; transition: opacity 0.5s ease; }
.pain-wave .pain-flat { fill: none; stroke-width: 1.5; opacity: 0; transition: opacity 0.5s ease; }
.amber-frame .pain-ekg, .amber-frame .pain-flat { stroke: #F59E0B; }
.teal-frame  .pain-ekg, .teal-frame  .pain-flat { stroke: #00C9A7; }
.pain-card:hover .pain-wave { opacity: 0.5; }
.pain-card:hover .pain-ekg  { opacity: 0; }
.pain-card:hover .pain-flat { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .pain-ekg, .pain-flat { transition: none !important; }
  .pain-card:hover .pain-ekg  { opacity: 1; }
  .pain-card:hover .pain-flat { opacity: 0; }
}

/* ===== WAVE B2 — DP STAMP ANIMATION ===== */
@keyframes dp-stamp {
  0%   { transform: scale(1.1) rotate(1.5deg); opacity: 0; }
  60%  { transform: scale(0.97) rotate(-0.3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.dp-item.active.stamp-in { animation: dp-stamp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@media (prefers-reduced-motion: reduce) { .dp-item.active.stamp-in { animation: none; } }

/* ===== WAVE B1 — EKG DRAW ANIMATION (stroke-dashoffset left→right) ===== */
/* SVG polyline path length ~260px — dasharray covers full length */
.pain-ekg {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
}
/* Trigger draw when parent .section-reveal becomes .visible */
.section-reveal.visible .pain-ekg {
  animation: ekg-draw 0.9s ease-out forwards;
}
/* Stagger by card position */
.section-reveal.visible .pain-card:nth-child(1) .pain-ekg { animation-delay: 0.05s; }
.section-reveal.visible .pain-card:nth-child(2) .pain-ekg { animation-delay: 0.20s; }
.section-reveal.visible .pain-card:nth-child(3) .pain-ekg { animation-delay: 0.35s; }
.section-reveal.visible .pain-card:nth-child(4) .pain-ekg { animation-delay: 0.50s; }
.section-reveal.visible .pain-card:nth-child(5) .pain-ekg { animation-delay: 0.65s; }

@keyframes ekg-draw {
  to { stroke-dashoffset: 0; }
}

/* Hover flatline takes over after draw (existing transition) */
.pain-card:hover .pain-ekg { animation: none; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .pain-ekg { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}

/* ===== WAVE B3 — BENTO CARD-DEALING (initial state via bento-entrance.js inline styles) ===== */
/* NO translateY — bento-flow.js relies on getBoundingClientRect() for particle zones.       */
/* Initial opacity:0 / scale(0.95) set via JS to avoid CSS specificity race on load.         */
/* CSS only owns the reduced-motion fallback (show immediately) and transition definition.   */
@media (prefers-reduced-motion: reduce) {
  .bento-card { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===== WAVE B4 / WAVE 10 — EXPLORATION ZONE INVITE (3 CFP Scenario Cards) ===== */
.explore-invitation { background: var(--bg-primary); padding: 5rem 0; }
.explore-invitation-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

/* 3-column scenario card grid */
.explore-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 2.5rem 0 2rem;
  text-align: left;
}

.explore-scenario-card {
  background: #161B22;
  border: 1px solid #30363D;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  position: relative;
  overflow: hidden;
}

.explore-scenario-card:hover {
  border-color: rgba(0, 201, 167, 0.45);
  box-shadow: 0 0 16px rgba(0, 201, 167, 0.12);
}

/* Drag hint icon — appears on hover */
.explore-drag-hint {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 12px;
  color: var(--teal);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  user-select: none;
}
.explore-scenario-card:hover .explore-drag-hint { opacity: 0.7; }

/* SVG nodes get grab cursor — handled by JS, but predefine for SVG circles */
.explore-scenario-graph svg circle { cursor: grab; }

.explore-scenario-header {
  display: flex;
  align-items: center;
}

/* Badge pills: KONFLIKT / SPANNUNG / ANNAHME */
.explore-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid currentColor;
}
.explore-badge--conflict  { color: #EF4444; background: rgba(239,68,68,0.1);   border-color: rgba(239,68,68,0.3); }
.explore-badge--tension   { color: #F59E0B; background: rgba(245,158,11,0.1);  border-color: rgba(245,158,11,0.3); }
.explore-badge--assumption{ color: #8B949E; background: rgba(139,148,158,0.1); border-color: rgba(139,148,158,0.3); }

.explore-scenario-title {
  font-size: 13px;
  font-weight: 600;
  color: #E6EDF3;
  line-height: 1.4;
}

/* Mini SVG graph area */
.explore-scenario-graph {
  background: #0D1117;
  border-radius: 6px;
  padding: 8px;
}
.explore-scenario-graph svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Metrics row */
.explore-scenario-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid #21262D;
}
.explore-metric-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8B949E;
}
.explore-metric-value {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}
.explore-metric-value--low { color: #EF4444; }
.explore-metric-value--mid { color: #F59E0B; }
.explore-metric-value--ok  { color: #00C9A7; }

/* CTA */
.explore-invitation .cta-btn-w7 { margin-top: 0.5rem; }

/* Mobile: single column, full-width CTA */
@media (max-width: 768px) {
  .explore-scenario-grid { grid-template-columns: 1fr; }
  .explore-invitation .cta-btn-w7 {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .explore-scenario-card { transition: none; }
}

/* ===== WAVE DP — STICKY SCROLLYTELLING ===== */
/* Glass document: 7 beats, ticker, clock, SIGNIERT stamp */

/* Outer scroll spacer */
#decision-packet {
  background: var(--bg-primary);
  position: relative;
}
.dp-scroll-spacer {
  /* height set by dp-scroll.js — default 3000px */
  min-height: 3000px;
}
.dp-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}

/* Glass document card */
.dp-glass-card {
  width: min(720px, 92vw);
  background: rgba(22, 27, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 201, 167, 0.22);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(0, 201, 167, 0.04),
    0 0 60px rgba(0, 201, 167, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Header bar — terminal ticker + clock */
.dp-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0A0D11;
  padding: 0.55rem 1.25rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.68rem;
  border-bottom: 1px solid rgba(0, 201, 167, 0.1);
  gap: 1rem;
}
.dp-ticker-live {
  color: #3FB950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
  transition: opacity 0.2s ease;
}
.dp-clock-live {
  color: #00C9A7;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* Letterhead */
.dp-letterhead {
  padding: 1.1rem 1.5rem 0.8rem;
  border-bottom: 1px solid rgba(0, 201, 167, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.dp-doc-title {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00C9A7;
  font-weight: 700;
}
.dp-doc-meta {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}
.dp-doc-badge {
  font-size: 0.62rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: var(--text-muted);
  border: 1px solid rgba(0, 201, 167, 0.15);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}

/* Section blocks — initial hidden */
.dp-section-block {
  padding: 0.9rem 1.75rem;
  border-bottom: 1px solid rgba(0, 201, 167, 0.06);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.5s ease;
}
.dp-section-block.visible {
  opacity: 1;
  transform: translateY(0);
}
.dp-field-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00C9A7;
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dp-field-label::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00C9A7;
  flex-shrink: 0;
}
.dp-field-content {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.dp-field-content strong { color: var(--text-primary); }
.dp-field-content em {
  font-style: normal;
  color: #00C9A7;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.72rem;
}
.dp-provenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.6rem;
  color: var(--amber, #BA7517);
  border: 1px solid rgba(186, 117, 23, 0.25);
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
  margin-top: 0.4rem;
}

/* SIGNIERT stamp */
#dp-stamp {
  padding: 1.1rem 1.5rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  transform: scale(0.88) rotate(-2deg);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#dp-stamp.visible {
  opacity: 1;
  transform: scale(1) rotate(-12deg);
}
#dp-stamp svg { width: 156px; }
#dp-stamp svg rect { fill: none; stroke: #00C9A7; stroke-width: 2.5; }
#dp-stamp svg text {
  fill: #00C9A7;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 19px;
  text-anchor: middle;
  letter-spacing: 0.14em;
}
.dp-stamp-sub {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.6rem;
  color: var(--amber, #BA7517);
  margin-top: 0.45rem;
  letter-spacing: 0.06em;
  transform: rotate(12deg);
}

/* Finale text */
.dp-finale-text {
  text-align: center;
  padding: 0.6rem 1.5rem 1.1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.6s ease 0.35s;
}
.dp-finale-text.visible { opacity: 1; }
.dp-finale-text strong { color: var(--text-primary); }

/* prefers-reduced-motion: show all immediately */
@media (prefers-reduced-motion: reduce) {
  .dp-section-block,
  #dp-stamp,
  .dp-finale-text {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== BENTO CARD-E — Process Phases (Extraktion → Elicitation → Evocation) ===== */
.bento-process-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.5rem;
  width: 100%;
}
.bento-process-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
}
.bento-process-icon {
  width: 26px;
  height: 26px;
  display: block;
  margin: 0 auto 6px;
  opacity: 1;
  flex-shrink: 0;
}

.bento-process-n {
  font-size: 1.6rem;
  font-weight: 700;
  color: #00C9A7;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bento-process-n--amber { color: #BA7517; }
.bento-process-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ── Steerable Tooltip — data-tip attr ── */
[data-tip] {
  position: relative;
  cursor: help;
}
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #161B22;
  border: 1px solid #30363D;
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 0.65rem;
  font-weight: 400;
  color: #8B949E;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  font-style: normal;
  letter-spacing: 0.02em;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
[data-tip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #30363D;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 20;
}
[data-tip]:hover::after,
[data-tip]:hover::before { opacity: 1; }
.bento-process-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}
.bento-process-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
  opacity: 0.5;
}
.explore-preview-frame { animation: explore-glow 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .explore-preview-frame { animation: none; } }
.explore-preview-inner { background: var(--bg-secondary); padding: 1.75rem; }
.explore-preview-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.25rem; font-weight: 600; }
.explore-mock-bar { display: flex; gap: 0.6rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 1.5rem; }
.explore-mock-pill { font-size: 0.75rem; padding: 0.3rem 0.8rem; border-radius: 100px;
  border: 1px solid var(--border-subtle); color: var(--text-muted); }
.explore-mock-pill--active { border-color: #00C9A7; color: #00C9A7; background: rgba(15,110,86,0.1); }
.explore-mock-graph { display: flex; gap: 2rem; justify-content: center;
  align-items: center; padding: 0.5rem 0; }
.explore-mock-node { width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border-subtle); background: var(--bg-surface); }
.explore-mock-node--a { border-color: #00C9A7; background: rgba(15,110,86,0.15); }
.explore-mock-node--b { width: 52px; height: 52px;
  border-color: rgba(15,110,86,0.5); background: rgba(15,110,86,0.08); }
.explore-mock-node--c { border-color: #F59E0B; background: rgba(186,117,23,0.1); }
.explore-invitation .cta-btn { margin-top: 2rem; }

/* ===== WAVE DP — STICKY SCROLLYTELLING ===== */
/* Glass document: 7 beats, ticker, clock, SIGNIERT stamp */

/* Outer scroll spacer */
#decision-packet {
  background: var(--bg-primary);
  position: relative;
}
.dp-scroll-spacer {
  /* height set by dp-scroll.js — default 3000px */
  min-height: 3000px;
}
.dp-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}

/* Glass document card */
.dp-glass-card {
  width: min(720px, 92vw);
  background: rgba(22, 27, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 201, 167, 0.22);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(0, 201, 167, 0.04),
    0 0 60px rgba(0, 201, 167, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Header bar — terminal ticker + clock */
.dp-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0A0D11;
  padding: 0.55rem 1.25rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.68rem;
  border-bottom: 1px solid rgba(0, 201, 167, 0.1);
  gap: 1rem;
}
.dp-ticker-live {
  color: #3FB950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
  transition: opacity 0.2s ease;
}
.dp-clock-live {
  color: #00C9A7;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* Letterhead */
.dp-letterhead {
  padding: 1.1rem 1.5rem 0.8rem;
  border-bottom: 1px solid rgba(0, 201, 167, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.dp-doc-title {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00C9A7;
  font-weight: 700;
}
.dp-doc-meta {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}
.dp-doc-badge {
  font-size: 0.62rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: var(--text-muted);
  border: 1px solid rgba(0, 201, 167, 0.15);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}

/* Section blocks — initial hidden */
.dp-section-block {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(0, 201, 167, 0.06);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.5s ease;
}
.dp-section-block.visible {
  opacity: 1;
  transform: translateY(0);
}
.dp-field-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00C9A7;
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dp-field-label::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00C9A7;
  flex-shrink: 0;
}
.dp-field-content {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.dp-field-content strong { color: var(--text-primary); }
.dp-field-content em {
  font-style: normal;
  color: #00C9A7;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.72rem;
}
.dp-provenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.6rem;
  color: var(--amber, #BA7517);
  border: 1px solid rgba(186, 117, 23, 0.25);
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
  margin-top: 0.4rem;
}

/* SIGNIERT stamp */
#dp-stamp {
  padding: 1.1rem 1.5rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  transform: scale(0.88) rotate(-2deg);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#dp-stamp.visible {
  opacity: 1;
  transform: scale(1) rotate(-12deg);
}
#dp-stamp svg { width: 156px; }
#dp-stamp svg rect { fill: none; stroke: #00C9A7; stroke-width: 2.5; }
#dp-stamp svg text {
  fill: #00C9A7;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 19px;
  text-anchor: middle;
  letter-spacing: 0.14em;
}
.dp-stamp-sub {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.6rem;
  color: var(--amber, #BA7517);
  margin-top: 0.45rem;
  letter-spacing: 0.06em;
  transform: rotate(12deg);
}

/* Finale text */
.dp-finale-text {
  text-align: center;
  padding: 0.6rem 1.5rem 1.1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.6s ease 0.35s;
}
.dp-finale-text.visible { opacity: 1; }
.dp-finale-text strong { color: var(--text-primary); }

/* prefers-reduced-motion: show all immediately */
@media (prefers-reduced-motion: reduce) {
  .dp-section-block,
  #dp-stamp,
  .dp-finale-text {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
