/* The process page ("Every step"): twelve steps from an idea to a finished video. Colours, type, buttons, panels, the top bar,
   the last call and the footer come from site.css; this file only adds the page. */

/* no timeline on this page */
body.process-page { padding-bottom: 0; --tl: 0px; }

.proc { max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: calc(var(--top) + 72px) var(--pad) 0; }
/* the head leaves room under it for Peek, who stands on the flow panel's top edge, on the right */
.proc-head { display: grid; gap: 20px; justify-items: start; margin-bottom: 64px; }
.proc-head h1.display { font-size: clamp(44px, 6vw, 88px); letter-spacing: -0.045em; line-height: .96; max-width: 13ch; }

.proc-body { position: relative; }

/* ---------- the path (the drawing of every step) ---------- */
/* Docked (wide screens): it sticks under the top bar while the steps scroll, on dark glass, so the steps pass
   under it. --dock-pad keeps its place the same whether it sticks or not */
.flow-dock { position: relative; z-index: 5; --dock-pad: 0px; }
.flow-dock.docked { position: sticky; top: var(--top); --dock-pad: 12px; margin-top: -12px; padding: 12px 0 16px; }
/* the glass band behind it only while it is stuck under the top bar (js/process.js sets .stuck), so it never shows as
   a dark box round the panel before that */
.flow-dock.docked.stuck { background: rgba(3, 1, 8, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.flow-peek { position: absolute; right: 28px; top: var(--dock-pad); width: 112px; transform: translateY(-100%); overflow: hidden; pointer-events: none; transition: opacity 200ms linear; }
.flow-peek.away { opacity: 0; }
.flow .panel-facts { color: var(--t2); font-variant-numeric: tabular-nums; }
.flow-draw { position: relative; }
.flow-draw svg { display: block; overflow: visible; }

/* lines, nodes, labels. The dots sit under the nodes, so the signal passes through each box */
.f-line { fill: none; stroke: rgba(185, 160, 255, .24); stroke-width: 1.5; }
.f-dot { fill: var(--accent); stroke: var(--s1); stroke-width: 2; }
.f-node rect { fill: var(--s2); stroke: var(--line2); stroke-width: 1; transition: fill var(--fast), stroke var(--fast); }
.f-node text { font: 500 13px var(--text); fill: var(--t2); transition: fill var(--fast); }
.f-node .f-num { font-size: 13px; fill: var(--t3); }
.f-node.past rect { stroke: rgba(185, 160, 255, .3); }
.f-node.past text { fill: var(--t1); }
.f-node.on rect { fill: #1b1830; stroke: rgba(194, 174, 255, .6); }
.f-node.on text { fill: var(--t1); }
.f-node.on .f-num { fill: var(--t1); }
.f-node:hover rect { stroke: rgba(194, 174, 255, .5); }
.f-node:hover text { fill: var(--t1); }
.f-node:focus { outline: none; }
.f-node:focus-visible rect { stroke: var(--accent-soft); stroke-width: 2; }
.f-flag path:first-child { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.f-flag path:last-child { fill: var(--accent); }

/* ---------- the twelve steps ---------- */
.stages { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.stage { scroll-margin-top: var(--snap, 16px); transition: border-color var(--slow) var(--ease); }
.stage.on { border-color: var(--line2); }
.stage .panel-name { transition: color var(--slow) var(--ease); }
.stage.on .panel-name { color: var(--t1); }
.stop-tag { gap: 7px; color: var(--t1); }
.stop-tag .flag { width: 10px; height: 12px; }

/* three columns on wide screens: the name, what happens, what you have at the end */
.stage-body { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 280px); gap: 32px; align-items: start; padding: 22px 24px 24px; }
.stage-name { margin: 0; font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; line-height: 1.12; }
.stage-text { display: grid; gap: 10px; }
.stage-text p { margin: 0; max-width: 62ch; font-size: 17px; line-height: 1.55; color: var(--t2); }

/* step 3: the three ways, as three short rows */
.ways3 { margin: 4px 0 0; display: grid; border-top: 1px solid var(--line); max-width: 62ch; }
.ways3 div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ways3 dt { font-size: 14px; font-weight: 600; color: var(--t3); }
.ways3 dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--t1); }

/* what exists at the end of the step: a small block, its label over its value */
.stage-get { margin: 0; display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--s2); box-shadow: 0 0 0 1px var(--line) inset; line-height: 1.45; }
.stage-get span:first-child { font-size: 13px; font-weight: 600; color: var(--t3); }
.stage-get span:last-child { font-size: 15px; color: var(--t1); }

.proc-note { margin: 28px 2px 0; max-width: 64ch; font-size: 17px; line-height: 1.5; color: var(--t2); }

/* ---------- narrower screens ---------- */
/* tablets: the name over what happens; "you get" becomes a row under the text, label left, value right */
@media (max-width: 1100px) {
  .stage-body { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 14px 28px; }
  .stage-get { grid-column: 2; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0 0; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--line); }
  .stage-get span:first-child { flex: none; white-space: nowrap; }
  .stage-get span:last-child { text-align: right; }
}
@media (max-width: 720px) {
  .proc { padding-top: calc(var(--top) + 40px); }
  .proc-head { gap: 16px; margin-bottom: 84px; }
  .proc-head h1.display { font-size: 44px; }
  .flow-peek { right: 20px; width: 96px; }
  .stage-body { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 16px 18px; }
  .stage-name { font-size: 24px; }
  .stage-text p { font-size: 16px; }
  .stage-get { grid-column: auto; }
  .stage-get span:last-child { font-size: 14px; }
  .ways3 div { grid-template-columns: 1fr; gap: 2px; }
  .ways3 dd { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-peek, .stage, .stage .panel-name, .f-node rect, .f-node text { transition: none; }
}
