/* The workflow section, look 2 "bold tiles", 2026-09-20. One fast view, nothing small.
   Colour is the part of the firm. Red is a person or a hand-over. Ink is the AI's own step and the company memory. */
.dm-page .ft-section { padding-block: clamp(48px, 4.6vw, 76px); }
.dm-page .ft-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(30px, 4.4vw, 70px); align-items: center; }
.dm-page .ft-section .ft-heading.rd-statement { font-size: clamp(28px, 2.75vw, 40px); max-width: none; }   /* outranks the older .dm-flows heading rule */

/* ------------------------------------------------------------------ the focus panel: one routine as three linked mini tiles */
.dm-page .ft-focus { margin-top: clamp(28px, 3.4vw, 52px); --ft-area: #b9cf4a; }
.dm-page .ft-area { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; color: var(--rd-quiet); }
.dm-page .ft-key { display: inline-block; width: 18px; height: 18px; border-radius: 5px; background: var(--ft-area); flex: none; }
.dm-page .ft-name { font-family: var(--rd-display); font-size: clamp(34px, 3.3vw, 48px); letter-spacing: -.045em; font-weight: 600; line-height: 1; margin: 8px 0 0; }
.dm-page .ft-body { display: grid; margin-top: clamp(22px, 2.4vw, 32px); }
.dm-page .ft-body > * { grid-area: 1 / 1; }        /* steps and the memory text share one cell, so choosing the hub moves nothing */
.dm-page .ft-steps { position: relative; list-style: none; margin: 0; padding: 0; align-self: start; display: grid; gap: clamp(16px, 1.7vw, 24px); }
.dm-page .ft-steps::before { content: ""; position: absolute; left: 30px; top: 30px; bottom: 30px; width: 3px; margin-left: -1.5px; background: var(--rd-ink); }
.dm-page .ft-step { position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: center; font-size: clamp(20px, 1.65vw, 24px); line-height: 1.25; color: var(--rd-quiet); }
.dm-page .ft-mini { position: relative; z-index: 1; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--ft-area); color: var(--rd-ink); font-family: var(--rd-display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; transition: background .25s ease; }
.dm-page .ft-step-ai .ft-mini { background: var(--rd-ink); color: #fffdf6; }
.dm-page .ft-step-you .ft-mini { background: var(--rd-red); color: #fffdf6; }
.dm-page .ft-step-you { color: var(--rd-ink); font-weight: 600; }
.dm-page .ft-runner { position: absolute; left: 30px; top: 30px; z-index: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--rd-red); box-shadow: 0 0 0 2.5px var(--dm-sky); opacity: 0; }
.dm-page .ft-focus[data-swap="false"] .ft-runner { animation: ft-run 2.6s cubic-bezier(.5, 0, .5, 1) .35s 1 both; }   /* once per routine: In, AI, You */
@keyframes ft-run { 0% { top: 30px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 30px); opacity: 0; } }
.dm-page .ft-about { visibility: hidden; margin: 0; align-self: start; font-size: clamp(20px, 1.65vw, 24px); line-height: 1.4; color: var(--rd-ink); max-width: 24em; }
.dm-page .ft-focus[data-kind="hub"] .ft-steps { visibility: hidden; }
.dm-page .ft-focus[data-kind="hub"] .ft-about { visibility: visible; }
.dm-page .ft-focus[data-swap="false"] .ft-name, .dm-page .ft-focus[data-swap="false"] .ft-step-text, .dm-page .ft-focus[data-swap="false"] .ft-about { animation: ft-swap .26s ease-out; }
@keyframes ft-swap { from { opacity: .15; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
.dm-page .ft-own { display: none; min-height: 1.5em; margin: clamp(10px, 1.1vw, 16px) 0 0; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; font-weight: 600; color: var(--rd-red); }
.dm-page .ft-focus[data-own="true"] .ft-own { display: block; }      /* the line keeps its room on every routine, so the panel never changes size */
.dm-page .ft-note { margin: clamp(24px, 2.6vw, 38px) 0 0; font-size: clamp(18px, 1.35vw, 20px); line-height: 1.5; color: var(--rd-quiet); max-width: 30em; }

/* ------------------------------------------------------------------ the firm */
.dm-page .ft-graph { display: block; width: 100%; height: auto; max-height: 80svh; overflow: visible; }
.dm-page .ft-spoke { fill: none; stroke: var(--rd-ink); stroke-width: 3; stroke-linecap: round; }
.dm-page .ft-feed { fill: none; stroke: var(--rd-red); stroke-width: 5; stroke-linecap: round; }
.dm-page .ft-arrowhead { fill: var(--rd-red); }
/* calm: a dot only shows for the chosen routine (its line to the memory, its own hand-overs) */
.dm-page .ft-traveller { fill: var(--rd-red); stroke: #fffdf6; stroke-width: 2.6; }
.dm-page .ft-pulse { fill: var(--rd-ink); stroke: var(--dm-sky); stroke-width: 2; }
.dm-page .ft-traveller, .dm-page .ft-pulse { opacity: 0; transition: opacity .3s ease; }
.dm-page .ft-traveller[data-on="true"], .dm-page .ft-pulse[data-on="true"] { opacity: 1; }
.dm-page .ft-tile { cursor: pointer; outline: none; transition: scale .22s cubic-bezier(.3, 1.4, .5, 1); }
.dm-page .ft-tile:hover, .dm-page .ft-tile[data-chosen="true"] { scale: 1.08; }
.dm-page .ft-hub .ft-box { fill: var(--rd-ink); }
.dm-page .ft-chosen { fill: none; stroke: var(--rd-red); stroke-width: 5; opacity: 0; transition: opacity .18s ease; }
.dm-page .ft-tile[data-chosen="true"] .ft-chosen, .dm-page .ft-tile:focus-visible .ft-chosen { opacity: 1; }
.dm-page .ft-icon-fill { fill: #fffdf6; stroke: none; }
.dm-page .ft-icon-line { fill: none; stroke: var(--rd-ink); stroke-width: 3.3; stroke-linecap: round; stroke-linejoin: round; }
.dm-page .ft-icon-light .ft-icon-line { stroke: #fffdf6; }
.dm-page .ft-label { font-family: var(--rd-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; text-anchor: middle; fill: var(--rd-ink); paint-order: stroke; stroke: var(--dm-sky); stroke-width: 8px; stroke-linejoin: round; }
.dm-page .ft-hub-label { font-family: var(--rd-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; text-anchor: middle; fill: #fffdf6; }
.dm-page .ft-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: clamp(10px, 1.4vw, 20px) 0 0; padding: 0; font-size: 18px; color: var(--rd-quiet); }
.dm-page .ft-legend li { display: flex; align-items: center; gap: 9px; }
@media (min-width: 700px) { .dm-page .ft-legend { display: grid; grid-template-columns: repeat(3, max-content); justify-content: center; } }      /* six parts of the firm: two rows of three, not five and one left over */

/* a quick entrance, clockwise, once the firm is in view */
.dm-page .ft-grid:not([data-seen="true"]) .ft-tile { opacity: 0; scale: .6; }
.dm-page .ft-grid[data-seen="true"] .ft-tile { animation: ft-pop .36s cubic-bezier(.3, 1.4, .5, 1) backwards; animation-delay: calc(.08s + var(--i) * .06s); }
@keyframes ft-pop { from { opacity: 0; scale: .6; } }
.dm-page .ft-feed { stroke-dasharray: 1 1; }
.dm-page .ft-grid:not([data-seen="true"]) .ft-feed { stroke-dashoffset: 1; }
.dm-page .ft-grid[data-seen="true"] .ft-feed { animation: ft-draw .5s ease-out .8s backwards; }
@keyframes ft-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* below 1200 the two columns would shrink the labels under 18 px, so the firm takes the full width instead */
@media (max-width: 1200px) {
  .dm-page .ft-grid { grid-template-columns: minmax(0, 1fr); }
  .dm-page .ft-side { display: contents; }
  .dm-page .ft-heading { order: -2; }
  .dm-page .ft-stage { order: -1; }
  .dm-page .ft-graph { max-width: 80svh; margin-inline: auto; }
  .dm-page .ft-focus { margin-top: 8px; }
  .dm-page .ft-step { min-height: 76px; }                           /* room for three lines, so the panel keeps its height from routine to routine */
}
@media (max-width: 600px) {
  .dm-page .ft-own { min-height: 3em; }                              /* two lines on a phone, reserved on every routine */
  .dm-page .ft-label, .dm-page .ft-hub-label { display: none; }     /* too small to read at this width: the panel names the routine instead */
  .dm-page .ft-hub .ft-icon { translate: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .dm-page .ft-tile, .dm-page .ft-feed, .dm-page .ft-name, .dm-page .ft-step-text, .dm-page .ft-about { animation: none !important; opacity: 1 !important; scale: 1 !important; stroke-dashoffset: 0 !important; }
  .dm-page .ft-traveller, .dm-page .ft-pulse, .dm-page .ft-runner { display: none; }
}
