/* John Morley — Hero: headline and the roof cross-section drawing board */
.jm.hero { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); }
.jm .hero__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 4vw, 72px); }
.jm .hero__place { margin: 0 0 18px; font-weight: 700; color: var(--clay-ink); }
.jm .hero__h { margin: 0; font: 800 var(--fs-h1, clamp(52px, 6.4vw, 104px))/.92 var(--font-display); text-transform: uppercase; letter-spacing: .005em; color: var(--slate); text-wrap: balance; }
.jm .hero__h span { display: block; color: var(--clay); }
.jm .hero__lead { margin: 24px 0 0; }
.jm .hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.jm .hero__note { margin: 22px 0 0; padding-left: 14px; border-left: 3px solid var(--clay); font-weight: 600; color: var(--slate-2); }

/* the drawing board */
.jm .section-draw { position: relative; margin: 0; border: 1px solid var(--line); border-radius: var(--r); background-color: #F6F6F5; background-image: linear-gradient(rgba(128, 130, 134, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(128, 130, 134, .09) 1px, transparent 1px); background-size: 24px 24px; }
.jm .sd { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.jm .sd text { font-family: var(--body); stroke: none; }
.jm .sd .sd-lab { opacity: 0; transition: opacity .5s var(--ease); }
.jm .sd .sd-lab.is-on { opacity: 1; }
.jm .sd .sd-lab a { cursor: pointer; }
.jm .sd .sd-lab a:focus { outline: none; }
.jm .sd .sd-lab text { font-size: 20px; font-weight: 600; fill: var(--slate); }
.jm .sd .sd-lab text.sd-lab__s { font-size: 16px; font-weight: 400; fill: var(--mute); }
.jm .sd .sd-lab a:hover text, .jm .sd .sd-lab a:focus text { fill: var(--clay); }
.jm .sd .sd-lab a:focus-visible text { text-decoration: underline; }
.jm .sd .sd-lab line, .jm .sd .sd-lab polyline { fill: none; stroke: var(--slate); stroke-width: 1; }
.jm .sd .sd-lab circle { fill: var(--clay); stroke: none; }
.jm .sd .sd-lab .sd-lead { stroke-width: 1.1; }
.jm .sd .sd-lab circle { stroke: var(--white, #fff); stroke-width: 1.5; }
.jm .sd .sd-in { opacity: 0; }
.jm .sd .sd-in.is-on { opacity: 1; transition: opacity .45s var(--ease), transform .55s var(--ease); }
/* hovering a label lifts its layer and dims the rest of the roof */
.jm .sd.is-focus .sd-in.is-on:not(.is-hl) { opacity: .22; transition: opacity .25s var(--ease); }
.jm .sd.is-focus .sd-lab.is-on:not(.is-hl) { opacity: .45; }
.jm .sd .sd-lab.is-hl .sd-lead { stroke: var(--clay); stroke-width: 1.6; }
.jm .sd .sd-lab.is-hl text.sd-lab__t { fill: var(--clay); }
.jm .sd .sd-drop { transform: translateY(-14px); }
.jm .sd .sd-drop.is-on { transform: none; }
/* caption sits at the foot of the board, inside the house, clear of every label */
.jm .sd__cap { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 14px; border-radius: 999px; background: var(--white, #fff); box-shadow: 0 2px 10px -4px rgba(43, 43, 45, .3); font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--slate); }
.jm .sd__replay, .jm .sd__replay:hover, .jm .sd__replay:focus { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--lime); color: var(--slate); cursor: pointer; }
.jm .sd__replay:hover { background: var(--lime-2); }
.jm .sd__replay svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1024px) {
	.jm .hero__in { grid-template-columns: 1fr; }
	/* phones and tablets: the drawing first, straight under the header */
	.jm .hero__in > .section-draw { order: -1; }
	.jm.hero { padding-top: 16px; }
	.jm .sd__cap { position: static; transform: none; width: fit-content; margin: 0 auto 12px; }
}
@media (max-width: 640px) {
	.jm .hero__h { font-size: var(--fs-h1, 50px); }
	/* the drawing scales down, the caption doesn't: give it its own row under the drawing */
	.jm .sd__cap { position: static; transform: none; width: fit-content; margin: 0 auto 12px; }
	.jm .hero__ctas .btn { width: 100%; }
	/* finger-sized replay button (also used by the service-page drawings) */
	.jm .sd__replay, .jm .sd__replay:hover, .jm .sd__replay:focus { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	.jm .sd .sd-in, .jm .sd .sd-lab { transition: none; }
}
