/* Shared city workflow. Canonical palette and type inherit from landing.css. */
.cw-section {
  --cw-line: color-mix(in srgb, var(--paper) 23%, var(--ink));
  --cw-muted: color-mix(in srgb, var(--paper) 74%, var(--ink));
  padding-block: 44px;
  scroll-margin-top: 0;
}
.cw-section *, .cw-section *::before, .cw-section *::after { box-sizing: border-box; }
.cw-wrap { width: 100%; max-width: calc(var(--max) + var(--pad)*2); padding-inline: var(--pad); margin-inline: auto; }
.cw-panel { padding: clamp(24px, 2.65vw, 36px); border-radius: 24px; background: var(--ink); color: var(--paper); }
.cw-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .4fr); align-items: end; gap: 40px; }
.cw-kicker { margin: 0 0 18px; color: var(--acid); font: 700 10px/1.4 var(--body); letter-spacing: .13em; text-transform: uppercase; }
.cw-heading h2 { margin: 0; font: 500 clamp(29px, 3.35vw, 48px)/1.16 var(--display); letter-spacing: -.055em; }
.cw-heading h2 span { font-family: var(--body); font-size: 1.12em; font-style: italic; font-weight: 400; color: var(--cw-muted); }
.cw-intro { max-width: 300px; margin: 0 0 3px; color: var(--cw-muted); font-size: 13px; line-height: 1.7; }
.cw-flow { position: relative; margin-top: 30px; }
.cw-return-label { position: absolute; top: 0; left: 29%; right: 13%; margin: 0; color: var(--cw-muted); text-align: center; font-size: 10px; line-height: 1.5; }
.cw-route { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; color: var(--acid); pointer-events: none; }
.cw-wire, .cw-feedback-wire { fill: none; stroke: var(--cw-line); stroke-width: 1.25; }
.cw-feedback-wire { stroke-dasharray: 3 6; stroke: color-mix(in srgb, var(--acid) 44%, var(--ink)); }
.cw-measure { fill: none; stroke: none; }
.cw-signal { visibility: hidden; color: var(--acid); filter: drop-shadow(0 0 5px #c8ff3240); }
.cw-stages { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 48px 0 0; list-style: none; }
.cw-stage { --cw-tilt: -1deg; position: relative; display: grid; grid-template-rows: 34px 1fr auto; min-width: 0; gap: 18px; padding: 0 20px; }
.cw-stage:first-child { padding-left: 0; }
.cw-stage:last-child { padding-right: 0; }
.cw-stage:nth-child(2) { --cw-tilt: 1deg; }
.cw-stage:nth-child(3) { --cw-tilt: -.7deg; }
.cw-stage:nth-child(4) { --cw-tilt: .7deg; }
.cw-port { position: relative; z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--cw-line); border-radius: 50%; background: var(--ink); color: var(--paper); font: 500 10px/1 var(--display); }
.cw-copy { min-width: 0; }
.cw-action-label { margin: 0 0 9px; color: var(--cw-muted); font-size: 9px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; }
.cw-copy h3 { margin: 0 0 12px; font: 500 clamp(16px, 1.4vw, 20px)/1.4 var(--display); letter-spacing: -.045em; }
.cw-description { max-width: 30em; margin: 0; color: var(--cw-muted); font-size: 13px; line-height: 1.75; }
.cw-deliverable { position: relative; min-width: 0; min-height: 140px; margin-top: 6px; padding: 17px 17px 15px; background: var(--paper); color: var(--ink); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); transform: rotate(var(--cw-tilt)); transform-origin: 50% 90%; }
.cw-deliverable::after { content: ""; position: absolute; top: 0; right: 0; width: 16px; height: 16px; background: color-mix(in srgb, var(--paper) 75%, var(--ink)); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.cw-deliverable--plan { background: var(--acid); }
.cw-deliverable--plan::after { background: color-mix(in srgb, var(--acid) 70%, var(--ink)); }
.cw-deliverable-label { margin: 0 0 12px; font-size: 8px; font-weight: 700; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase; }
.cw-deliverable h4 { margin: 0 0 10px; font: 700 18px/1.23 var(--body); letter-spacing: -.035em; }
.cw-deliverable > p:last-child { margin: 0; color: color-mix(in srgb, var(--ink) 74%, var(--paper)); font-size: 12px; line-height: 1.5; }
.cw-continuation { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--cw-line); }
.cw-cycle-mark { flex: none; color: var(--acid); font: 400 34px/1 var(--body); }
.cw-continuation p { max-width: 850px; margin: 0; color: var(--cw-muted); font-size: 12px; line-height: 1.7; }
.cw-continuation strong { color: var(--paper); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .cw-port { transition: background-color .2s, border-color .2s, color .2s; }
  .cw-deliverable { transition: transform .3s var(--ease); }
  .cw-stage[data-cw-current] .cw-port { background: var(--acid); border-color: var(--acid); color: var(--ink); }
  .cw-stage[data-cw-current] .cw-deliverable { transform: translateY(-3px) rotate(0deg); }
}

@media (max-width: 1080px) {
  .cw-heading { grid-template-columns: 1fr; gap: 18px; }
  .cw-heading h2 { font-size: clamp(28px, 4.6vw, 44px); }
  .cw-intro { max-width: 620px; font-size: 13px; }
  .cw-flow { margin-top: 26px; }
  .cw-return-label { display: none; }
  .cw-stages { display: block; padding: 0 0 0 14px; }
  .cw-stage, .cw-stage:first-child, .cw-stage:last-child { grid-template-columns: 34px minmax(0, 1.2fr) minmax(170px, 1fr); grid-template-rows: auto; align-items: start; gap: 18px; padding: 25px 0; }
  .cw-stage + .cw-stage { border-top: 1px solid var(--cw-line); }
  .cw-stage:first-child { padding-top: 0; }
  .cw-stage:last-child { padding-bottom: 0; }
  .cw-copy h3 { font-size: 18px; }
  .cw-copy h3 br { display: none; }
    .cw-description { font-size: 13px; }
  .cw-deliverable { min-height: 145px; margin-top: 0; }
}

@media (max-width: 640px) {
  .cw-section { padding-block: 40px; }
  .cw-panel { padding: 24px 18px; border-radius: 18px; }
  .cw-kicker { margin-bottom: 18px; font-size: 9px; }
  .cw-heading h2 { font-size: clamp(25px, 5.9vw, 36px); line-height: 1.2; }
  .cw-intro { font-size: 12px; line-height: 1.65; }
  .cw-stage, .cw-stage:first-child, .cw-stage:last-child { grid-template-columns: 32px minmax(0, 1fr); gap: 15px; padding-block: 24px; }
  .cw-stage:first-child { padding-top: 0; }
  .cw-stage:last-child { padding-bottom: 0; }
  .cw-port { width: 32px; height: 32px; font-size: 9px; }
  .cw-copy h3 { font-size: 16px; line-height: 1.45; }
  .cw-copy h3 br { display: initial; }
  .cw-description { font-size: 13px; line-height: 1.7; }
  .cw-deliverable { --cw-tilt: 0deg; grid-column: 2; min-height: 0; margin-top: 2px; padding: 15px; }
  .cw-deliverable-label { margin-bottom: 9px; }
  .cw-deliverable h4 { font-size: 17px; margin-bottom: 8px; }
  .cw-deliverable h4 br { display: none; }
    .cw-continuation { align-items: flex-start; gap: 10px; margin-top: 24px; padding-top: 18px; }
  .cw-continuation p { font-size: 11px; }
  .cw-cycle-mark { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  .cw-signal { display: none; }
  .cw-deliverable { transform: none; }
}
@media (forced-colors: active) {
  .cw-panel, .cw-deliverable, .cw-port { border: 1px solid CanvasText; }
  .cw-deliverable { clip-path: none; }
  .cw-deliverable::after, .cw-signal { display: none; }
  .cw-wire, .cw-feedback-wire { stroke: CanvasText; }
  .cw-route { color: CanvasText; }
}
