/*
 * MCW Theme 3.0 components: heroes with artefacts, artefact frames (browser, phone, sheet,
 * site map), marquee, entry rows, statement, service index and panels, showcase, timeline,
 * Often vs Here, principles, policy cards, diagrams, form-page hero, motion states.
 * Not loaded on the emergency page, legal pages or the blog.
 */

/* ---------- Hero layouts ---------- */
.mcw-hero--home { padding-top: clamp(3rem, 1.5rem + 5vw, 6rem); padding-bottom: 0; overflow: hidden; }
.mcw-hero--home .mcw-hero__grid { padding-bottom: var(--sec-pad); }
.mcw-hero__art { min-width: 0; }
@media (min-width: 64em) {
	.mcw-hero--home .mcw-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; column-gap: clamp(2rem, 4vw, 4rem); }
	.mcw-hero__grid--split { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; column-gap: clamp(2rem, 4vw, 4rem); }
}
.mcw-hero--home .mcw-cta-buttons--hero { margin-top: var(--s-2); }

/* About hero: oversized purpose line, lead offset right */
.mcw-hero--about { padding-bottom: var(--sec-pad-lg); }
.mcw-about__grid { display: grid; gap: var(--s-6); }
.mcw-about__title { max-width: 14ch; margin: 0; }
.mcw-about__lead { margin: 0; color: var(--text-light); font-family: var(--font-head); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem); line-height: 1.35; letter-spacing: -0.01em; }
.mcw-hero-media { margin: var(--s-6) 0 0; border: var(--hair-dark); border-radius: var(--r-card); overflow: hidden; }
.mcw-hero-media__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 64em) {
	.mcw-about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
	.mcw-about__title { grid-column: 1 / span 9; }
	.mcw-about__side { grid-column: 7 / span 6; margin-top: var(--s-7); }
}

/* ---------- Artefact frames ---------- */
.mcw-art { position: relative; margin: 0; }
.mcw-art__label {
	position: absolute; right: 10px; bottom: 10px; z-index: 3; padding: 0.2rem 0.55rem;
	font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--text-dark); background: #fde68a; border-radius: 999px;
}

/* Browser */
.mcw-browser { background: var(--white); color: var(--text-dark); border: 1px solid var(--line-light); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-art); }
.mcw-hero .mcw-browser, .mcw-tone--dark .mcw-browser, .mcw-tone--graphite .mcw-browser { box-shadow: none; border-color: var(--line-dark-strong); }
.mcw-browser__bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.75rem; background: #eef0f3; border-bottom: 1px solid var(--line-light); }
.mcw-browser__dots { display: inline-flex; gap: 6px; }
.mcw-browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: #c9cdd4; }
.mcw-browser__url { flex: 1; min-width: 0; padding: 0.2rem 0.75rem; border-radius: 999px; background: var(--white); font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcw-browser__view { background: var(--white); line-height: 0; }

/* Wireframe drawing */
.mcw-wire { display: block; width: 100%; height: auto; }
.mcw-wire__s { fill: none; stroke: #9aa1ad; stroke-width: 1.25; }
.mcw-wire__thick { stroke: var(--text-dark); stroke-width: 6; stroke-linecap: round; }
.mcw-wire__accent { stroke: var(--cobalt); }
.mcw-wire__dash { stroke-dasharray: 5 4; stroke: #6b7280; }
.mcw-wire__f-dark { fill: var(--text-dark); }
.mcw-wire__f-light { fill: #e5e7eb; }
.mcw-wire__f-accent { fill: var(--cobalt); }
.mcw-wire__f-mid { fill: #c5cad3; }
.mcw-wire__f-soft { fill: #eef0f3; }
.mcw-browser--sketch .mcw-browser__view { background: #fbfaf5; }

/* Paper sheet */
.mcw-sheet { background: var(--white); color: var(--text-dark); border: 1px solid var(--line-light); border-radius: var(--r-card); padding: var(--s-5) var(--s-5) var(--s-7); box-shadow: var(--shadow-art); }
.mcw-sheet::after { content: ""; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px; background: linear-gradient(225deg, var(--paper) 50%, #e3e5e9 50%); border-bottom-left-radius: 4px; }
.mcw-tone--graphite .mcw-sheet::after, .mcw-tone--dark .mcw-sheet::after, .mcw-hero .mcw-sheet::after { background: linear-gradient(225deg, var(--ink-800) 50%, #e3e5e9 50%); }
.mcw-hero .mcw-sheet::after { background: linear-gradient(225deg, var(--ink-900) 50%, #e3e5e9 50%); }
.mcw-hero .mcw-sheet, .mcw-tone--graphite .mcw-sheet, .mcw-tone--dark .mcw-sheet { box-shadow: none; }
.mcw-sheet__head { padding-bottom: var(--s-3); margin-bottom: var(--s-2); border-bottom: 2px solid var(--text-dark); }
.mcw-sheet__title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.mcw-sheet__meta { margin: 0.15rem 0 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted-dark); }
.mcw-sheet__rows { list-style: none; margin: 0; padding: 0; }
.mcw-sheet__rows li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 0.55rem 0; border-bottom: 1px dashed var(--line-light); font-size: var(--fs-sm); }
.mcw-sheet__v { font-family: var(--font-mono); color: var(--muted-dark); }
.mcw-chip { flex: none; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.55rem; border: 1px solid #a7f3d0; border-radius: 999px; background: var(--success-bg); color: var(--emerald-text); font-size: 0.75rem; font-weight: 600; }
.mcw-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }
.mcw-sheet--small { max-width: 26rem; padding-bottom: var(--s-7); }
.mcw-sheet--compact { padding: var(--s-4) var(--s-4) var(--s-5); }

/* Site map tree */
.mcw-tree { display: block; width: 100%; height: auto; margin-top: var(--s-3); }
.mcw-tree__l { fill: none; stroke: #9aa1ad; stroke-width: 1.25; }
.mcw-tree__b { fill: var(--paper); stroke: var(--text-dark); stroke-width: 1; }
.mcw-tree__t { font-family: var(--font-body); font-size: 13px; fill: var(--text-dark); }

/* Phone */
.mcw-phone { width: min(280px, 100%); margin-inline: auto; padding: 14px; background: var(--ink-800); border: 1px solid var(--line-dark-strong); border-radius: 32px; }
.mcw-phone__screen { display: grid; gap: 10px; padding: 18px 14px 22px; background: var(--white); border-radius: 22px; }
.mcw-phone__row { display: flex; align-items: center; gap: 10px; }
.mcw-phone__row--cta { justify-content: space-between; }
.mcw-phone__avatar { width: 28px; height: 28px; border-radius: 50%; background: #c5cad3; }
.mcw-phone__line { display: block; height: 8px; border-radius: 4px; background: #e5e7eb; }
.mcw-phone__line--s { width: 40%; }
.mcw-phone__line--m { width: 60%; }
.mcw-phone__media { aspect-ratio: 1; border-radius: 6px; background: linear-gradient(135deg, #e5e7eb, #c5cad3); }
.mcw-phone__btn { width: 72px; height: 24px; border-radius: var(--r-btn); background: var(--cobalt); }

/* Home hero stack */
.mcw-stack { position: relative; padding: 2.5rem 0 2rem 2.5rem; }
.mcw-stack__back { position: absolute; left: 0; top: 0; width: 62%; opacity: 0.9; }
.mcw-stack__back .mcw-sheet { padding: var(--s-3) var(--s-3) var(--s-4); }
.mcw-stack__front { position: relative; z-index: 2; margin-left: 12%; }
.mcw-stack__tab {
	position: absolute; z-index: 3; right: -0.5rem; bottom: 0; display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.55rem 0.85rem; background: var(--paper); color: var(--text-dark); border: 1px solid var(--line-light); border-radius: var(--r-card) var(--r-card) 0 0;
	font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); transform: rotate(-2deg);
}
.mcw-stack > .mcw-art__label { right: auto; left: 2.5rem; bottom: 0.25rem; }
@media (max-width: 47.99em) { .mcw-stack { padding-left: 0; } .mcw-stack__back { display: none; } .mcw-stack__front { margin-left: 0; } .mcw-stack > .mcw-art__label { left: 0.5rem; } }

/* Hub hero: three overlapping frames */
.mcw-frames { position: relative; display: grid; padding-bottom: 2.5rem; }
.mcw-frames__f { grid-area: 1 / 1; width: 78%; }
.mcw-frames__f--1 { transform: translate(0, 0); }
.mcw-frames__f--2 { transform: translate(14%, 18%); }
.mcw-frames__f--3 { transform: translate(28%, 36%); }
.mcw-frames > .mcw-art__label { bottom: 0; right: auto; left: 0; }
@media (max-width: 47.99em) { .mcw-frames__f { width: 84%; } .mcw-frames__f--2 { transform: translate(9%, 14%); } .mcw-frames__f--3 { transform: translate(18%, 28%); } }

/* Design stepper */
.mcw-stepper__tabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: var(--s-4); border: 1px solid var(--line-dark-strong); border-radius: 999px; }
.mcw-stepper__tabs[hidden] { display: none; }
.mcw-stepper__tabs [role="tab"] { min-height: 40px; padding: 0 1rem; border: 0; border-radius: 999px; background: none; color: var(--muted-light); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.mcw-stepper__tabs [role="tab"][aria-selected="true"] { background: var(--text-light); color: var(--ink-900); }
.mcw-stepper__tabs [role="tab"]:hover { color: var(--text-light); }
.mcw-stepper__tabs [role="tab"][aria-selected="true"]:hover { color: var(--ink-900); }
.mcw-stepper:not(.is-tabs) .mcw-stepper__panels { display: grid; gap: var(--s-4); }
@media (min-width: 64em) { .mcw-stepper:not(.is-tabs) .mcw-stepper__panels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Marquee (service names) ---------- */
.mcw-marquee { display: flex; overflow: hidden; border-top: var(--hair-dark); padding: var(--s-4) 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.mcw-marquee__track { list-style: none; display: flex; flex: none; gap: 0; margin: 0; padding: 0; animation: mcw-marquee 48s linear infinite; }
.mcw-marquee__track li { display: inline-flex; align-items: center; white-space: nowrap; font-family: var(--font-head); font-weight: 500; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem); color: var(--muted-light); }
.mcw-marquee__track li::after { content: ""; width: 6px; height: 6px; margin: 0 1.75rem; border-radius: 50%; background: var(--cobalt-on-dark); }
.mcw-marquee:hover .mcw-marquee__track, .mcw-marquee:focus-within .mcw-marquee__track, .mcw-marquee:focus .mcw-marquee__track { animation-play-state: paused; }
@keyframes mcw-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.mcw-marquee { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
	.mcw-marquee__track { animation: none !important; flex-wrap: wrap; row-gap: var(--s-2); justify-content: center; flex: 1; }
	.mcw-marquee__track--dup { display: none; }
}

/* ---------- Entry rows ---------- */
.mcw-sec--entry { padding: var(--s-8) 0; }
.mcw-entry { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text-dark); }
.mcw-entry__row { border-bottom: var(--hair); }
.mcw-entry__link { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-5); align-items: center; padding: var(--s-6) 0; color: var(--text-dark); text-decoration: none; }
.mcw-entry__line { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; }
.mcw-entry__meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: var(--fs-sm); color: var(--muted-dark); }
.mcw-entry__hub { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 0.15rem; }
.mcw-entry__arrow { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; width: 3.25rem; height: 3.25rem; align-items: center; justify-content: center; border: 1px solid var(--text-dark); border-radius: 50%; transition: transform var(--dur) var(--ease), background-color var(--dur) ease, color var(--dur) ease; }
.mcw-entry__link:hover { color: var(--text-dark); }
.mcw-entry__link:hover .mcw-entry__line { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.mcw-entry__link:hover .mcw-entry__arrow { background: var(--text-dark); color: var(--paper); transform: translateX(4px); }
.mcw-entry__row--rescue .mcw-entry__line::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 0.6rem; vertical-align: 0.2em; border-radius: 50%; background: var(--orange); }

/* ---------- Statement section ---------- */
.mcw-sec--statement { padding: var(--sec-pad-lg) 0; }
.mcw-statement__sub { max-width: 52ch; margin: var(--s-6) 0 0; font-size: var(--fs-lead); color: var(--muted-light); }
.mcw-statement__extra { margin-top: var(--s-8); padding-top: var(--s-6); border-top: var(--hair-dark); }

/* ---------- Service index (all services, grouped) ---------- */
.mcw-svcindex + .mcw-svcindex { margin-top: var(--s-7); }
.mcw-svcindex__group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin: 0 0 var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid currentColor; font-family: var(--font-head); font-size: 1.125rem; font-weight: 600; }
.mcw-svcindex__group a { color: inherit; text-decoration: none; }
.mcw-svcindex__group a:hover { text-decoration: underline; }
.mcw-svcindex__word { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); font-weight: 500; }
.mcw-svcindex__list { list-style: none; margin: 0; padding: 0; }
.mcw-svcindex__row { border-bottom: var(--hair); }
.mcw-svcindex__link { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; gap: 0.15rem var(--s-4); align-items: baseline; padding: var(--s-4) 0; color: var(--text-dark); text-decoration: none; transition: background-color var(--dur) ease, padding var(--dur) var(--ease); }
.mcw-svcindex__n { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted-dark); }
.mcw-svcindex__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); letter-spacing: -0.015em; }
.mcw-svcindex__flag { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.75rem; font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange-text); vertical-align: 0.2em; }
.mcw-svcindex__flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.mcw-svcindex__text { grid-column: 2; color: var(--muted-dark); font-size: var(--fs-sm); }
.mcw-svcindex__arrow { grid-column: 3; grid-row: 1; align-self: center; color: var(--muted-dark); transition: transform var(--dur) var(--ease), color var(--dur) ease; }
.mcw-svcindex__link:hover { background: var(--white); padding-left: var(--s-3); padding-right: var(--s-3); }
.mcw-svcindex__link:hover .mcw-svcindex__title { color: var(--cobalt); }
.mcw-svcindex__link:hover .mcw-svcindex__arrow { transform: translateX(3px); color: var(--cobalt); }
@media (min-width: 64em) { .mcw-svcindex__link { grid-template-columns: 3rem minmax(0, 5fr) minmax(0, 6fr) auto; } .mcw-svcindex__text { grid-column: 3; grid-row: 1; } .mcw-svcindex__arrow { grid-column: 4; } }

/* ---------- Hub service panels ---------- */
.mcw-panels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text-dark); }
.mcw-panels__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3) var(--s-5); padding: var(--s-6) 0; border-bottom: var(--hair); transition: background-color var(--dur) ease; }
.mcw-panels__n { grid-column: 1 / -1; font-family: var(--font-head); font-weight: 600; font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); line-height: 0.9; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px var(--line-light-strong); }
.mcw-panels__title { font-size: var(--fs-h2); margin: 0 0 var(--s-3); max-width: 20ch; }
.mcw-panels__link { color: var(--text-dark); text-decoration: none; }
.mcw-panels__link::after { content: ""; position: absolute; inset: 0; }
.mcw-panels__item:hover .mcw-panels__link { color: var(--cobalt); }
.mcw-panels__item:focus-within { outline: 2px solid var(--cobalt); outline-offset: 4px; }
.mcw-panels__link:focus-visible { outline: none; }
.mcw-panels__text { margin: 0; max-width: 56ch; color: var(--muted-dark); font-size: var(--fs-lead); }
.mcw-panels__arrow { align-self: end; color: var(--text-dark); transition: transform var(--dur) var(--ease), color var(--dur) ease; }
.mcw-panels__item:hover .mcw-panels__arrow { transform: translate(3px, -3px); color: var(--cobalt); }
.mcw-panels__flag { margin: 0 0 var(--s-2); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-text); }
.mcw-panels__item.is-rescue { box-shadow: inset 3px 0 0 var(--orange); padding-left: var(--s-5); }
@media (min-width: 64em) {
	.mcw-panels__item { grid-template-columns: 9rem minmax(0, 1fr) auto; align-items: start; }
	.mcw-panels__n { grid-column: 1; }
}
.mcw-sec__main .mcw-panels__title { font-size: var(--fs-h3); }

/* ---------- Showcase of example deliverables ---------- */
.mcw-showcase { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-7) var(--gap); }
.mcw-showcase__item { display: flex; flex-direction: column; }
.mcw-showcase__item .mcw-art { flex: 1; }
.mcw-showcase__title { margin: var(--s-5) 0 var(--s-2); font-size: var(--fs-h3); }
.mcw-showcase__text { margin: 0; color: var(--muted-light); max-width: 40ch; }
@media (min-width: 64em) {
	.mcw-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mcw-showcase__item:nth-child(2) { margin-top: var(--s-8); }
}

/* ---------- Timeline ---------- */
.mcw-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.mcw-timeline__step { position: relative; padding: 0 0 var(--s-7) 3.5rem; }
.mcw-timeline__step::before { content: ""; position: absolute; left: 1.15rem; top: 2.5rem; bottom: 0; width: 1px; background: var(--line-light-strong); }
.mcw-timeline__step:last-child::before { display: none; }
.mcw-timeline__node { position: absolute; left: 0; top: 0; display: inline-flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 600; background: inherit; }
.mcw-timeline__title { font-size: var(--fs-h3); margin: 0.3rem 0 var(--s-3); }
.mcw-timeline__text { color: inherit; }
.mcw-timeline__dl { margin: 0; display: grid; gap: var(--s-3); }
.mcw-timeline__dl div { padding-top: var(--s-3); border-top: var(--hair); }
.mcw-timeline__dl dt { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); }
.mcw-timeline__dl dd { margin: 0.2rem 0 0; }
.mcw-tone--dark .mcw-timeline__step::before, .mcw-tone--graphite .mcw-timeline__step::before { background: var(--line-dark-strong); }
.mcw-tone--dark .mcw-timeline__node { background: var(--ink-900); }
.mcw-tone--graphite .mcw-timeline__node { background: var(--ink-800); }
.mcw-tone--light .mcw-timeline__node { background: var(--paper); }
.mcw-tone--dark .mcw-timeline__dl div, .mcw-tone--graphite .mcw-timeline__dl div { border-color: var(--line-dark); }
.mcw-tone--dark .mcw-timeline__dl dt, .mcw-tone--graphite .mcw-timeline__dl dt { color: var(--muted-light); }
.mcw-tone--dark .mcw-timeline__dl dd, .mcw-tone--graphite .mcw-timeline__dl dd { color: #d5d9e0; }
@media (min-width: 64em) {
	.mcw-timeline--3, .mcw-timeline--4, .mcw-timeline--5 { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--gap); }
	.mcw-timeline--3 .mcw-timeline__step, .mcw-timeline--4 .mcw-timeline__step, .mcw-timeline--5 .mcw-timeline__step { padding: 3.75rem 0 0; }
	.mcw-timeline--3 .mcw-timeline__step::before, .mcw-timeline--4 .mcw-timeline__step::before, .mcw-timeline--5 .mcw-timeline__step::before { left: 2.4rem; right: calc(-1 * var(--gap)); top: 1.2rem; bottom: auto; width: auto; height: 1px; }
	.mcw-timeline--3 .mcw-timeline__title, .mcw-timeline--4 .mcw-timeline__title, .mcw-timeline--5 .mcw-timeline__title { margin-top: 0; }
}
/* Content process sections written as an ordered list: same look, CSS only. */
.mcw-prose--process > ol { list-style: none; padding: 0; counter-reset: mcw-tl; display: grid; gap: 0; max-width: none; }
.mcw-prose--process > ol > li { counter-increment: mcw-tl; position: relative; margin: 0; padding: 0.35rem 0 var(--s-6) 3.5rem; }
.mcw-prose--process > ol > li::before { content: counter(mcw-tl, decimal-leading-zero); position: absolute; left: 0; top: 0; display: inline-flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 600; }
.mcw-prose--process > ol > li::after { content: ""; position: absolute; left: 1.15rem; top: 2.6rem; bottom: 0.2rem; width: 1px; background: currentColor; opacity: 0.25; }
.mcw-prose--process > ol > li:last-child::after { display: none; }
@media (min-width: 64em) {
	.mcw-prose--process > ol:has(> li:nth-child(3)):not(:has(> li:nth-child(6))) { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--gap); }
	.mcw-prose--process > ol:has(> li:nth-child(3)):not(:has(> li:nth-child(6))) > li { padding: 3.6rem 0 0; }
	.mcw-prose--process > ol:has(> li:nth-child(3)):not(:has(> li:nth-child(6))) > li::after { left: 2.4rem; right: calc(-1 * var(--gap)); top: 1.2rem; bottom: auto; width: auto; height: 1px; }
}

/* ---------- Numbered columns (H3 groups) ---------- */
.mcw-columns { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6) var(--gap); }
.mcw-columns__item { padding-top: var(--s-4); border-top: 1px solid currentColor; }
.mcw-columns__n { display: block; margin-bottom: var(--s-4); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted-dark); }
.mcw-tone--graphite .mcw-columns__n, .mcw-tone--dark .mcw-columns__n { color: var(--muted-light); }
.mcw-columns__title { font-size: var(--fs-h3); margin-bottom: var(--s-3); }
@media (min-width: 48em) { .mcw-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .mcw-columns:has(> li:nth-child(3)):not(:has(> li:nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Principles (About beliefs) ---------- */
.mcw-principles { list-style: none; margin: 0; padding: 0; border-top: var(--hair-dark); }
.mcw-principles__row { display: grid; gap: var(--s-2) var(--gap); padding: var(--s-6) 0; border-bottom: var(--hair-dark); }
.mcw-principles__n { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted-light); }
.mcw-principles__title { margin: 0; font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); max-width: 22ch; }
.mcw-principles__text { color: var(--muted-light); }
.mcw-tone--light .mcw-principles, .mcw-tone--light .mcw-principles__row { border-color: var(--line-light); }
.mcw-tone--light .mcw-principles__n, .mcw-tone--light .mcw-principles__text { color: var(--muted-dark); }
@media (min-width: 64em) { .mcw-principles__row { grid-template-columns: 4rem minmax(0, 6fr) minmax(0, 5fr); align-items: baseline; } }
.mcw-prose--beliefs > ol, .mcw-prose--beliefs > ul { list-style: none; padding: 0; counter-reset: mcw-p; }
.mcw-prose--beliefs > ol > li, .mcw-prose--beliefs > ul > li { counter-increment: mcw-p; position: relative; margin: 0; padding: var(--s-5) 0 var(--s-5) 4rem; border-top: 1px solid var(--line-dark); font-family: var(--font-head); font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); line-height: 1.35; }
.mcw-prose--beliefs > ol > li::before, .mcw-prose--beliefs > ul > li::before { content: counter(mcw-p, decimal-leading-zero); position: absolute; left: 0; top: var(--s-5); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted-light); }
.mcw-tone--light .mcw-prose--beliefs > ol > li, .mcw-tone--light .mcw-prose--beliefs > ul > li { border-color: var(--line-light); }

/* Story: reading column with pull line */
.mcw-pull { margin: 0 0 var(--s-6); padding-left: var(--s-5); border-left: 3px solid var(--cobalt); font-family: var(--font-head); font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); line-height: 1.3; letter-spacing: -0.015em; }
.mcw-tone--graphite .mcw-pull, .mcw-tone--dark .mcw-pull { border-color: var(--cobalt-on-dark); }

/* ---------- Often vs Here ---------- */
.mcw-often th[scope="row"] { width: 18%; font-family: var(--font-head); }
.mcw-often td { width: 41%; }
.mcw-often td span { display: inline; }
.mcw-often .mcw-icon { margin: 0.15em 0.5rem 0 0; vertical-align: top; }
.mcw-often__often { color: var(--muted-dark); }
.mcw-often__often .mcw-icon { color: var(--muted-dark); }
.mcw-often__here { color: var(--text-dark); font-weight: 500; }
.mcw-often__here .mcw-icon { color: var(--emerald-text); }

/* ---------- Policy cards (About) ---------- */
.mcw-policy { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line-light); border: var(--hair); border-radius: var(--r-card); overflow: hidden; }
.mcw-policy__card { padding: var(--s-6); background: var(--white); }
.mcw-policy__icon { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; margin-bottom: var(--s-5); border: var(--hair); border-radius: 50%; color: var(--cobalt); }
.mcw-policy__title { font-size: 1.25rem; margin-bottom: var(--s-2); }
.mcw-policy__card p { margin: 0; color: var(--muted-dark); }
@media (min-width: 48em) { .mcw-policy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 75em) { .mcw-policy { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Diagrams ---------- */
.mcw-diagram { margin: 0; color: var(--text-dark); }
.mcw-dg { display: block; width: 100%; height: auto; overflow: visible; }
.mcw-dg--v { display: none; max-width: 420px; }
@media (max-width: 47.99em) { .mcw-dg--h { display: none; } .mcw-dg--v { display: block; } }
.mcw-sec__rail .mcw-dg--h { display: none; }
.mcw-sec__rail .mcw-dg--v { display: block; max-width: 340px; }
.mcw-dg text { font-family: var(--font-body); fill: currentColor; }
.mcw-dg__box { fill: var(--white); stroke: currentColor; stroke-width: 1; }
.mcw-dg__rule { stroke: var(--line-light); stroke-width: 1; }
.mcw-dg__idx { font-family: var(--font-mono) !important; font-size: 12px; fill: var(--muted-dark) !important; letter-spacing: 0.06em; }
.mcw-dg__label { font-family: var(--font-head) !important; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.mcw-dg__sub { font-size: 14px; fill: var(--muted-dark) !important; }
.mcw-dg__note { font-family: var(--font-mono) !important; font-size: 12px; fill: var(--muted-dark) !important; letter-spacing: 0.04em; }
.mcw-dg__line { fill: none; stroke: currentColor; stroke-width: 1.25; }
.mcw-dg__line--dash { stroke-dasharray: 4 5; stroke: var(--line-light-strong); }
.mcw-dg__head { fill: currentColor; }
.mcw-dg__tick { fill: none; stroke: var(--line-light-strong); stroke-width: 1; }
.mcw-dg__base rect { fill: var(--tint); stroke: var(--line-light-strong); stroke-width: 1; }
.mcw-dg__node--link { cursor: pointer; }
.mcw-dg__node--link:hover .mcw-dg__box, .mcw-dg__node--link:focus-visible .mcw-dg__box { stroke: var(--cobalt); stroke-width: 2; }
.mcw-dg__node--link:hover .mcw-dg__label { fill: var(--cobalt); }
.mcw-dg__node--link:focus-visible { outline: none; }
.mcw-dg__node--link:focus-visible .mcw-dg__box { stroke-width: 3; }
.mcw-diagram__caption { display: inline-block; margin-top: var(--s-3); padding: 0.15rem 0.55rem; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dark); background: #fde68a; border-radius: 999px; }
.mcw-tone--dark .mcw-diagram, .mcw-tone--graphite .mcw-diagram, .mcw-hero .mcw-diagram { color: var(--text-light); }
.mcw-tone--dark .mcw-dg__box, .mcw-hero .mcw-dg__box { fill: var(--ink-800); }
.mcw-tone--graphite .mcw-dg__box { fill: var(--ink-900); }
.mcw-tone--dark .mcw-dg__rule, .mcw-tone--graphite .mcw-dg__rule, .mcw-hero .mcw-dg__rule { stroke: var(--line-dark-strong); }
.mcw-tone--dark .mcw-dg__idx, .mcw-tone--dark .mcw-dg__sub, .mcw-tone--dark .mcw-dg__note,
.mcw-tone--graphite .mcw-dg__idx, .mcw-tone--graphite .mcw-dg__sub, .mcw-tone--graphite .mcw-dg__note { fill: var(--muted-light) !important; }
.mcw-tone--dark .mcw-dg__line--dash, .mcw-tone--dark .mcw-dg__tick, .mcw-tone--graphite .mcw-dg__line--dash, .mcw-tone--graphite .mcw-dg__tick { stroke: var(--line-dark-strong); }
.mcw-tone--dark .mcw-dg__head, .mcw-tone--graphite .mcw-dg__head { fill: var(--cobalt-on-dark); }
.mcw-tone--dark .mcw-dg__line:not(.mcw-dg__line--dash), .mcw-tone--graphite .mcw-dg__line:not(.mcw-dg__line--dash) { stroke: var(--cobalt-on-dark); }
.mcw-tone--dark .mcw-dg__base rect { fill: var(--ink-800); stroke: var(--line-dark-strong); }
.mcw-tone--dark .mcw-dg__node--link:hover .mcw-dg__box, .mcw-tone--dark .mcw-dg__node--link:focus-visible .mcw-dg__box { stroke: var(--cobalt-on-dark); }
.mcw-tone--dark .mcw-dg__node--link:hover .mcw-dg__label { fill: var(--cobalt-on-dark); }

/* ---------- Form pages (Contact, Free audit, Booking, Support) ---------- */
.mcw-formhero { padding: var(--s-6) 0 var(--sec-pad); }
.mcw-formhero__grid { display: grid; gap: var(--s-7); }
.mcw-formhero__title { font-size: var(--fs-h1); line-height: 1.05; max-width: 14ch; }
.mcw-formhero__lead { font-size: var(--fs-lead); color: var(--muted-dark); max-width: 46ch; margin: 0 0 var(--s-5); }
.mcw-formhero__alert { margin: var(--s-5) 0 0; }
.mcw-formhero__mail { margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--muted-dark); }
.mcw-formhero__art { margin-top: var(--s-7); }
.mcw-formhero__form { box-shadow: var(--shadow-art); }
@media (min-width: 64em) {
	.mcw-formhero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; column-gap: clamp(2rem, 5vw, 5rem); }
	.mcw-formhero__form { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* ---------- Motion (approved pages only; motion.js adds the states) ---------- */
.mcw-reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.mcw-reveal.is-in { opacity: 1; transform: none; }
.mcw-frames.mcw-reveal .mcw-frames__f { transition: translate 700ms var(--ease); translate: 0 12px; }
.mcw-frames.mcw-reveal.is-in .mcw-frames__f { translate: 0 0; }
.mcw-draw--ready { stroke-dasharray: var(--mcw-len); stroke-dashoffset: var(--mcw-len); transition: stroke-dashoffset 900ms var(--ease); }
.mcw-draw-host.is-in .mcw-draw--ready { stroke-dashoffset: 0; }
.mcw-draw-host.is-in .mcw-dg__line--dash.mcw-draw--ready, .mcw-draw-host.is-in .mcw-wire__dash.mcw-draw--ready { stroke-dasharray: 5 4; transition: none; }
@media (prefers-reduced-motion: reduce) {
	.mcw-reveal { opacity: 1; transform: none; }
	.mcw-draw--ready { stroke-dashoffset: 0; }
}
@media (forced-colors: active) { .mcw-dg__box { stroke: CanvasText; } .mcw-art__label, .mcw-diagram__caption { border: 1px solid CanvasText; } }
