/* Design Process — three full-height screens modelled on the "Iteration Process" poster.
   Same theme as the rest of the site: white, IBM Plex Mono, #4053ff accent, hairline rules. */

.page-design-process { --rule-soft: #e4e7ee; --ink-2: #1c2433; --ink-3: #596177; --tint: #f3f4f7; --ok: #1f9d55; --bad: #d23c3c; }
/* hero: same collapsing masthead as the home page, with the workshop collage darkened */
.five-part-home.page-design-process .research-banner {
 background:
  linear-gradient(180deg, rgba(0,0,0,.80) 0%, rgba(0,0,0,.58) 45%, rgba(0,0,0,.76) 100%),
  url('dp-banner.jpg') center 45% / cover;
}
.five-part-home.page-design-process .dp-screen { scroll-margin-top: calc(var(--hero-min) + 12px); }

.dp-screen { display: grid; gap: 30px; padding: 44px 0 48px; border-bottom: 1px solid var(--rule-soft); }
.dp-screen:last-of-type { border-bottom: 0; }

/* stage header */
.dp-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; align-items: end; }
.dp-index { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.dp-index::after { content: ""; width: 36px; height: 1px; background: var(--accent); opacity: .6; }
.dp-head h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.3px; margin: 0; }
.dp-head p { font-size: 14px; line-height: 1.7; color: var(--ink-muted); margin: 0; }

/* sub-block titles */
.dp-block { display: grid; gap: 18px; }
.dp-block h3 { font-size: 18px; line-height: 1.3; margin: 0; }
.dp-block h3 small { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }

/* horizontal flow of steps with arrows between */
.dp-flow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr) 28px; gap: 12px; align-items: stretch; }
.dp-flow > .dp-step:last-child { grid-column: span 1; }
.dp-arrow { display: grid; place-items: center; color: var(--accent); font-size: 22px; align-self: center; }
.dp-arrow::before { content: "→"; }

/* a step / version card */
.dp-step { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--rule-soft); background: #fff; min-width: 0; }
.dp-step figure { margin: 0; background: var(--tint); height: 230px; overflow: hidden; border-bottom: 1px solid var(--rule-soft); }
.dp-step figure.diagram { background: #fff; }
.dp-step img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.dp-step-body { padding: 14px 16px 16px; display: grid; align-content: start; gap: 8px; }
.dp-step-label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.dp-step-title { font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.dp-step ul { margin: 0; padding-left: 16px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.dp-step li + li { margin-top: 5px; }
.dp-step li em { font-style: normal; color: var(--accent); }
.dp-step p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }

/* verdict badge (✗ / ✓) */
.dp-verdict { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.dp-verdict::before { content: "✗"; font-size: 14px; font-weight: 700; color: var(--bad); }
.dp-verdict.ok::before { content: "✓"; color: var(--ok); }
.dp-verdict.ok { color: var(--ok); }
.dp-verdict:not(.ok) { color: var(--bad); }

/* two-up / three-up blocks */
.dp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.dp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; align-items: start; }

/* before → after pair */
.dp-pair { display: grid; grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr); gap: 12px; align-items: stretch; }
.dp-pair .dp-step figure { height: 210px; }

/* screen 2 is dense: smaller figures */
.dp-screen.dense .dp-step figure { height: 175px; }
.dp-screen.dense { gap: 26px; }

.dp-cite { font-size: 11px; color: var(--ink-3); letter-spacing: .02em; }
.dp-step-text { grid-template-rows: auto; }
.dp-step-text .dp-step-body { padding: 16px 18px 18px; }
.innov-grid .dp-pair .dp-step figure { height: 190px; }
.dp-pair-text { grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr); }

.dp-note { margin: 0 auto; padding: 0; }
.dp-note-top { margin-top: 22px; }
.dp-note p { margin: 0; padding: 12px 16px; background: var(--accent-soft); border-left: 3px solid var(--accent); font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.dp-note-top + .dp-screen { padding-top: 36px; }
.dp-note a { color: var(--accent); font-weight: 600; border-bottom: 1px solid currentColor; }
.dp-note a:hover { background: #fff; }

.dp-hardware .how-assembly { align-items: start; }
.dp-hardware .how-electronics h3 { font-size: 22px; margin: 10px 0 18px; }

@media (max-width: 1100px) {
 .dp-step figure, .dp-screen.dense .dp-step figure { height: 170px; }
}
@media (max-width: 900px) {
 .dp-screen { padding: 36px 0; gap: 26px; }
 .dp-head { grid-template-columns: 1fr; gap: 10px; }
 .dp-flow { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; }
 .dp-arrow { display: none; }
 .dp-grid-3 { grid-template-columns: 1fr 1fr; }
 .dp-grid-2 { grid-template-columns: 1fr; }
 .dp-pair-text { grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr); }
}
@media (max-width: 600px) {
 .dp-note-top { margin-top: 14px; }
 .dp-note p { padding: 10px 12px; font-size: 12px; }
 .five-part-home.page-design-process .research-banner { background-position: 50% 45%, 50% 45%; }
 .dp-screen { padding: 28px 0; gap: 22px; }
 .dp-head h2 { font-size: 24px; }
 .dp-head p { font-size: 13px; }
 .dp-block h3 { font-size: 16px; }
 .dp-flow, .dp-grid-3, .dp-pair { grid-template-columns: 1fr; }
 .dp-pair { display: grid; }
 .dp-pair .dp-arrow { display: none; }
 .dp-step figure, .dp-screen.dense .dp-step figure, .dp-pair .dp-step figure { height: 200px; }
}
