.flow-board {
  overflow: hidden;
  padding: clamp(24px, 4vw, 58px);
  border: 1px solid rgba(23, 33, 29, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.93);
  box-shadow: var(--shadow);
}

.screen-reader-summary {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.phase-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phase-heading::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.phase-number {
  color: var(--terracotta-deep);
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.branch-card {
  position: relative;
  min-height: 378px;
  padding: 27px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--branch-accent);
  border-radius: var(--radius-md);
  background: var(--paper-light);
}

.branch-photo { --branch-accent: var(--terracotta); }
.branch-sketch { --branch-accent: var(--sage); }

.branch-title-row {
  display: flex;
  gap: 15px;
  align-items: center;
}

.branch-letter {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--branch-accent);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.45rem;
}

.branch-card h3,
.pipeline-card h3,
.asset-card h3,
.room-step h3,
.story-card h3,
.truth-section h3,
.done-grid h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.branch-card h3 { margin-top: 2px; font-size: 1.55rem; }

.branch-steps {
  display: grid;
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.branch-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  min-height: 66px;
}

.branch-steps li:not(:last-child)::before {
  position: absolute;
  top: 28px;
  bottom: 0;
  left: 13px;
  width: 1px;
  background: var(--line);
  content: "";
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-light);
  font-size: 0.65rem;
  font-weight: 800;
}

.branch-steps strong,
.branch-steps small {
  display: block;
}

.branch-steps strong { font-size: 0.9rem; }
.branch-steps small { margin-top: 2px; color: var(--muted); font-size: 0.76rem; }

.branch-result {
  position: absolute;
  right: 27px;
  bottom: 23px;
  left: 27px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.convergence {
  position: relative;
  height: 74px;
}

.convergence::before {
  position: absolute;
  top: 0;
  right: 25%;
  left: 25%;
  height: 37px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  border-radius: 0 0 18px 18px;
  content: "";
}

.convergence::after {
  position: absolute;
  top: 37px;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.convergence span {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.approval-gate {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--terracotta);
  box-shadow: 0 17px 35px rgba(143, 69, 47, 0.18);
  color: var(--white);
}

.gate-index {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.approval-gate h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 500;
}

.approval-gate p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
}

.gate-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  font-size: 1.15rem;
}

.shared-heading,
.asset-heading,
.room-heading {
  margin-top: 62px;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline-card {
  position: relative;
  min-height: 240px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.pipeline-card:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -12px;
  z-index: 2;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--terracotta-deep);
  content: "→";
  font-size: 0.75rem;
  transform: translateY(-50%);
}

.pipeline-card-verified {
  border-color: rgba(97, 119, 103, 0.52);
  background: var(--sage-light);
}

.pipeline-index,
.asset-index {
  display: block;
  margin-bottom: 31px;
  color: var(--terracotta-deep);
  font-size: 0.68rem;
  font-weight: 800;
}

.pipeline-card h3,
.asset-card h3 { font-size: 1.35rem; }

.pipeline-card p,
.asset-card p,
.room-step p,
.done-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

.pipeline-tag {
  position: absolute;
  bottom: 19px;
  left: 23px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.asset-flow {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr 1.08fr;
  gap: 14px;
  align-items: stretch;
}

.asset-card,
.view-decision {
  min-height: 212px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.asset-card { background: var(--white); }
.asset-generated { background: var(--gold-light); }
.asset-model { border-color: var(--ink); background: var(--ink); color: var(--white); }
.asset-model p { color: rgba(255, 255, 255, 0.64); }
.asset-model .asset-index { color: #d8bc87; }

.view-decision {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
  text-align: center;
}

.decision-label {
  color: var(--terracotta-deep);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.view-decision > strong {
  margin: 7px 0 18px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.decision-paths {
  display: grid;
  gap: 6px;
}

.decision-paths span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  font-size: 0.64rem;
}

.decision-paths b { color: var(--terracotta-deep); }

.room-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.room-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  min-height: 128px;
  align-items: start;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.room-step > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--sage);
  font-size: 0.67rem;
  font-weight: 800;
}

.room-step h3 { margin-top: 4px; font-size: 1.13rem; }

.outcome-card {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--white);
}

.outcome-card::before,
.outcome-card::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.outcome-card::before { top: -180px; right: -80px; width: 420px; height: 420px; }
.outcome-card::after { right: 145px; bottom: -220px; width: 360px; height: 360px; }

.outcome-label {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.56);
}

.outcome-copy {
  position: relative;
  z-index: 1;
  max-width: 750px;
  margin-top: 55px;
}

.outcome-kicker { color: #d8bc87; }

.outcome-copy h3 {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5.1rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.outcome-copy > p:last-child {
  max-width: 580px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.outcome-outputs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 50px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
  list-style: none;
}

.outcome-outputs li {
  padding: 15px;
  background: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.outcome-outputs em { color: #d8bc87; font-style: normal; }

