/* sd/steps — owns its three layouts. Stacked: a timeline down a hand-drawn thread, each step with the face
   of who leads it. In a row: numbered bubbles joined by a drawn dashed line, then title, line and chip.
   Timeline: a line across the page with a dot per step, then when, title, line and who leads it.
   sd/step renders only inside sd/steps, so its styles live here too. */

/* ---- Stacked: the timeline, moved from src/css/primitives/service-page.css ---- */
/* ===========================================================
   Process — a timeline, each step with the person who leads it
   =========================================================== */

.sd-process__steps {
	position: relative;
	display: grid;
	gap: clamp(28px, 3vw, 40px);
	max-width: 52rem;
	margin-inline: auto;
}

/* The thread joining the faces, drawn behind them. */
.sd-process__steps::before {
	content: "";
	position: absolute;
	top: 36px;
	bottom: 36px;
	left: 35px;
	border-left: 2px dashed color-mix(in srgb, var(--wp--preset--color--sd-deep-midnight) 18%, transparent);
}

.sd-step {
	position: relative;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: clamp(18px, 2.4vw, 32px);
	align-items: start;
}

.sd-step__who {
	position: relative;
	width: 72px;
	height: 72px;
}

.sd-avatar {
	display: block;
	width: 72px;
	height: 72px;
	border: 3px solid var(--wp--preset--color--white);
	border-radius: 50%;
	object-fit: cover;
	background: var(--wp--preset--color--sd-cream);
	box-shadow: 0 0 0 1px rgb(1 29 43 / 0.1), 0 1px 3px rgb(1 29 43 / 0.16);
}

/* Someone whose photo is still to come: their initials on a cream circle. */
.sd-avatar--initials {
	display: grid;
	place-items: center;
	font-family: var(--svc-display);
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--svc-ink);
	background: var(--wp--preset--color--sd-cream);
}

.sd-avatar--initials {
	font-size: 1.625rem;
}

/* Two leads: the faces overlap, the second tucked behind and below. */
.sd-avatar-pair {
	position: relative;
	display: block;
	width: 72px;
	height: 72px;
}

.sd-avatar-pair .sd-avatar {
	position: absolute;
	width: 50px;
	height: 50px;
}

.sd-avatar-pair .sd-avatar:first-child {
	top: 0;
	left: 0;
	z-index: 1;
}

.sd-avatar-pair .sd-avatar:last-child {
	right: -4px;
	bottom: -6px;
	z-index: 2;
	font-size: 1.0625rem;
}

.sd-step__body {
	padding: 6px 0 0;
}

.sd-step__body p:not(.sd-step__chip) {
	margin-bottom: 12px;
}

.sd-steps .sd-step__chip {
	display: inline-block;
	margin: 0;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	box-shadow: inset 0 1px 0 var(--wp--preset--color--white), 0 0 0 1px rgb(1 29 43 / 0.08), 0 1px 1px rgb(1 29 43 / 0.04);
	font-family: var(--svc-sans);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
}


@media (width < 48rem) {
	.sd-step {
		grid-template-columns: 56px minmax(0, 1fr);
	}

	.sd-step__who,
	.sd-avatar,
	.sd-avatar-pair {
		width: 56px;
		height: 56px;
	}

	.sd-avatar-pair .sd-avatar {
		width: 40px;
		height: 40px;
	}

	.sd-avatar--initials { font-size: 1.25rem; }

	.sd-process__steps::before {
		left: 27px;
	}
}


/*
 * The thread between the faces as a gently swaying dashed line, in the stroke of the hand-drawn arrows. A
 * faint line runs the whole way; over it a flamingo line fills in as the timeline scrolls through the window, so
 * the line completes itself as you read. Without scroll-driven animation, or with reduced motion, the
 * flamingo wave is simply complete.
 */
.sd-process__steps::before,
.sd-process__steps::after {
	content: "";
	position: absolute;
	top: 40px;
	bottom: 40px;
	left: 16px;
	width: 40px;
	border: 0;
	background-repeat: repeat-y;
	background-size: 40px 200px;
	pointer-events: none;
}

.sd-process__steps::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='200' viewBox='0 0 40 200'%3E%3Cpath d='M20 0 C28 50 28 50 20 100 S12 150 20 200' pathLength='24' fill='none' stroke='%231d2d35' stroke-width='3' stroke-linecap='round' stroke-dasharray='1 1' stroke-dashoffset='-.5'/%3E%3C/svg%3E");
	opacity: 0.2;
}

.sd-process__steps::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='200' viewBox='0 0 40 200'%3E%3Cpath d='M20 0 C28 50 28 50 20 100 S12 150 20 200' pathLength='24' fill='none' stroke='%23db0a5b' stroke-width='3' stroke-linecap='round' stroke-dasharray='1 1' stroke-dashoffset='-.5'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.sd-process__steps {
			view-timeline-name: --sd-process;
		}

		.sd-process__steps::after {
			animation: sd-process-ink linear both;
			animation-timeline: --sd-process;
			animation-range: cover 15% cover 75%;
		}
	}
}

@keyframes sd-process-ink {
	from { clip-path: inset(0 0 100% 0); }
	to { clip-path: inset(0 0 0 0); }
}

.sd-step__who {
	z-index: 1;
}

/* The thread stops at the last face: from that face's middle down, the step paints the section's
   own white over it, under the face and clear of the words. */
.sd-process__steps .sd-step:last-child::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: 36px;
	bottom: 0;
	left: 0;
	width: 72px;
	background: var(--wp--preset--color--white);
}

@media (width < 48rem) {
	.sd-process__steps::before,
	.sd-process__steps::after {
		left: 8px;
	}

	.sd-process__steps .sd-step:last-child::before {
		top: 28px;
		width: 56px;
	}
}

/* ---- Numbering and In a row ---- */
.sd-step__title { margin: 0 0 var(--wp--preset--spacing--20); }

.sd-steps {
  --svc-ink: var(--wp--preset--color--sd-deep-midnight);
  --svc-display: var(--wp--preset--font-family--display);
  --svc-faint: color-mix(in srgb, var(--wp--preset--color--sd-deep-midnight) 12%, transparent);
  --svc-sans: var(--wp--preset--font-family--sans);
  counter-reset: sd-step;
}
.sd-steps .sd-step { counter-increment: sd-step; }
.sd-steps:not(.sd-steps--row, .sd-steps--timeline, .sd-steps--journey) .sd-step__title::before { content: counter(sd-step) ". "; }

.sd-steps--row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}
.sd-steps--row::before, .sd-steps--row::after { content: none; display: none; }
.sd-steps--row .sd-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--20);
  padding: 0;
}
.sd-steps--row .sd-step::before {
  content: counter(sd-step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--wp--preset--spacing--45);
  height: var(--wp--preset--spacing--45);
  margin-block-end: var(--wp--preset--spacing--20);
  padding-block-start: 3px;
  border: 1px solid var(--wp--preset--color--paper-edge);
  border-radius: var(--wp--custom--radius--full);
  background: linear-gradient(var(--wp--preset--color--white), var(--wp--preset--color--sd-cream));
  box-shadow: var(--wp--custom--shadow--raised-quiet);
  font-family: var(--wp--preset--font-family--script);
  font-size: var(--wp--preset--font-size--fixed-24);
  line-height: 1;
  color: var(--wp--preset--color--secondary);
}
.sd-steps--row .sd-step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block-start: calc(var(--wp--preset--spacing--45) / 2 - 3px);
  inset-inline: calc(var(--wp--preset--spacing--45) + var(--wp--preset--spacing--20)) calc(var(--wp--preset--spacing--40) * -1 + var(--wp--preset--spacing--20));
  height: 6px;
  background: url("../../assets/decorations/dashes-drawn.svg") left center / 320px 6px repeat-x;
  opacity: 0.55;
}
.sd-steps--row .sd-step__who { display: none; }
.sd-steps--row .sd-step__title { font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--fixed-24); font-weight: 500; line-height: 1.2; text-transform: none; }
.sd-steps--row .sd-step__body p:not(.sd-step__chip) { margin: 0; font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--fixed-18); line-height: var(--wp--custom--line-height--body); color: color-mix(in srgb, var(--wp--preset--color--sd-deep-midnight) 78%, transparent); }
.sd-steps--row .sd-step__chip { align-self: start; margin-block-start: var(--wp--preset--spacing--20); }
@media (max-width: 767px) { .sd-steps--row .sd-step::after { display: none; } }

/* ---- Timeline ---- */
/* The stacked layout's idea laid across the page: the faces of who leads each step are the beads, joined
   by the stacked layout's swaying dashed thread (the same pen, laid flat) on one level. Under each face, in rows shared by every step: when (the
   label), the title, what happens, then who leads it, which lines up along the bottom however long the
   text is. A step with no photo gets a raised Flamingo disc with an arrow as its bead (launch day).
   Give each step one paragraph, so the rows stay shared. Below 72rem, where five no longer fit in a row, it stands up: faces down the
   left, the thread running down between them. */
.sd-steps--timeline {
  --sd-timeline-bead: var(--wp--preset--spacing--v-5-14);
  --sd-timeline-gap: var(--wp--preset--spacing--50);

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--wp--preset--spacing--20) var(--sd-timeline-gap);
}
.sd-steps--timeline::before, .sd-steps--timeline::after { content: none; display: none; }
.sd-steps--timeline .sd-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: subgrid;
  grid-row: span 4;
  gap: var(--wp--preset--spacing--20);
  align-content: start;
  padding: calc(var(--sd-timeline-bead) + var(--wp--preset--spacing--30)) 0 0;
}
/* The thread from this bead to the next. */
.sd-steps--timeline .sd-step:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-block-start: calc(var(--sd-timeline-bead) / 2 - 20px);
  inset-inline: calc(var(--sd-timeline-bead) + var(--wp--preset--spacing--20)) calc(var(--wp--preset--spacing--20) - var(--sd-timeline-gap));
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='40' viewBox='0 0 200 40'%3E%3Cpath d='M0 20 C50 28 50 28 100 20 S150 12 200 20' pathLength='24' fill='none' stroke='%23db0a5b' stroke-width='3' stroke-linecap='round' stroke-dasharray='1 1' stroke-dashoffset='-.5'/%3E%3C/svg%3E") left center / 200px 40px repeat-x;
}
.sd-steps--timeline .sd-step__who {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
}
.sd-steps--timeline .sd-step__who,
.sd-steps--timeline .sd-avatar { width: var(--sd-timeline-bead); height: var(--sd-timeline-bead); }
.sd-steps--timeline .sd-step:not(:has(.sd-step__who))::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: var(--sd-timeline-bead);
  height: var(--sd-timeline-bead);
  border-radius: var(--wp--custom--radius--full);
  background: url("../../assets/icons/arrow.svg") center / var(--wp--preset--spacing--40) no-repeat, var(--wp--preset--color--secondary);
  box-shadow: var(--wp--custom--shadow--raised-accent);
}
.sd-steps--timeline .sd-step__body { display: contents; }
.sd-steps--timeline .sd-step__body > * { margin: 0; }
.sd-steps--timeline .sd-step__label {
  font-family: var(--wp--preset--font-family--sans);
  font-size: var(--wp--preset--font-size--fixed-13);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--secondary);
}
.sd-steps--timeline .sd-step__title { font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--fixed-24); font-weight: 500; line-height: 1.2; text-transform: none; text-wrap: balance; }
.sd-steps--timeline .sd-step__body p:not(.sd-step__chip, .sd-step__label) { font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--fixed-18); line-height: 1.5; color: color-mix(in srgb, var(--wp--preset--color--sd-deep-midnight) 78%, transparent); text-wrap: pretty; }
/* Who leads it: plain words over a short drawn dash, so a two-line name does not become a lozenge. */
.sd-steps--timeline .sd-step__body > .sd-step__chip {
  display: block;
  align-self: start;
  margin-block-start: var(--wp--preset--spacing--20);
  padding: var(--wp--preset--spacing--v-5-3) 0 0;
  border-radius: 0;
  background: url("../../assets/decorations/dashes-drawn.svg") left top / 320px 6px repeat-x;
  box-shadow: none;
  font-size: var(--wp--preset--font-size--fixed-14);
  line-height: 1.4;
  text-wrap: balance;
}

@media (width < 72rem) {
  .sd-steps--timeline { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: var(--wp--custom--size--reading); }
  .sd-steps--timeline .sd-step {
    grid-template-rows: none;
    grid-row: auto;
    padding: 0 0 var(--wp--preset--spacing--50) calc(var(--sd-timeline-bead) + var(--wp--preset--spacing--40));
  }
  .sd-steps--timeline .sd-step:last-child { padding-block-end: 0; }
  /* The stacked layout's own thread, from under this face to the next. */
  .sd-steps--timeline .sd-step:not(:last-child)::before {
    inset-block: calc(var(--sd-timeline-bead) + var(--wp--preset--spacing--10)) var(--wp--preset--spacing--10);
    inset-inline: calc(var(--sd-timeline-bead) / 2 - 20px) auto;
    width: 40px;
    height: auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='200' viewBox='0 0 40 200'%3E%3Cpath d='M20 0 C28 50 28 50 20 100 S12 150 20 200' pathLength='24' fill='none' stroke='%23db0a5b' stroke-width='3' stroke-linecap='round' stroke-dasharray='1 1' stroke-dashoffset='-.5'/%3E%3C/svg%3E") center top / 40px 200px repeat-y;
  }
  .sd-steps--timeline .sd-step__body > .sd-step__chip { padding-block-start: 0; background: none; }
}

/* ---- Stacked, with numbers and pictures ---- */
/* A step with no face gets a small numbered bead instead (and drops the number from its title).
   When the steps carry a Picture, the pictures stand down the left and the thread joins them, each with
   its bead on the corner and the words beside it. On a phone the bead sits on the thread beside the words
   and the picture follows, the thread running on behind it. */
.sd-process__steps .sd-step:not(:has(.sd-step__who))::after {
  content: counter(sd-step);
  z-index: 2;
  grid-area: 1 / 1;
  justify-self: center;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--wp--preset--spacing--v-5-8);
  height: var(--wp--preset--spacing--v-5-8);
  padding-block-start: 2px;
  border: 1px solid var(--wp--preset--color--paper-edge);
  border-radius: var(--wp--custom--radius--full);
  background: linear-gradient(var(--wp--preset--color--white), var(--wp--preset--color--sd-cream));
  box-shadow: var(--wp--custom--shadow--raised-quiet);
  font-family: var(--wp--preset--font-family--script);
  font-size: var(--wp--preset--font-size--fixed-22);
  line-height: 1;
  color: var(--wp--preset--color--secondary);
}
.sd-process__steps .sd-step:not(:has(.sd-step__who)) .sd-step__body { grid-column: 2; grid-row: 1; }
.sd-process__steps .sd-step:not(:has(.sd-step__who)) .sd-step__title::before { content: none; }
.sd-process__steps .sd-step__label {
  margin: 0 0 var(--wp--preset--spacing--20);
  font-family: var(--wp--preset--font-family--sans);
  font-size: var(--wp--preset--font-size--fixed-13);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--secondary);
}
.sd-process__steps .sd-step__shot { position: relative; z-index: 1; grid-column: 1 / -1; grid-row: 2; margin: 0; }
.sd-process__steps .sd-step__shot img,
.sd-process__steps .sd-step__shot video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--wp--custom--radius--md);
  background: var(--wp--preset--color--white);
  box-shadow: var(--wp--custom--shadow--raised-quiet);
}
.sd-process__steps:has(.sd-step__shot) { --sd-steps-shot: 40px; }
.sd-process__steps:has(.sd-step__shot)::before,
.sd-process__steps:has(.sd-step__shot)::after { top: var(--wp--preset--spacing--40); left: calc(var(--sd-steps-shot) / 2 - 20px); }
.sd-process__steps:has(.sd-step__shot) .sd-step { grid-template-columns: var(--sd-steps-shot) minmax(0, 1fr); gap: var(--wp--preset--spacing--30); }
.sd-process__steps:has(.sd-step__shot) .sd-step:last-child::before { content: none; }
.sd-process__steps:has(.sd-step__shot) .sd-step__body { padding: 0; }
@media (width >= 48rem) {
  .sd-process__steps:has(.sd-step__shot) { --sd-steps-shot: 20rem; max-width: 60rem; gap: var(--wp--preset--spacing--v-5-16); }
  .sd-process__steps:has(.sd-step__shot) .sd-step { gap: var(--wp--preset--spacing--60); align-items: center; }
  .sd-process__steps:has(.sd-step__shot) .sd-step__shot { grid-column: 1; grid-row: 1; }
  .sd-process__steps:has(.sd-step__shot) .sd-step::after { align-self: start; justify-self: start; margin: calc(var(--wp--preset--spacing--20) * -1) 0 0 calc(var(--wp--preset--spacing--20) * -1); }
}

/* With pictures, the step names are set large; the beads stay the kit's raised paper pills. */
.sd-process__steps:has(.sd-step__shot) .sd-step__title { font-size: clamp(var(--wp--preset--font-size--fixed-28), 3.2vw, var(--wp--preset--font-size--fixed-40)); line-height: 1.02; }
.sd-process__steps:has(.sd-step__shot) .sd-step__body p:not(.sd-step__label, .sd-step__chip) { margin: 0; color: color-mix(in srgb, var(--wp--preset--color--sd-deep-midnight) 78%, transparent); }
@media (width >= 48rem) {
  .sd-process__steps:has(.sd-step__shot) { --sd-steps-shot: clamp(12.5rem, 34vw, 27.5rem); max-width: 67.5rem; margin-inline: 0; }
}

/* ---- Journey ---- */
/* The process as a route on a map: numbered beads on the swaying dashed thread, which runs across the
   first three steps, turns down the right-hand side and comes back along the next three, so six steps
   read 1 2 3 across and 4 5 6 back. Under each bead a picture of that step (the step's Picture), then
   when, the title and what happens. The map holds six steps; below 62rem it stands up, beads down the
   left with the thread between them. */
.sd-steps--journey {
  --sd-journey-bead: var(--wp--preset--spacing--45);
  --sd-journey-gap: var(--wp--preset--spacing--50);
  --sd-journey-turn: 60px; /* the turn's drawn tile */

  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--wp--custom--size--reading);
  margin-inline: auto;
}
.sd-steps--journey::before, .sd-steps--journey::after { content: none; display: none; }
.sd-steps--journey .sd-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
  padding: 0 0 var(--wp--preset--spacing--50) calc(var(--sd-journey-bead) + var(--wp--preset--spacing--30));
}
.sd-steps--journey .sd-step:last-child { padding-block-end: 0; }
.sd-steps--journey .sd-step__who { display: none; }
/* The bead. */
.sd-steps--journey .sd-step__body::before {
  content: counter(sd-step);
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--sd-journey-bead);
  height: var(--sd-journey-bead);
  padding-block-start: 3px;
  border: 1px solid var(--wp--preset--color--paper-edge);
  border-radius: var(--wp--custom--radius--full);
  background: linear-gradient(var(--wp--preset--color--white), var(--wp--preset--color--sd-cream));
  box-shadow: var(--wp--custom--shadow--raised-quiet);
  font-family: var(--wp--preset--font-family--script);
  font-size: var(--wp--preset--font-size--fixed-24);
  line-height: 1;
  color: var(--wp--preset--color--secondary);
}
/* The thread, standing: from under this bead to the next. */
.sd-steps--journey .sd-step:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-block: calc(var(--sd-journey-bead) + var(--wp--preset--spacing--10)) var(--wp--preset--spacing--10);
  inset-inline-start: calc(var(--sd-journey-bead) / 2 - 20px);
  width: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='200' viewBox='0 0 40 200'%3E%3Cpath d='M20 0 C28 50 28 50 20 100 S12 150 20 200' pathLength='24' fill='none' stroke='%23db0a5b' stroke-width='3' stroke-linecap='round' stroke-dasharray='1 1' stroke-dashoffset='-.5'/%3E%3C/svg%3E") center top / 40px 200px repeat-y;
}
.sd-steps--journey .sd-step__shot { margin: 0; }
.sd-steps--journey .sd-step__shot img,
.sd-steps--journey .sd-step__shot video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--wp--custom--radius--md);
  box-shadow: var(--wp--custom--shadow--raised-quiet);
}
.sd-steps--journey .sd-step__body { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--20); }
.sd-steps--journey .sd-step__body > * { margin: 0; }
.sd-steps--journey .sd-step__label {
  font-family: var(--wp--preset--font-family--sans);
  font-size: var(--wp--preset--font-size--fixed-13);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--secondary);
}
.sd-steps--journey .sd-step__title { font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--fixed-24); font-weight: 500; line-height: 1.2; text-transform: none; text-wrap: balance; }
.sd-steps--journey .sd-step__body p:not(.sd-step__chip, .sd-step__label) { font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--fixed-18); line-height: 1.5; color: color-mix(in srgb, var(--wp--preset--color--sd-deep-midnight) 78%, transparent); text-wrap: pretty; }
.sd-steps--journey .sd-step__chip { align-self: start; }

@media (width >= 62rem) {
  .sd-steps--journey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--wp--preset--spacing--60) var(--sd-journey-gap);
    max-width: none;
    padding-inline-end: var(--sd-journey-turn);
  }
  .sd-steps--journey .sd-step,
  .sd-steps--journey .sd-step:last-child { padding: calc(var(--sd-journey-bead) + var(--wp--preset--spacing--30)) 0 0; }
  /* The way back: 4 under 3, then 5 and 6 to its left. */
  .sd-steps--journey .sd-step:nth-child(4) { grid-area: 2 / 3; }
  .sd-steps--journey .sd-step:nth-child(5) { grid-area: 2 / 2; }
  .sd-steps--journey .sd-step:nth-child(6) { grid-area: 2 / 1; }
  /* The thread, laid flat: from this bead to the bead on its right. */
  .sd-steps--journey .sd-step::before,
  .sd-steps--journey .sd-step:not(:last-child)::before {
    content: "";
    position: absolute;
    inset-block: calc(var(--sd-journey-bead) / 2 - 20px) auto;
    inset-inline: calc(var(--sd-journey-bead) + var(--wp--preset--spacing--20)) calc(var(--wp--preset--spacing--20) - var(--sd-journey-gap));
    width: auto;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='40' viewBox='0 0 200 40'%3E%3Cpath d='M0 20 C50 28 50 28 100 20 S150 12 200 20' pathLength='24' fill='none' stroke='%23db0a5b' stroke-width='3' stroke-linecap='round' stroke-dasharray='1 1' stroke-dashoffset='-.5'/%3E%3C/svg%3E") left center / 200px 40px repeat-x;
  }
  /* 3 and 4 run out to the turn. */
  .sd-steps--journey .sd-step:nth-child(3)::before,
  .sd-steps--journey .sd-step:nth-child(4)::before { inset-inline-end: 0; background-position: right center; }
  /* The route stops at the last bead on the way out, and past the map. */
  .sd-steps--journey .sd-step:last-child:nth-child(-n + 3)::before,
  .sd-steps--journey .sd-step:nth-child(n + 7):last-child::before,
  .sd-steps--journey .sd-step:nth-child(6)::after { content: none; }
  /* The turn: two drawn quarter-bends with as much thread between them as the row is tall. */
  .sd-steps--journey .sd-step:nth-child(3):not(:last-child)::after {
    content: "";
    position: absolute;
    inset-block-start: calc(var(--sd-journey-bead) / 2 - 20px);
    inset-inline-start: 100%;
    box-sizing: border-box;
    width: var(--sd-journey-turn);
    height: calc(100% + var(--wp--preset--spacing--60) + 40px);
    border: solid transparent;
    border-width: 60px 60px 60px 0;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='170' viewBox='0 0 60 170' fill='none' stroke='%23db0a5b' stroke-width='3' stroke-linecap='round' stroke-dasharray='1 1' stroke-dashoffset='-.5'%3E%3Cpath d='M0 20 A40 40 0 0 1 40 60' pathLength='8'/%3E%3Cpath d='M40 60 C43 72 43 72 40 85 S37 98 40 110' pathLength='6'/%3E%3Cpath d='M40 110 A40 40 0 0 1 0 150' pathLength='8'/%3E%3C/svg%3E") 60 60 60 0 / 60px 60px 60px 0 round;
  }
}
