/* ═══════════════════════════════════════════════════════════════
   MARMO — /services and /services/<slug>. On top of css/marmo.css.
   Index: opening with the arch, family chips, one card per family (an accordion on a phone), the cost model, the invitation.
   Detail: opening, aqueduct band, what it is + before/after, concrete cases, process, linked demo, invitation.
   Family colours: .fam-auto/.fam-data/.fam-know/.fam-models (marmo.css) give --fc, --ft, --fd.
   ═══════════════════════════════════════════════════════════════ */

/* ── Shared: centred section heading, process steps, closing invitation ── */
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.sec-head p { font-size: 17px; color: var(--text); max-width: 640px; text-wrap: pretty; }
:lang(ja) :is(.display, .h2) em, :lang(ko) :is(.display, .h2) em { font-style: normal; }
:lang(ja) :is(.display, .h2, h3) { word-break: auto-phrase; }
:lang(ko) :is(.display, .h2, h2, h3, p) { word-break: keep-all; overflow-wrap: break-word; }

.method { padding-top: 92px; display: flex; flex-direction: column; gap: 56px; align-items: center; }
.method > .h2 { font-size: 40px; text-align: center; }
.steps { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; text-align: center; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.ring { position: relative; z-index: 1; width: 56px; height: 56px; flex: none; border: 1px solid var(--red-text); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--red-text); background: var(--bg); }
.steps li:not(:last-child)::after, .steps li:not(:last-child)::before { content: ''; position: absolute; top: 27px; left: calc(50% + 40px); width: calc(100% - 40px); height: 2px; }
.steps li:not(:last-child)::after { background: var(--line); }
.steps li:not(:last-child)::before { background: var(--red-text); z-index: 1; transform-origin: left center; transform: scaleX(0); }
.steps h3 { font-weight: 400; font-size: 22px; line-height: 1.2; max-width: 100%; overflow-wrap: break-word; hyphens: auto; }
.steps .price { font-size: 13px; font-weight: 700; color: var(--bronze); }
.steps p { font-size: 15px; line-height: 1.6; color: var(--text); text-wrap: pretty; }

/* The four steps light up one after the other, and the line draws from each to the next */
@keyframes mvstep1 { 0%, 2% { background: var(--bg); color: var(--red-text); border-color: var(--red-text); transform: scale(1); box-shadow: 0 0 0 0 rgba(176,30,38,0); } 5% { background: var(--red); color: #fffaf4; border-color: var(--red); transform: scale(1.18); box-shadow: 0 0 0 0 rgba(200,50,58,.55); } 16% { background: var(--red); color: #fffaf4; border-color: var(--red); transform: scale(1.06); box-shadow: 0 0 0 18px rgba(200,50,58,0); } 90% { background: var(--red); color: #fffaf4; border-color: var(--red); transform: scale(1.06); box-shadow: 0 0 0 0 rgba(200,50,58,0); } 96%, 100% { background: var(--bg); color: var(--red-text); border-color: var(--red-text); transform: scale(1); box-shadow: 0 0 0 0 rgba(200,50,58,0); } }
@keyframes mvstep2 { 0%, 21% { background: var(--bg); color: var(--red-text); border-color: var(--red-text); transform: scale(1); box-shadow: 0 0 0 0 rgba(176,30,38,0); } 24% { background: var(--red); color: #fffaf4; border-color: var(--red); transform: scale(1.18); box-shadow: 0 0 0 0 rgba(200,50,58,.55); } 35% { background: var(--red); color: #fffaf4; border-color: var(--red); transform: scale(1.06); box-shadow: 0 0 0 18px rgba(200,50,58,0); } 90% { background: var(--red); color: #fffaf4; border-color: var(--red); transform: scale(1.06); box-shadow: 0 0 0 0 rgba(200,50,58,0); } 96%, 100% { background: var(--bg); color: var(--red-text); border-color: var(--red-text); transform: scale(1); box-shadow: 0 0 0 0 rgba(200,50,58,0); } }
@keyframes mvstep3 { 0%, 40% { background: var(--bg); color: var(--red-text); border-color: var(--red-text); transform: scale(1); box-shadow: 0 0 0 0 rgba(176,30,38,0); } 43% { background: var(--red); color: #fffaf4; border-color: var(--red); transform: scale(1.18); box-shadow: 0 0 0 0 rgba(200,50,58,.55); } 54% { background: var(--red); color: #fffaf4; border-color: var(--red); transform: scale(1.06); box-shadow: 0 0 0 18px rgba(200,50,58,0); } 90% { background: var(--red); color: #fffaf4; border-color: var(--red); transform: scale(1.06); box-shadow: 0 0 0 0 rgba(200,50,58,0); } 96%, 100% { background: var(--bg); color: var(--red-text); border-color: var(--red-text); transform: scale(1); box-shadow: 0 0 0 0 rgba(200,50,58,0); } }
@keyframes mvstep4 { 0%, 59% { background: var(--bg); color: var(--red-text); border-color: var(--red-text); transform: scale(1); box-shadow: 0 0 0 0 rgba(176,30,38,0); } 62% { background: var(--red); color: #fffaf4; border-color: var(--red); transform: scale(1.18); box-shadow: 0 0 0 0 rgba(200,50,58,.55); } 73% { background: var(--red); color: #fffaf4; border-color: var(--red); transform: scale(1.06); box-shadow: 0 0 0 18px rgba(200,50,58,0); } 90% { background: var(--red); color: #fffaf4; border-color: var(--red); transform: scale(1.06); box-shadow: 0 0 0 0 rgba(200,50,58,0); } 96%, 100% { background: var(--bg); color: var(--red-text); border-color: var(--red-text); transform: scale(1); box-shadow: 0 0 0 0 rgba(200,50,58,0); } }
@keyframes mvlineX1 { 0%, 10% { transform: scaleX(0); opacity: 1; } 23%, 90% { transform: scaleX(1); opacity: 1; } 96% { transform: scaleX(1); opacity: 0; } 97%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes mvlineX2 { 0%, 29% { transform: scaleX(0); opacity: 1; } 42%, 90% { transform: scaleX(1); opacity: 1; } 96% { transform: scaleX(1); opacity: 0; } 97%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes mvlineX3 { 0%, 48% { transform: scaleX(0); opacity: 1; } 61%, 90% { transform: scaleX(1); opacity: 1; } 96% { transform: scaleX(1); opacity: 0; } 97%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes mvlineY1 { 0%, 10% { transform: scaleY(0); opacity: 1; } 23%, 90% { transform: scaleY(1); opacity: 1; } 96% { transform: scaleY(1); opacity: 0; } 97%, 100% { transform: scaleY(0); opacity: 0; } }
@keyframes mvlineY2 { 0%, 29% { transform: scaleY(0); opacity: 1; } 42%, 90% { transform: scaleY(1); opacity: 1; } 96% { transform: scaleY(1); opacity: 0; } 97%, 100% { transform: scaleY(0); opacity: 0; } }
@keyframes mvlineY3 { 0%, 48% { transform: scaleY(0); opacity: 1; } 61%, 90% { transform: scaleY(1); opacity: 1; } 96% { transform: scaleY(1); opacity: 0; } 97%, 100% { transform: scaleY(0); opacity: 0; } }
.steps li:nth-child(1) .ring { animation: mvstep1 8s ease-in-out infinite; }
.steps li:nth-child(2) .ring { animation: mvstep2 8s ease-in-out infinite; }
.steps li:nth-child(3) .ring { animation: mvstep3 8s ease-in-out infinite; }
.steps li:nth-child(4) .ring { animation: mvstep4 8s ease-in-out infinite; }
.steps li:nth-child(1)::before { animation: mvlineX1 8s linear infinite; }
.steps li:nth-child(2)::before { animation: mvlineX2 8s linear infinite; }
.steps li:nth-child(3)::before { animation: mvlineX3 8s linear infinite; }

.ask { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 60px 24px 72px; }
.ask h2 { font-weight: 300; font-style: italic; font-size: 30px; line-height: 1.2; max-width: 640px; text-wrap: balance; }
.ask p { font-size: 17px; line-height: 1.6; color: var(--text); max-width: 560px; text-wrap: pretty; }
.ask p strong { font-weight: 600; color: var(--ink); }
:lang(ja) .ask h2, :lang(ko) .ask h2 { font-style: normal; }

/* ═══ Index ═══ */
.p-head { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 76px var(--pad) 72px; overflow: hidden; overflow: clip; }
.p-head > :not(.head-art) { position: relative; }
.p-head .lead { margin-top: 32px; max-width: 720px; }
.p-head .lead strong { font-weight: inherit; }
.head-art { position: absolute; right: -40px; bottom: 0; width: min(680px, 50vw); height: 440px; max-width: none; object-fit: cover; object-position: 66% 60%; opacity: .55; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.75) 38%, rgba(0,0,0,.25) 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.75) 38%, rgba(0,0,0,.25) 72%, transparent 100%); }
.chips { display: flex; gap: 12px; margin-top: 56px; flex-wrap: wrap; justify-content: center; scroll-margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 23px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.chip i { width: 11px; height: 11px; flex: none; border-radius: 50%; background: var(--fc); }
.chip.on { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-fg); }
.chip:not(.chip-all).on { background: var(--fd); border-color: var(--fd); color: #fdf9f2; }
.chip:not(.chip-all).on i { background: #fdf9f2; }

.groups { flex: none; display: flex; flex-direction: column; gap: 32px; padding-bottom: 24px; }
.group { display: grid; grid-template-columns: clamp(240px, 25vw, 360px) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; scroll-margin-top: 16px; }
.group[hidden] { display: none; }
.group-plate { position: relative; background: var(--fd); color: #fdf9f2; padding: 32px 34px; display: flex; flex-direction: column; gap: 14px; }
.group-plate .num { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; opacity: .75; }
.group-plate h2 { font-weight: 300; font-size: 28px; line-height: 1.1; margin-top: auto; overflow-wrap: break-word; hyphens: auto; }
.group-plate p { font-size: 15px; line-height: 1.65; }
.fold-btn { display: none; }
.group ol { padding: 6px 32px; }
.group li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 44px 250px minmax(0, 1fr) 22px; gap: 20px; align-items: center; min-height: 104px; padding: 14px 0; transition: background .2s, padding .2s; }
.row:hover { background: var(--surface2); padding-left: 12px; color: var(--ink); }
.row .dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-size: 18px; background: var(--fd); color: #fdf9f2; }
.row h3 { font-weight: 400; font-size: 21px; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; }
.row .txt { font-size: 15px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.row .go { font-size: 20px; color: var(--fc); text-align: right; }

/* The cost model sits between the families and the invitation */
.groups + .method { padding-top: 88px; padding-bottom: 24px; gap: 52px; scroll-margin-top: 0; }

/* ═══ Detail ═══ */
.sd { display: flex; flex-direction: column; }
.s-head { flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px var(--pad) 0; }
.crumb { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.crumb a { color: var(--muted); padding: 10px 0; }
.crumb a:hover { color: var(--red-text); }
.crumb a.crumb-fam { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--fc); }
.crumb a.crumb-fam:hover { text-decoration: underline; text-underline-offset: 3px; }
.s-head .display { margin-top: 24px; max-width: min(1040px, 100%); overflow-wrap: break-word; }
.s-head .lead { max-width: 740px; margin-top: 32px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.actions .sd-demo-lock { width: 15px; height: 15px; flex: none; }
.s-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 740px; margin-top: 56px; border-top: 1px solid var(--line); }
.s-stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 12px 0; min-width: 0; }
.s-stats li + li { border-left: 1px solid var(--line); }
.s-stats strong { font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 1.15; overflow-wrap: break-word; max-width: 100%; }
.s-stats span { font-size: 13px; line-height: 1.45; color: var(--muted); max-width: 100%; overflow-wrap: break-word; hyphens: auto; }

.band { flex: none; height: 330px; position: relative; margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 46%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 44%, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 44%, #000 62%, transparent 100%); }

.what { flex: none; padding-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: 52px; align-items: start; }
.what--solo { grid-template-columns: minmax(0, 760px); justify-content: center; }
.what-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.what-text .h2 { overflow-wrap: break-word; }
.what-text p { font-size: 17px; line-height: 1.7; color: var(--text); text-wrap: pretty; }
.what-text p strong { font-weight: 600; color: var(--ink); }
.versus { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--surface); border: 1px solid var(--line); table-layout: fixed; }
.versus th { text-align: left; vertical-align: bottom; padding: 16px 24px; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.25; color: var(--muted); border-bottom: 1px solid var(--rule); overflow-wrap: break-word; hyphens: auto; }
.versus th.hi { font-style: italic; color: var(--red-text); background: var(--tint-red); }
.versus td { padding: 18px 24px; color: var(--muted); border-bottom: 1px solid var(--line); overflow-wrap: break-word; hyphens: auto; }
.versus td.hi { color: var(--ink); font-weight: 600; background: var(--tint-red); }
:lang(ja) .versus th.hi, :lang(ko) .versus th.hi { font-style: normal; }

/* Concrete cases: tabs over a spread. Without JavaScript the tabs stay away and every case is on the page. */
.where { flex: none; padding-top: 88px; display: flex; flex-direction: column; gap: 44px; }
.cases { display: flex; flex-direction: column; gap: 24px; }
.where-tabs { display: none; }
.cases.is-tabbed { gap: 0; }
.cases.is-tabbed .where-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; align-items: end; }
.fam-tab { cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; height: 100%; min-height: 84px; padding: 14px 22px; border: 0; border-top: 6px solid var(--fc); border-radius: 10px 10px 0 0; background: var(--ft); color: var(--ink); font-family: var(--serif); text-align: left; transition: min-height .25s, background .25s; }
.fam-tab .num { font-style: italic; font-size: 20px; line-height: 1.2; color: var(--fc); }
.fam-tab .name { font-size: 20px; line-height: 1.15; }
.fam-tab.on { min-height: 100px; background: var(--fd); color: #fdf9f2; }
.fam-tab.on .num { color: #fdf9f2; }
.spread { display: grid; grid-template-columns: clamp(280px, 29.2vw, 420px) minmax(0, 1fr); min-height: 400px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--fd); border-radius: 10px; overflow: hidden; }
.spread[hidden] { display: none; }
.case-fold { display: none; }
.case-body { display: contents; }
/* the open tab's title has moved down into its spread: the tab stays empty in its colour (owner, 2026-11-28: never the same
   title twice). The words are still in the button for who listens to the page. */
.cases.is-tabbed .fam-tab .num, .cases.is-tabbed .fam-tab .name { transition: opacity .18s; }
.cases.is-tabbed .fam-tab.on .num, .cases.is-tabbed .fam-tab.on .name { opacity: 0; }
.cases.is-tabbed .spread { border-radius: 0 0 10px 10px; }
.spread--text { min-height: 340px; }
.plate { padding: 30px 34px; display: flex; flex-direction: column; gap: 12px; background: var(--fd); color: #fdf9f2; min-width: 0; }
.plate .num { display: none; font-family: var(--serif); font-style: italic; font-size: 52px; line-height: 1; opacity: .75; }
.plate .name { font-weight: 300; font-size: 27px; line-height: 1.1; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
.plate p { font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.spread--text .plate .num { display: block; }
.spread--text .plate .name { margin-top: auto; }
.case { padding: 30px 44px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.case-text { font-family: var(--serif); font-weight: 300; font-size: 23px; line-height: 1.42; max-width: 640px; text-wrap: pretty; }

/* The second diagram of the agents page; the .viz frame and the ticket diagram come from css/marmo-demo.css */
.crit { display: flex; flex-direction: column; gap: 18px; }
.crit-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px; gap: 18px; align-items: center; font-size: 15px; }
.crit-row strong { font-weight: 600; }
.lv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.lv span { height: 10px; background: var(--track); }
.lv span.f { background: var(--c-data); }
.routed { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 15px; }
.pill { border: 1px solid var(--ok); color: var(--ok); border-radius: 3px; padding: 7px 12px; font-weight: 700; font-size: 13px; white-space: nowrap; }

/* Linked demo (colour of the demo), technologies, neighbouring services */
.linked { flex: none; padding-top: 84px; padding-bottom: 80px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: stretch; }
.linked--solo { grid-template-columns: minmax(0, 760px); justify-content: center; }
.linked-demo { --a: #223f78; background: var(--a); border-radius: 10px; padding: 34px 38px; color: #fffaf4; display: flex; flex-direction: column; justify-content: center; gap: 14px; align-items: flex-start; }
a.linked-demo:hover { color: #fffaf4; filter: brightness(1.06); }
.linked-demo.acc-mas { --a: #8a5a07; }
.linked-demo.acc-st { --a: #0b6f9e; }
.linked-demo.acc-f1 { --a: #a31a22; }
.linked-demo.acc-nhp { --a: #1f7a55; }
.linked-demo.acc-dama { --a: #56492f; }
.linked-demo.acc-mcp-video { --a: #223f78; }
.linked-kick { font-size: 13px; }
.linked-title { font-family: var(--serif); font-size: 27px; line-height: 1.15; }
.linked-desc { font-size: 15px; line-height: 1.6; max-width: 440px; }
.linked-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; background: #fbf9f5; color: #1c1715; border-radius: 3px; padding: 10px 22px; font-size: 14px; font-weight: 600; margin-top: 6px; }
.linked-cta .sd-demo-lock { width: 15px; height: 15px; flex: none; }
a.linked-demo:hover .linked-cta { color: #b01e26; }
.linked-side { display: flex; flex-direction: column; justify-content: center; gap: 26px; font-size: 15px; min-width: 0; }
.linked--solo .linked-side { align-items: center; text-align: center; }
.linked--solo .tags { justify-content: center; }
.linked-side h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--muted); margin-bottom: 10px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags li, .tags a { border: 1px solid var(--line2); border-radius: 3px; padding: 7px 12px; font-size: 13px; }
.tags a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; color: var(--red-text); border-color: var(--red-text); font-weight: 600; }
.tags a:hover { background: var(--tint-red); color: var(--red-text); }

.ask--rule { border-top: 1px solid var(--line); }

/* ── Between desktop and phone ── */
@media (max-width: 1200px) {
    .row { grid-template-columns: 44px minmax(0, 200px) minmax(0, 1fr) 22px; gap: 16px; }
    .row h3 { font-size: 20px; }
    .group-plate h2 { font-size: 26px; }
    .group ol { padding: 6px 24px; }
    .what { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; }
    .steps { gap: 24px; }
    .steps li:not(:last-child)::after, .steps li:not(:last-child)::before { left: calc(50% + 36px); width: calc(100% - 48px); }
    .steps h3 { font-size: 20px; }
}
@media (max-width: 1040px) {
    .p-head { padding-top: 88px; padding-bottom: 80px; }
    .row { grid-template-columns: 40px minmax(0, 1fr) 22px; column-gap: 16px; row-gap: 4px; min-height: 0; padding: 20px 0; }
    .row .dot { grid-row: 1 / 3; align-self: start; }
    .row h3 { grid-column: 2; }
    .row .txt { grid-column: 2; }
    .row .go { grid-column: 3; grid-row: 1 / 3; }
    .group-plate { padding: 28px 24px; }
    .group-plate h2 { font-size: 24px; }
    .group-plate .num { font-size: 40px; }
    .method > .h2, .groups + .method .h2 { font-size: 32px; }
    .method { padding-top: 112px; }
}
@media (min-width: 761px) and (max-width: 1040px) {
    .p-head .display, .s-head .display { font-size: clamp(42px, 6vw, 56px); }
}
@media (max-width: 960px) {
    .what { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .spread { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .spread--text .plate .num { display: none; }
    .plate { padding: 26px 28px; }
    .case { padding: 28px; min-height: 260px; }
    .spread--text .case { min-height: 0; padding-block: 34px; }
    .case-text { font-size: 22px; }
    .linked { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 96px; padding-bottom: 80px; }
}
@media (min-width: 761px) and (max-width: 900px) {
    .head-art { opacity: .32; width: 440px; }
}

/* ── Phone ── */
@media (max-width: 760px) {
    .ask { padding: 56px 24px 64px; }
    .ask h2 { font-size: 28px; }
    .ask p { font-size: 16px; }

    /* index: the families become an accordion (js/services.js folds them; without it they are all open) */
    .p-head { padding: 56px 26px 44px; }
    .p-head .lead { margin-top: 20px; }
    .head-art, .chips { display: none !important; }
    .groups { gap: 10px; padding-bottom: 0; }
    .groups.wrap { padding-left: 16px; padding-right: 16px; }
    .group, .group[hidden] { display: block; }   /* no chips on a phone: nothing is ever filtered away */
    .group-plate { display: grid; grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 8px; align-items: center; min-height: 68px; padding: 10px 18px; }
    .group-plate .num { grid-column: 1; font-size: 19px; line-height: 1.2; opacity: 1; }
    .group-plate h2 { grid-column: 2; margin: 0; font-weight: 400; font-size: 22px; line-height: 1.15; }
    .group-plate p { display: none; }
    .group ol { padding: 6px 18px 8px; }
    .row { grid-template-columns: minmax(0, 1fr) 18px; column-gap: 12px; row-gap: 2px; padding: 14px 0; }
    .row:hover { padding-left: 0; background: transparent; }
    .row .dot { display: none; }
    .row h3 { grid-column: 1; font-size: 20px; }
    .row .txt { grid-column: 1; font-size: 14px; line-height: 1.5; }
    .row .go { grid-column: 2; font-size: 16px; align-self: center; }

    .groups.has-fold .fold-btn { display: flex; position: absolute; inset: 0; width: 100%; align-items: center; justify-content: flex-end; padding: 0 18px; border: 0; background: transparent; color: inherit; cursor: pointer; }
    .groups.has-fold .fold-btn:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; border-radius: 8px; }
    .fold-btn .sign { width: 24px; text-align: right; font-size: 24px; line-height: 1; }
    .fold-btn .sign::before { content: '+'; }
    .fold-btn[aria-expanded="true"] .sign::before { content: '\2212'; }
    .groups.has-fold .group:not(.is-open) { background: var(--ft); border-color: transparent; }
    .groups.has-fold .group:not(.is-open) .group-plate { background: transparent; color: var(--ink); }
    .groups.has-fold .group:not(.is-open) .group-plate .num, .groups.has-fold .group:not(.is-open) .sign { color: var(--fc); }
    .groups.has-fold .group:not(.is-open) ol { display: none; }

    /* steps: one column, the line runs down */
    .method { padding-top: 96px; gap: 36px; }
    .groups + .method { padding-top: 80px; padding-bottom: 8px; gap: 36px; }
    .method > .h2, .groups + .method .h2 { font-size: 36px; }
    .sec-head p { font-size: 16px; }
    .steps { grid-template-columns: minmax(0, 1fr); gap: 0; text-align: left; }
    .steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 16px; row-gap: 4px; align-items: start; align-content: start; padding-bottom: 30px; }
    .steps li > :not(.ring) { grid-column: 2; }
    .steps li:not(:last-child)::after, .steps li:not(:last-child)::before { left: 23px; top: 52px; bottom: 4px; width: 2px; height: auto; }
    .steps li:not(:last-child)::before { transform-origin: center top; transform: scaleY(0); }
    .steps li:nth-child(1)::before { animation-name: mvlineY1; }
    .steps li:nth-child(2)::before { animation-name: mvlineY2; }
    .steps li:nth-child(3)::before { animation-name: mvlineY3; }
    .steps .ring { width: 48px; height: 48px; grid-column: 1; grid-row: 1 / 4; font-size: 19px; }
    .steps h3 { font-size: 24px; }
    .groups + .method .steps li { grid-template-rows: auto auto auto auto; }
    .groups + .method .steps .ring { grid-row: 1 / 5; }

    /* detail */
    .sd .method { padding-top: 72px; gap: 32px; }
    .s-head { padding: 40px 26px 0; }
    .crumb a.crumb-all::before { content: '\2190\00A0\00A0'; }
    .s-head .display { margin-top: 18px; }
    .s-head .lead { margin-top: 20px; max-width: 300px; }
    .actions { flex-direction: column; align-items: center; width: 100%; margin-top: 32px; }
    .actions .btn { flex: none; width: 100%; min-height: 52px; }
    .actions .btn-line { display: none; }
    .s-stats { margin-top: 40px; }
    .s-stats li { padding: 16px 6px 0; }
    .s-stats strong { font-size: 23px; }
    .s-stats span { font-size: 12px; }
    .band { display: none; }
    .what { margin: 56px 20px 0; padding: 48px 0 0; border-top: 1px solid var(--line); gap: 28px; }
    .what-text p { font-size: 16px; }
    .versus { font-size: 14px; }
    .versus th { padding: 12px; font-size: 19px; }
    .versus td { padding: 13px 12px; line-height: 1.4; }
    .where { padding-top: 72px; gap: 24px; }
    .cases.is-tabbed .where-tabs { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .fam-tab, .fam-tab.on { height: auto; min-height: 56px; flex-direction: row; align-items: center; justify-content: center; gap: 14px; padding: 10px 18px; border-top: 0; border-radius: 8px; text-align: center; }
    .fam-tab .name { font-size: 20px; }
    .cases.is-tabbed .spread { margin-top: 12px; border-radius: 10px; border-top: 1px solid var(--line); }
    .plate { padding: 22px 20px; gap: 8px; }
    .plate .name { font-size: 24px; }
    .plate p { font-size: 15px; }
    .case { padding: 22px 18px; min-height: 0; }
    .spread--text .case { padding: 22px 20px 26px; }
    .case-text { font-weight: 400; font-size: 19px; line-height: 1.5; }
    .crit-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 7px; }
    .crit-row .lv { grid-column: 1 / -1; grid-row: 2; }
    .routed { flex-direction: column; align-items: flex-start; }
    .linked { gap: 34px; padding-top: 56px; padding-bottom: 64px; }
    .linked-demo { padding: 26px 22px; }
    .linked-title { font-size: 25px; }
    .linked-cta { align-self: stretch; text-align: center; min-height: 50px; }
    .linked--solo .linked-side { align-items: flex-start; text-align: left; }
    .linked--solo .tags { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .steps .ring, .steps li::before { animation: none !important; }
    .row, .fam-tab { transition: none; }
}

/* inside the alternate bands (.sec-alt): the same room above and below */
.groups.sec-alt { padding-top: 56px; padding-bottom: 64px; }
.groups.sec-alt + .method { padding-top: 80px; padding-bottom: 72px; }
.what + .where.sec-alt { margin-top: 72px; }
.where.sec-alt { padding-top: 64px; padding-bottom: 72px; }
.where.sec-alt + .method { padding-top: 72px; padding-bottom: 72px; }
.linked.sec-alt { padding-top: 64px; padding-bottom: 64px; }
.ask.sec-tint { padding-top: 64px; padding-bottom: 80px; }
@media (max-width: 760px) {
    .groups.sec-alt { padding-top: 28px; padding-bottom: 36px; }
    .groups.sec-alt + .method { padding-top: 56px; padding-bottom: 52px; }
    .what + .where.sec-alt { margin-top: 48px; }
    .where.sec-alt { padding-top: 44px; padding-bottom: 48px; }
    .where.sec-alt + .method { padding-top: 52px; padding-bottom: 52px; }
    .linked.sec-alt { padding-top: 44px; padding-bottom: 44px; }
    .ask.sec-tint { padding-top: 52px; padding-bottom: 60px; }
}
/* the numeral goes down with the title (smaller where a drawing shares the spread) */
@media (min-width: 761px) {
    .cases.is-tabbed .spread .plate .num { display: block; }
    .cases.is-tabbed .spread:not(.spread--text) .plate .num { font-size: 34px; }
}
/* phone: each case is a panel, closed or open, with + and − (owner, 2026-11-28) */
@media (max-width: 760px) {
    .cases.is-tabbed .where-tabs { display: none; }
    .cases.is-tabbed .spread { display: block; min-height: 0; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--ft); border-color: transparent; }
    .cases.is-tabbed .spread.is-open { background: var(--paper); border-color: var(--line); }
    .cases.is-tabbed .case-fold { display: block; margin: 0; font: inherit; }
    .case-head { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) 24px; gap: 8px; align-items: center; min-height: 68px; padding: 12px 18px; border: 0; background: transparent; color: var(--ink); font-family: var(--serif); text-align: left; cursor: pointer; }
    .case-head .num { font-style: italic; font-size: 19px; color: var(--fc); }
    .case-head .name { font-size: 20px; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
    .case-head .sign { justify-self: end; font-size: 24px; line-height: 1; color: var(--fc); font-family: var(--sans); }
    .case-head .sign::before { content: '+'; }
    .case-head[aria-expanded="true"] { background: var(--fd); color: #fdf9f2; }
    .case-head[aria-expanded="true"] .num, .case-head[aria-expanded="true"] .sign { color: #fdf9f2; }
    .case-head[aria-expanded="true"] .sign::before { content: '\2212'; }
    .case-head:focus-visible { outline: 2px solid var(--fc); outline-offset: -4px; }
    .cases.is-tabbed .case-body { display: none; }
    .cases.is-tabbed .spread.is-open .case-body { display: block; }
    /* the panel's own head is the title: the spread does not say it again */
    .cases.is-tabbed .plate .name, .cases.is-tabbed .plate .num { display: none; }
    .cases.is-tabbed .plate { padding: 0 20px 18px; }
    .cases.is-tabbed .spread--text .plate { display: none; }
    .cases.is-tabbed .spread--text .case { padding-top: 20px; }
}
/* phone: the small titles keep to one line (owner, 2026-11-29): a size smaller, less room around them */
@media (max-width: 760px) {
    .case-head { grid-template-columns: 22px minmax(0, 1fr) 16px; gap: 8px; padding: 12px 14px; min-height: 60px; }
    .case-head .num { font-size: 16px; }
    .case-head .name { font-size: 17.5px; }
    .case-head .sign { font-size: 22px; }
    .groups .group-plate { grid-template-columns: 24px minmax(0, 1fr) 18px; gap: 8px; padding: 10px 14px; }
    .groups .group-plate .num { font-size: 16px; }
    .groups .group-plate h2 { font-size: 18.5px; }
    .groups.has-fold .fold-btn { padding: 0 14px; }
    .steps li h3 { font-size: 19px; }
}
@media (max-width: 360px) {
    .case-head { grid-template-columns: minmax(0, 1fr) 16px; padding: 10px 12px; }
    .case-head .num { display: none; }   /* its room goes to the title */
    .case-head .name { font-size: 16px; }
    .groups .group-plate h2 { font-size: 16px; }
    .steps li h3 { font-size: 16.5px; }
    .row h3 { font-size: 18.5px; }
}
