/* =========================================================================
   Flywheel + How We Work — page-specific styles
   ========================================================================= */

/* ---------- Flywheel ---------- */
.flywheel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-top: 12px;
}

.fw-stage {
  position: relative;
  width: 100%;
  max-width: 468px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  justify-self: center;
}
.fw-svg { width: 100%; height: 100%; overflow: visible; display: block; }

/* base/inactive segment */
.fw-seg {
  stroke: var(--sand);
  opacity: 0.9;
  transition: stroke .35s ease, opacity .35s ease, filter .35s ease;
}
.fw-seg.on {
  stroke: var(--tw-accent);
  opacity: 1;
  filter: drop-shadow(0 6px 16px color-mix(in srgb, var(--tw-accent) 35%, transparent));
}

.fw-seg-num {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  fill: var(--ink-faint);
  transition: fill .35s ease;
}
.fw-seg-num.on { fill: #fff; }

.fw-arrow { opacity: 0.4; transition: opacity .35s ease; }
.fw-stage.engaged .fw-arrow { opacity: 0.8; }

/* rotor rotates slowly at rest, pauses on engagement */
.fw-rotor { transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .fw-rotor { animation: fw-spin 70s linear infinite; }
  .fw-stage.engaged .fw-rotor { animation-play-state: paused; }
}
@keyframes fw-spin { to { transform: rotate(360deg); } }

/* hub */
.fw-hub {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 23%; height: 23%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--sand), 0 10px 30px -16px rgba(0,0,0,0.25);
}
.fw-hub .spiral { width: 64%; height: 64%; color: var(--tw-accent); }

/* zone labels (HTML, positioned over svg) */
.fw-labels { position: absolute; inset: 0; pointer-events: none; }
.fw-zone {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  font-family: var(--sans);
  text-align: center;
  transition: color .25s ease;
}
/* anchor side labels to their inner edge so text never crosses into the ring */
.fw-zone[data-side="right"]  { transform: translate(10px, -50%); align-items: flex-start; text-align: left; }
.fw-zone[data-side="left"]   { transform: translate(-100%, -50%); margin-left: -10px; align-items: flex-end; text-align: right; }
.fw-zone[data-side="top"]    { transform: translate(-50%, -100%); }
.fw-zone[data-side="bottom"] { transform: translate(-50%, 0); }
.fw-zone-num {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  transition: color .25s ease;
}
.fw-zone-label {
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .25s ease;
}
.fw-zone:hover .fw-zone-label,
.fw-zone:focus-visible .fw-zone-label,
.fw-zone.on .fw-zone-label { color: var(--ink); }
.fw-zone.on .fw-zone-num { color: var(--tw-accent-ink); }
.fw-zone.on .fw-zone-label { color: var(--ink); font-weight: 600; }

/* panel */
.fw-panel { max-width: 30rem; }
.fw-panel-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.fw-panel-num {
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--tw-accent-ink);
}
.fw-panel-rule { flex: 1; height: 1px; background: var(--sand); }
.fw-panel-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--ink);
}
.fw-panel-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px;
  min-height: 6.5em;
}
@media (prefers-reduced-motion: no-preference) {
  .fw-panel.swap .fw-panel-title,
  .fw-panel.swap .fw-panel-desc { animation: fw-fade .45s ease both; }
}
@keyframes fw-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.fw-dots { display: flex; gap: 10px; }
.fw-dot {
  width: 30px; height: 4px;
  border-radius: 2px;
  border: none;
  background: var(--sand);
  cursor: pointer;
  padding: 0;
  transition: background .3s ease, width .3s ease;
}
.fw-dot.on { background: var(--tw-accent); width: 44px; }

.fw-closing {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 36px;
  border-top: 1px solid var(--sand);
  text-align: center;
}
.fw-closing p {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 30ch;
  margin: 0 auto;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.fw-closing p em { font-style: normal; color: var(--tw-accent-ink); }

/* =========================================================================
   ENGAGEMENT — horizontal flow (Neurons-Lab-clean)
   ========================================================================= */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 8px;
  counter-reset: beat;
}
.flow-beat {
  position: relative;
  padding: 36px 34px 36px 0;
  border-top: 2px solid var(--ink);
}
.flow-beat::before {
  counter-increment: beat;
  content: counter(beat, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--tw-accent-ink);
  position: absolute;
  top: 16px; left: 0;
}
.flow-beat .dot {
  position: absolute;
  top: -7px; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--tw-accent);
}
.flow-beat h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  margin: 34px 0 14px;
  color: var(--ink);
  max-width: 14ch;
}
.section.dark .flow-beat h4 { color: var(--bone); }
.flow-beat p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34ch;
}
.section.dark .flow-beat { border-top-color: var(--bone); }
.section.dark .flow-beat p { color: var(--bone-soft); }

/* =========================================================================
   WALK AWAY — three editorial tenets (no numbers, not sequential)
   ========================================================================= */
.tenets { display: flex; flex-direction: column; margin-top: 8px; }
.tenet {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: baseline;
  padding: clamp(28px, 3vw, 40px) 0;
  border-top: 1px solid var(--sand);
}
.tenet:last-child { border-bottom: 1px solid var(--sand); }
.tenet h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.tenet p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* =========================================================================
   WALK AWAY — three editorial blocks
   ========================================================================= */
.walk {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 8px;
}
.walk-item .num {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--tw-accent-ink);
  display: block;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sand);
}
.walk-item h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--ink);
  text-wrap: balance;
}
.walk-item p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* closing CTA */
.cta-block { text-align: center; }
.cta-block .heading { margin: 0 auto; max-width: 24ch; }
.cta-block .cta-actions { margin-top: clamp(52px, 6vw, 76px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-block .cta-sub {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--bone-faint);
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .flywheel { grid-template-columns: 1fr; gap: 40px; }
  .fw-panel { max-width: none; }
  .flow { grid-template-columns: 1fr; }
  .flow-beat { padding: 28px 0; }
  .walk { grid-template-columns: 1fr; gap: 36px; }
  .tenet { grid-template-columns: 1fr; gap: 10px; }
}
