/* ---------- hoofdstukken (pinned scrolly) ---------- */
.chapter {
  min-height: 180svh;
  position: relative;
}

.chapter-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 6rem clamp(1.2rem, 5vw, 3rem);
}

.chapter-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.chapter-num {
  font-size: 0.95rem;
  color: var(--accent-bright);
}

.chapter-rule {
  height: 1px;
  width: clamp(40px, 8vw, 120px);
  background: linear-gradient(90deg, var(--accent-bright), transparent);
}

.chapter-label {
  color: var(--ink-soft);
}

.chapter-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 1.6rem + 4vw, 4.6rem);
  line-height: 1.02;
  margin: 0 0 1.4rem;
  letter-spacing: -0.01em;
}

.chapter-text {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: var(--text-body);
  margin: 0 0 2rem;
}

.chapter-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.chapter-points li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: var(--ink-soft);
  background: rgba(5, 13, 10, 0.5);
}

/* flow band in hoofdstuk 02 */
.flow-band {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.flow-step {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  color: var(--ink);
  background: rgba(5, 13, 10, 0.6);
}

.flow-arrow {
  width: clamp(24px, 4vw, 56px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-bright), transparent);
  position: relative;
  overflow: visible;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  animation: flow-dot 2.4s linear infinite;
}

/* ---------- farm ---------- */
.farm {
  padding: var(--space-section) clamp(1.2rem, 5vw, 3rem);
}

.farm-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.plot {
  position: relative;
  display: grid;
  gap: 0.45rem;
  align-content: start;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem 1.4rem 1.2rem;
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.35s var(--ease-expo), border-color 0.35s ease, box-shadow 0.35s ease;
}

.plot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(63, 227, 143, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.plot:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.plot:hover::before {
  opacity: 1;
}

.plot-pulse {
  position: absolute;
  top: 1.35rem;
  right: 1.3rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 0 rgba(63, 227, 143, 0.5);
  animation: plot-pulse 2.6s ease-out infinite;
}

.plot-status {
  color: var(--accent-bright);
  font-size: 0.6rem;
}

.plot-sector {
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.plot-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0.2rem;
}

.plot-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.plot-url {
  margin-top: 0.7rem;
  color: var(--accent);
  font-size: 0.62rem;
}

/* ---------- methode loop ---------- */
.method {
  padding: var(--space-section) clamp(1.2rem, 5vw, 3rem);
}

.loop-wrap {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.loop-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.loop-svg {
  width: min(380px, 80vw);
  height: auto;
}

.loop-ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

.loop-ring-dash {
  stroke: var(--line);
  stroke-dasharray: 6 10;
  transform-origin: center;
  animation: loop-spin 30s linear infinite reverse;
}

.loop-runner {
  fill: var(--accent-bright);
  filter: drop-shadow(0 0 8px rgba(63, 227, 143, 0.8));
  transform-origin: center;
  animation: loop-spin 12s linear infinite;
}

.loop-center {
  position: absolute;
  color: var(--accent-bright);
  font-size: 0.8rem;
}

.loop-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.loop-steps li {
  display: flex;
  gap: 1.1rem;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.1rem;
}

.loop-step-num {
  color: var(--accent-bright);
  font-size: 0.8rem;
}

.loop-steps h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.loop-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- proof ---------- */
.proof {
  padding: var(--space-section) clamp(1.2rem, 5vw, 3rem);
}

.proof-grid {
  max-width: 1060px;
  margin: 0 auto 2.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.proof-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 1.4rem 1.2rem;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.proof-num {
  font-size: clamp(1.8rem, 1.4rem + 2vw, 2.8rem);
  color: var(--accent-bright);
  margin: 0 0 0.5rem;
  letter-spacing: 0;
  text-transform: none;
}

.proof-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.proof-quotes {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.proof-quotes blockquote {
  margin: 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  background: var(--surface);
  padding: 1.4rem;
}

.proof-quotes p {
  margin: 0 0 0.7rem;
  font-size: 1.02rem;
}

.proof-quotes cite {
  font-style: normal;
  color: var(--ink-soft);
}

/* ---------- reveals ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .farm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loop-wrap,
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .farm-grid,
  .proof-grid,
  .proof-quotes {
    grid-template-columns: 1fr;
  }

  .chapter {
    min-height: 150svh;
  }

  .nav-cta {
    display: none;
  }
}

/* ---------- keyframes ---------- */
@keyframes plot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 227, 143, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(63, 227, 143, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(63, 227, 143, 0);
  }
}

@keyframes loop-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes flow-dot {
  0% {
    left: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 6px);
    opacity: 0;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-signature path,
  .logo-mark,
  .scroll-cue-line,
  .loop-runner,
  .loop-ring-dash,
  .plot-pulse,
  .flow-arrow::after {
    animation: none !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
