/* =========================================================================
   /wordpress/migration/ (inc/seo-pages/wordpress-migration.php).

   The sections only this design draws, the mig-* partials, in page order,
   plus two page-wide tweaks. Colours are seo-core's --seo-* tokens only.
   ========================================================================= */

/* This design's section pins are ink (white on dark bands) with a 2px rule,
   where the family default is green text; only the hero's stays green. Two
   classes are needed to outrank seo-core's tone rules for the eyebrow. */
.seo--wordpress-migration .seo-eyebrow { color: var(--seo-fg); }
.seo--wordpress-migration .seo-eyebrow-rule { height: 2px; }
.seo--wordpress-migration .seo-mig-hero-eyebrow { color: var(--seo-green-deep); }

/* The design's underlined links carry a 2px yellow rule that stays yellow
   on hover. */
.seo-mig-link { padding-bottom: 8px; border-bottom: 2px solid var(--seo-yellow); }
.seo-mig-link:hover { border-color: var(--seo-yellow); }

/* ------------------------------------------------------------ mig-hero -- */

.seo-mig-hero-grid { display: grid; align-items: center; gap: 56px; }
@media (min-width: 768px) {
	.seo-mig-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.seo-mig-hero-text { max-width: 40rem; margin-top: 40px; }
.seo-mig-hero-text > * + * { margin-top: 20px; }
.seo-mig-hero-text .seo-hero-p { line-height: 1.8; }
.seo-mig-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px;
	margin-top: 40px;
}

.seo-mig-orbit {
	position: relative;
	display: none;
	width: 100%;
	max-width: 500px;
	aspect-ratio: 1;
	margin-inline: auto;
}
@media (min-width: 768px) {
	.seo-mig-orbit { display: block; }
}
.seo-mig-orbit-glow {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in oklab, var(--seo-green) 14%, transparent) 0%, transparent 65%);
}
.seo-mig-orbit-ring {
	position: absolute;
	border: 1px solid var(--seo-rule);
	border-radius: 50%;
}
.seo-mig-orbit-ring--dash { inset: 4%; border-style: dashed; }
.seo-mig-orbit-ring--mid { inset: 16%; }
.seo-mig-orbit-ring--inner { inset: 34%; }
.seo-mig-orbit-arc {
	inset: 16%;
	border: 2px solid transparent;
	border-bottom-color: var(--seo-green);
	transform: rotate(25deg);
}
.seo-mig-orbit-core {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 56px;
	height: 56px;
	transform: translate(-50%, -50%);
}
.seo-mig-orbit-glyph {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--seo-rule);
	background: var(--seo-paper);
	color: var(--seo-muted);
}
.seo-mig-orbit-glyph svg { width: 16px; height: 16px; }
.seo-mig-orbit-glyph--code { top: 10%; left: 14%; }
.seo-mig-orbit-glyph--cloud { top: 10%; right: 14%; }
.seo-mig-orbit-glyph--server { top: 40%; left: 2%; }
.seo-mig-orbit-glyph--database { top: 40%; right: 2%; }
.seo-mig-orbit-glyph--branch { bottom: 8%; left: 50%; transform: translateX(-50%); }

.seo-mig-stage {
	position: absolute;
	width: 38%;
	padding: 16px;
	border: 1px solid var(--seo-rule);
	background: var(--seo-alt);
}
.seo-mig-stage--0 { top: 1%; left: 50%; transform: translateX(-50%); }
.seo-mig-stage--1 { top: 52%; right: -4%; }
.seo-mig-stage--2 { top: 52%; left: -4%; }
.seo-mig-stage.is-active {
	border-color: var(--seo-ink);
	border-top: 4px solid var(--seo-green);
	background: var(--seo-paper);
}
.seo-mig-stage-n { font-family: var(--seo-mono); font-size: 0.75rem; color: var(--seo-muted); }
.seo-mig-stage.is-active .seo-mig-stage-n { color: var(--seo-green-deep); }
.seo-mig-stage-t { margin-top: 8px; }
.seo-mig-stage-d { margin-top: 4px; font-size: 0.875rem; line-height: 1.375; color: var(--seo-muted); }
.seo-mig-orbit-caption {
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	color: var(--seo-muted);
}
.seo-mig-orbit-caption span { border-bottom: 2px solid var(--seo-yellow); color: var(--seo-ink); }

.seo-mig-facts { display: grid; margin-top: 80px; background: var(--seo-green); }
@media (min-width: 768px) {
	.seo-mig-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.seo-mig-fact { padding: 28px; color: var(--seo-ink-deep); }
@media (min-width: 768px) {
	.seo-mig-fact + .seo-mig-fact { border-left: 1px solid color-mix(in oklab, var(--seo-ink-deep) 15%, transparent); }
}
.seo-mig-fact-body {
	min-height: 3rem;
	margin-top: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid color-mix(in oklab, var(--seo-ink-deep) 20%, transparent);
	font-size: 0.9375rem;
	color: color-mix(in oklab, var(--seo-ink-deep) 80%, transparent);
}
.seo-mig-fact-figure { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; }
.seo-mig-fact-value { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }

/* ----------------------------------------------------------- mig-cells -- */

.seo-mig-cells { --seo-mig-cell: var(--seo-paper); --seo-mig-cell-hover: var(--seo-alt); }
.seo-mig-cells.seo-tone--alt { --seo-mig-cell: var(--seo-alt); --seo-mig-cell-hover: var(--seo-paper); }
.seo-mig-cells.seo-tone--dark { --seo-mig-cell: var(--seo-ink); --seo-mig-cell-hover: var(--seo-ink-deep); }

.seo-mig-cells--ruled .seo-mig-cells-head { padding-bottom: 40px; border-bottom: 1px solid var(--seo-band-rule); }
.seo-mig-cells--ruled .seo-h2 { max-width: 22ch; }
@media (min-width: 768px) {
	.seo-mig-cells--ruled .seo-mig-cells-head { padding-bottom: 56px; }
}

.seo-mig-cells-grid {
	display: grid;
	gap: 1px;
	margin-top: 48px;
	border: 1px solid var(--seo-band-rule);
	background: var(--seo-band-rule);
}
.seo-mig-cells.seo-tone--dark .seo-mig-cells-grid { border-width: 1px 0 0; }
.seo-mig-cols-2 { margin-top: 56px; }
@media (min-width: 640px) {
	.seo-mig-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.seo-mig-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.seo-mig-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; }
}
@media (min-width: 1024px) {
	.seo-mig-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.seo-mig-cell {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 32px;
	background: var(--seo-mig-cell);
	transition: background-color 0.3s ease;
}
.seo-mig-cell:hover { background: var(--seo-mig-cell-hover); }
.seo-mig-cols-4 .seo-mig-cell { padding: 28px; }
@media (min-width: 768px) {
	.seo-mig-cell { padding: 40px; }
	.seo-mig-cols-4 .seo-mig-cell { padding: 32px; }
}
.seo-mig-cell-bar {
	position: absolute;
	top: 0;
	left: 0;
	width: 48px;
	height: 3px;
	background: var(--seo-green);
	transition: width 0.3s ease;
}
.seo-mig-cell:hover .seo-mig-cell-bar { width: 100%; }
.seo-mig-cell-bullet { display: block; flex: none; width: 7px; height: 7px; margin-top: 7px; background: var(--seo-green); }
.seo-mig-cell-label { color: var(--seo-green); }
.seo-mig-cell-label + .seo-mig-cell-title { margin-top: 20px; }
.seo-mig-cell-bullet + .seo-mig-cell-title { margin-top: 24px; }
.seo-mig-cols-4 .seo-mig-cell-title { font-size: 1.125rem; }
@media (min-width: 768px) {
	.seo-mig-cols-2 .seo-mig-cell-title { font-size: 1.5rem; }
	.seo-mig-cols-3 .seo-mig-cell-title { font-size: 1.375rem; }
}
.seo-mig-cell-copy { margin-top: 16px; }
.seo-mig-cols-3 .seo-mig-cell-copy { margin-top: 24px; }
.seo-mig-cell-copy > * + * { margin-top: 16px; }
.seo-mig-cell-copy .seo-body { line-height: 1.8; }
.seo-mig-cols-4 .seo-mig-cell-copy .seo-body { line-height: 1.75; }
.seo-mig-cell-note {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--seo-band-rule);
	color: color-mix(in oklab, var(--seo-fg) 80%, transparent);
}
.seo-mig-cell-foot { margin-top: auto; padding-top: 32px; }

/* -------------------------------------------------------- mig-pipeline -- */

.seo-mig-pipe-frame {
	margin-top: 56px;
	padding: 24px;
	border: 1px solid var(--seo-rule);
	background: var(--seo-paper);
}
@media (min-width: 768px) {
	.seo-mig-pipe-frame { padding: 40px; }
}
.seo-mig-pipe-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--seo-rule);
}
.seo-mig-pipe-rail { position: relative; margin-top: 40px; }
.seo-mig-pipe-track,
.seo-mig-pipe-run {
	position: absolute;
	top: 22px;
	left: 10%;
	display: none;
	height: 1px;
}
.seo-mig-pipe-track { right: 10%; background: var(--seo-rule); }
.seo-mig-pipe-run {
	width: calc(var(--seo-i) / var(--seo-n) * 80%);
	background: var(--seo-green);
	transition: width 0.5s ease;
}
.seo-mig-pipe-list { position: relative; display: grid; gap: 12px; }
@media (min-width: 768px) {
	.seo-mig-pipe-track,
	.seo-mig-pipe-run { display: block; }
	.seo-mig-pipe-list { grid-template-columns: repeat(var(--seo-cols), minmax(0, 1fr)); gap: 0; }
}
.seo-mig-pipe-btn { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; }
@media (min-width: 768px) {
	.seo-mig-pipe-btn { flex-direction: column; text-align: center; }
}
.seo-mig-pipe-num {
	position: relative;
	z-index: 1;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--seo-rule);
	background: var(--seo-paper);
	font-family: var(--seo-mono);
	font-size: 0.75rem;
	color: var(--seo-muted);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.seo-mig-pipe-btn:hover .seo-mig-pipe-num { border-color: var(--seo-green); }
/* Every stage up to the selected one reads as done. */
.seo-mig-pipe-item.is-active .seo-mig-pipe-num,
.seo-mig-pipe-item:has(~ .is-active) .seo-mig-pipe-num {
	border-color: var(--seo-green);
	background: var(--seo-green);
	color: var(--seo-ink-deep);
}
.seo-mig-pipe-name { display: block; font-size: 1rem; font-weight: 700; color: var(--seo-muted); }
.seo-mig-pipe-item.is-active .seo-mig-pipe-name { color: var(--seo-ink); }
.seo-mig-pipe-tag { display: block; margin-top: 4px; color: var(--seo-muted); }
.seo-mig-pipe-panel {
	display: none;
	gap: 32px;
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--seo-rule);
}
.seo-mig-pipe-panel.is-active { display: grid; animation: seo-fade-in 0.4s ease-out; }
@media (min-width: 768px) {
	.seo-mig-pipe-panel { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); }
}
.seo-mig-pipe-panel .seo-body { line-height: 1.8; }
.seo-mig-pipe-out { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; font-weight: 600; }
.seo-mig-pipe-out-dot { flex: none; width: 7px; height: 7px; margin-top: 0.45rem; background: var(--seo-green); }

/* ------------------------------------------------------ mig-stack-flow -- */

.seo-mig-flow-list { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 768px) {
	.seo-mig-flow-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
}
.seo-mig-flow-item {
	position: relative;
	padding: 28px;
	border: 1px solid var(--seo-rule-dark);
	background: var(--seo-ink-deep);
	outline: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
@media (min-width: 768px) {
	.seo-mig-flow-item { margin-left: -1px; }
}
.seo-mig-flow-item:is(:hover, :focus) { z-index: 1; border-color: var(--seo-green); background: var(--seo-ink); }
.seo-mig-flow-list:has(.seo-mig-flow-item:is(:hover, :focus)) .seo-mig-flow-item:not(:hover, :focus) { opacity: 0.5; }
.seo-mig-flow-n { color: var(--seo-green); }
.seo-mig-flow-item .seo-h4 { margin-top: 16px; }
.seo-mig-flow-items { margin-top: 24px; }
.seo-mig-flow-items > li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 0.9375rem;
	color: color-mix(in oklab, var(--seo-paper) 85%, transparent);
}
.seo-mig-flow-items > li + li { margin-top: 12px; }
.seo-mig-flow-dot { flex: none; width: 5px; height: 5px; margin-top: 0.5rem; background: var(--seo-green); }
.seo-mig-flow-note {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--seo-rule-dark);
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--seo-fg-muted);
}
.seo-mig-flow-arrow {
	position: absolute;
	top: 50%;
	right: -12px;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	transform: translateY(-50%);
	background: var(--seo-green);
	font-size: 0.75rem;
	color: var(--seo-ink-deep);
}
@media (min-width: 768px) {
	.seo-mig-flow-arrow { display: flex; }
}

/* ----------------------------------------------------------- mig-story -- */

.seo-mig-story-top {
	display: grid;
	gap: 40px;
	padding-bottom: 48px;
	border-bottom: 1px solid var(--seo-band-rule);
}
.seo-mig-story-grid { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 768px) {
	.seo-mig-story-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; padding-bottom: 64px; }
	.seo-mig-story-intro { align-self: end; }
	.seo-mig-story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; margin-top: 64px; }
}
.seo-mig-story-name {
	padding-left: 24px;
	border-left: 2px solid var(--seo-green);
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--seo-green);
}
.seo-mig-story-globe {
	display: none;
	width: 224px;
	height: 224px;
	margin-top: 40px;
	color: color-mix(in oklab, var(--seo-green) 30%, transparent);
}
@media (min-width: 768px) {
	.seo-mig-story-name { padding-left: 32px; font-size: 4rem; }
	.seo-mig-story-globe { display: block; }
}
.seo-mig-story-copy > * + * { margin-top: 24px; }
.seo-mig-story-p { font-size: 1rem; line-height: 1.85; color: color-mix(in oklab, var(--seo-paper) 85%, transparent); }
.seo-mig-story-foot {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--seo-band-rule);
}
.seo-mig-story-closing { line-height: 1.375; letter-spacing: -0.01em; }
@media (min-width: 768px) {
	.seo-mig-story-p { font-size: 1.0625rem; }
	.seo-mig-story-closing { font-size: 1.25rem; }
}

/* ---------------------------------------------------------- mig-quotes -- */

.seo-mig-quotes-grid {
	display: grid;
	gap: 1px;
	margin-top: 48px;
	border-top: 1px solid var(--seo-band-rule);
	background: var(--seo-band-rule);
}
@media (min-width: 768px) {
	.seo-mig-quotes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.seo-mig-quote { padding: 32px; background: var(--seo-ink-deep); }
.seo-mig-quote-text { font-size: 1rem; line-height: 1.85; color: var(--seo-fg); }
@media (min-width: 768px) {
	.seo-mig-quote-text { font-size: 1.0625rem; }
}
.seo-mig-quote-by { display: block; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--seo-band-rule); }
.seo-mig-quote-author { display: block; }
.seo-mig-quote-role { display: block; margin-top: 8px; color: var(--seo-fg-muted); }

/* -------------------------------------------------------- mig-timeline -- */

.seo-mig-timeline-head { max-width: 56rem; }
.seo-mig-timeline-head .seo-lede { line-height: 1.8; }
.seo-mig-timeline-list { margin-top: 64px; }
.seo-mig-timeline-step { position: relative; padding: 0 0 56px 32px; }
.seo-mig-timeline-step:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 12px;
	left: 3px;
	width: 1px;
	height: 100%;
	background: var(--seo-rule);
}
.seo-mig-timeline-dot {
	position: absolute;
	top: 8px;
	left: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--seo-green);
}
.seo-mig-timeline-grid { display: grid; gap: 24px; }
@media (min-width: 768px) {
	.seo-mig-timeline-step { padding-left: 56px; }
	.seo-mig-timeline-step:not(:last-child)::before { left: 5px; }
	.seo-mig-timeline-dot { width: 12px; height: 12px; }
	.seo-mig-timeline-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
}
.seo-mig-timeline-copy > * + * { margin-top: 20px; }
.seo-mig-timeline-copy > .seo-mig-timeline-options { margin-top: 40px; }
.seo-mig-timeline-option { padding-left: 24px; border-left: 2px solid var(--seo-green); }
.seo-mig-timeline-option + .seo-mig-timeline-option { margin-top: 32px; }
@media (min-width: 768px) {
	.seo-mig-timeline-option { padding-left: 28px; }
}
.seo-mig-timeline-option-t {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.375;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--seo-fg);
}
.seo-mig-timeline-option-copy { margin-top: 16px; }
.seo-mig-timeline-option-copy > * + * { margin-top: 12px; }

/* Link to the story's own case study, under the project name. */
.seo-mig-story .seo-mig-story-case { margin-top: 24px; }
