/* ============================================================
   Chapter system — editorial factory profile
   ============================================================ */

.chapter {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 360px);
  gap: 12px 36px;
  align-items: start;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
  margin-bottom: clamp(36px, 4vw, 56px);
}
.ch-num {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--leaf); font-variant-numeric: tabular-nums;
  padding-top: 6px;
}
.chapter h2 {
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  letter-spacing: -0.035em;
  max-width: 20ch;
}
.chapter p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.65; }

/* horizontal process diagram */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); }
.flow-step { padding: 22px 20px 24px; border-right: 1px solid var(--line); position: relative; }
.flow-step:last-child { border-right: 0; }
.flow-step .n { font-size: 10.5px; letter-spacing: 0.16em; color: var(--leaf); font-weight: 600; }
.flow-step h4 { font-size: 14px; margin: 10px 0 6px; letter-spacing: -0.01em; }
.flow-step p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
.flow-step::after {
  content: ""; position: absolute; right: -5px; top: 26px;
  width: 8px; height: 8px; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong);
  transform: rotate(45deg); background: var(--white);
}
.flow-step:last-child::after { display: none; }

/* wide photo band with caption, used as a chapter divider */
.photo-band { position: relative; }
.photo-band img { width: 100%; height: clamp(320px, 46vw, 560px); object-fit: cover; }
.photo-band .cap {
  position: absolute; left: 0; bottom: 0;
  background: var(--pine); color: var(--paper);
  font-size: 12px; letter-spacing: 0.02em; padding: 14px 22px; max-width: 70%;
}

/* commercial terms */
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.term { background: var(--white); padding: 20px 22px; display: grid; gap: 6px; }
.term .k { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.term .v { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.term .d { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

@media (max-width: 1024px) {
  .chapter { grid-template-columns: 48px minmax(0, 1fr); }
  .chapter p { grid-column: 2; margin-top: 10px; }
  .flow { grid-template-columns: 1fr; }
  .flow-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-step:last-child { border-bottom: 0; }
  .flow-step::after { display: none; }
  .terms { grid-template-columns: 1fr; }
}
