/* Loft planner page. Tokens from site.css; plan in _work/design-plan.md (Tool opener, head height diagram, loft types, moss enquiry). */

/* ---------- opener: the planner on the drawing board ---------- */
.lp { background-color: var(--ink); color: var(--paper); min-height: 90vh; min-height: 90svh; display: flex; align-items: center; padding: calc(var(--head-h) + 22px) 0 34px; overflow: clip; isolation: isolate; --mx: 50%; --my: 40%;
  background-image: linear-gradient(rgba(244, 239, 230, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 239, 230, .035) 1px, transparent 1px), linear-gradient(rgba(244, 239, 230, .065) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 239, 230, .065) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px; }
.lp > .wrap { position: relative; z-index: 1; }
.lp__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(34vw 30vw at var(--mx) var(--my), rgba(227, 185, 127, .13), transparent 70%), radial-gradient(50% 40% at 50% 104%, rgba(201, 148, 89, .22), transparent 70%); }

.planner--full { grid-template-columns: minmax(0, 330px) minmax(0, 1fr) minmax(0, 360px); grid-template-rows: auto 1fr auto; gap: 18px clamp(24px, 3vw, 44px); align-items: stretch; }
.lp__head { grid-column: 1 / 3; grid-row: 1; }
.lp__head h1 { font-size: clamp(2.3rem, 3.7vw, 3.5rem); font-stretch: 116%; line-height: 1.02; color: var(--paper); margin-bottom: .3em; }
.lp__lede { margin: 0; font-size: 1.12rem; color: rgba(244, 239, 230, .8); }
.lp-ctrl { grid-column: 1; grid-row: 2; align-self: center; }
.lp-draw { grid-column: 2; grid-row: 2; align-self: center; display: grid; gap: 12px; }
.lp-help { grid-column: 1 / 3; grid-row: 3; margin: -6px 0 0; }
.lp-help a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.lp-out { grid-column: 3; grid-row: 1 / 4; align-self: stretch; display: flex; flex-direction: column; }
.lp-figs { margin-top: auto !important; }

/* controls, compact */
.planner--full .seg { margin-bottom: 16px; }
.planner--full .seg legend, .planner--full .range__l { margin-bottom: 9px; font-size: .875rem; }
.planner--full .seg__opts { gap: 7px; }
.planner--full .seg__opts span { min-height: 42px; padding: 8px 15px; font-size: .95rem; }
.planner--full .range { gap: 4px; }
.planner--full .range__v { font-size: 1.5rem; }
.planner--full .range__help, .lp-help { font-size: .95rem; }
.range__help a { color: var(--oak-l); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.range__help a:hover { color: var(--paper); }

/* house type tiles, with a drawn icon each */
.seg--tiles .seg__opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.seg--tiles .seg__opts label { display: block; }
.planner--full .seg--tiles .seg__opts span { width: 100%; min-height: 0; flex-direction: column; justify-content: center; gap: 4px; padding: 9px 4px 8px; border-radius: var(--r); font-size: .875rem; line-height: 1.15; text-align: center; }
.seg--tiles svg { width: 46px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: transform .45s var(--ease); }
.seg--tiles .ic-dim { opacity: .45; stroke-dasharray: 3 3; }
.seg--tiles .ic-on { fill: rgba(201, 148, 89, .25); }
.seg--tiles input:checked + span .ic-on { fill: rgba(21, 27, 32, .18); }
.seg--tiles label:hover svg { transform: translateY(-2px); }

/* the drawing sheet */
.lp-sheet { position: relative; padding: 14px 18px 8px; border: 1px solid rgba(244, 239, 230, .12); border-radius: var(--r); background: linear-gradient(180deg, rgba(244, 239, 230, .035), rgba(244, 239, 230, .01)); }
.lp-sheet__tick { position: absolute; width: 18px; height: 18px; border: 2px solid var(--oak); pointer-events: none; }
.lp-sheet__tick--tl { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-radius: var(--r) 0 0 0; }
.lp-sheet__tick--br { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-radius: 0 0 var(--r) 0; }
.lp-sheet .pl-house { max-height: calc(100vh - 470px); max-height: calc(100svh - 470px); min-height: 220px; margin: 0 auto; }
.lp-block { display: grid; grid-template-columns: 1fr 1fr 1.4fr; margin: 0; border: 1px solid rgba(244, 239, 230, .14); border-radius: var(--r); overflow: hidden; }
.lp-block > div { padding: 8px 14px; border-left: 1px solid rgba(244, 239, 230, .14); overflow: hidden; }
.lp-block > div:first-child { border-left: 0; }
.lp-block dt { font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oak-l); }
.lp-block dd { margin: 0; font-weight: 600; font-size: .95rem; color: var(--paper); white-space: nowrap; }

/* the bigger drawing: rooms, a figure for scale, the live head height */
.pl-house--full .hatch-l { stroke: rgba(201, 148, 89, .3); }
.pl-house--full .pl-ghost { animation: lp-march 1.6s linear infinite; }
.pl-house--full .pl-nb path { animation: lp-march 2.4s linear infinite; }
@keyframes lp-march { to { stroke-dashoffset: -24; } }
.pl-house--full .pl-guide, .pl-house--full .pl-guide-t { display: none; }
.pl-rm { opacity: 0; transition: opacity .6s var(--ease); }
.pl-rm.is-on { opacity: 1; }
.pl-f { fill: none; stroke: var(--oak-l); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pl-f-dash { stroke: rgba(244, 239, 230, .55); stroke-dasharray: 3 4; }
.pl-lampglow { fill: url(#pl-lamp); animation: lp-lamp 3.2s ease-in-out infinite alternate; }
@keyframes lp-lamp { from { opacity: .55; } to { opacity: 1; } }
.pl-person circle { fill: var(--paper); }
.pl-person path { fill: none; stroke: var(--paper); stroke-width: 3; stroke-linecap: round; }
.pl-house--full .pl-win--lit { fill: rgba(226, 178, 110, .3); stroke: var(--oak-l); stroke-width: 1.6; }
.pl-dim-t { paint-order: stroke; stroke: var(--ink); stroke-width: 5px; stroke-linejoin: round; font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: 15px; letter-spacing: .04em; fill: var(--oak-l); }

/* result card */
.lp-out { padding: 26px 28px 22px; background: rgba(244, 239, 230, .055); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.lp-out .planner__type { font-size: 1.7rem; margin-bottom: 10px; }
.lp-out p { font-size: .97rem; line-height: 1.5; margin-bottom: .8em; }
.lp-out .verdict { padding: 2px 0 2px 14px; }
.lp-figs { margin: 16px 0 14px; padding: 14px 0; border-top: 1px solid rgba(244, 239, 230, .14); border-bottom: 1px solid rgba(244, 239, 230, .14); display: grid; gap: 10px; }
.lp-figs dt { font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oak-l); }
.lp-figs dd { margin: 2px 0 0; font-weight: 600; color: var(--paper); }
.lp-figs__price dd { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.45rem, 1.9vw, 1.8rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-figs__price dd span { color: var(--oak-l); }
.lp-out__plan b { color: var(--paper); }
.lp-note { position: absolute; left: 16px; top: 14px; z-index: 2; max-width: min(260px, 48%); margin: 0; padding: 10px 12px 10px 14px; border-left: 3px solid var(--oak); border-radius: 0 calc(var(--r) - 2px) calc(var(--r) - 2px) 0; background: rgba(21, 27, 32, .88); font-size: .9rem; line-height: 1.45; color: var(--paper); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.lp-note[hidden] { display: none; }
.lp-out .btn { margin-top: 4px; }
.lp-out__disc { margin: 12px 0 0 !important; font-size: .9rem !important; color: rgba(244, 239, 230, .7) !important; }

/* phone dock: the example price and the button stay in reach while you choose */
.lp-dock { display: none; }

/* ---------- how to measure your head height (paper, pinned) ---------- */
.mh { background: var(--paper); background-image: linear-gradient(rgba(44, 53, 60, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(44, 53, 60, .05) 1px, transparent 1px); background-size: 28px 28px; }
.mh__pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--head-h) + 10px) 0 32px; }
.mh__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 80px); align-items: center; }
.mh__text h2 { margin-bottom: .4em; }
.mh__intro { font-size: 1.12rem; color: var(--muted); margin-bottom: 1.3em; }
.mh-steps { display: grid; gap: 2px; }
.mh-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(44, 53, 60, .14); opacity: .42; transition: opacity .45s var(--ease); }
.mh-step.is-on { opacity: 1; }
.mh-step h3 { font-size: 1.18rem; }
.mh-step p { margin: .3em 0 0; font-size: 1rem; color: var(--muted); }
.mh-step__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--slate); font-family: var(--display); font-weight: 800; font-size: .95rem; transition: background-color .4s, color .4s, border-color .4s; }
.mh-step.is-on .mh-step__n { background: var(--oak); border-color: var(--oak); color: var(--ink); }
.mh__bar { height: 3px; background: rgba(44, 53, 60, .12); margin: 16px 0 24px; }
.mh__bar i { display: block; height: 100%; background: var(--oak-deep); transform-origin: left; transform: scaleX(1); }
.mh__fig { position: relative; height: min(70vh, 640px); height: min(70svh, 640px); aspect-ratio: 600 / 560; max-width: 100%; }
.mh__fig::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--oak); border-radius: var(--r); }
.mh-svg { position: relative; width: 100%; height: 100%; background: var(--white); border-radius: var(--r); box-shadow: 0 30px 60px rgba(44, 53, 60, .16); overflow: hidden; }
.mh-hl { stroke: rgba(140, 94, 42, .55); stroke-width: 1.4; }
.mh-wood { fill: #EBD6B4; }
.mh-cut { fill: url(#mh-hatch); stroke: var(--slate); stroke-width: 2; }
.mh-ridge { fill: #EBD6B4; }
.mh-ln { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mh-ln--main { stroke: var(--slate); stroke-width: 2.4; }
.mh-ln--thin { stroke: rgba(44, 53, 60, .55); stroke-width: 1.8; }
.mh-tiles { stroke: rgba(44, 53, 60, .45); stroke-width: 2; }
.mh-grain { fill: none; stroke: rgba(140, 94, 42, .4); stroke-width: 1.4; }
.mh-ins { fill: rgba(227, 185, 127, .32); stroke: rgba(140, 94, 42, .35); stroke-width: 1.4; }
.mh-beam { fill: url(#mh-beam); opacity: .8; }
.mh-dust circle { fill: var(--oak); opacity: .55; }
.mh-hit { fill: none; stroke: var(--moss); stroke-width: 7; stroke-linecap: round; opacity: .9; }
.mh-min__l { fill: none; stroke: var(--moss); stroke-width: 2; stroke-dasharray: 7 6; }
.mh-min .mh-lab { fill: var(--moss); }
.mh-blade__b { fill: #E9C46A; stroke: rgba(140, 94, 42, .6); stroke-width: 1; }
.mh-blade__t { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.mh-blade__n text { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 9px; fill: var(--ink); text-anchor: start; }
.mh-hook { fill: none; stroke: var(--slate); stroke-width: 3; stroke-linecap: round; }
.mh-case__b { fill: var(--ink); }
.mh-case__c { fill: none; stroke: var(--oak); stroke-width: 4; }
.mh-case__l { stroke: rgba(244, 239, 230, .6); stroke-width: 2; stroke-linecap: round; }
.mh-dim { fill: none; stroke: var(--oak-deep); stroke-width: 2.2; }
.mh-dim-c { fill: none; stroke: var(--oak-deep); stroke-width: 2.2; }
.mh-lab { font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; fill: var(--slate); }
.mh-lead { fill: none; stroke: rgba(44, 53, 60, .5); stroke-width: 1.4; }
.mh-read { position: absolute; left: 28px; top: 22px; display: flex; align-items: baseline; gap: 6px; font-family: var(--display); font-weight: 800; font-stretch: 120%; color: var(--oak-deep); line-height: 1; pointer-events: none; }
.mh-read__v { font-size: clamp(2.6rem, 4.4vw, 4rem); font-variant-numeric: tabular-nums; }
.mh-read__u { font-size: 1.5rem; }
.mh__fig .frame-cap { left: 14px; bottom: 14px; }

/* ---------- which loft suits your house (white) ---------- */
.lt { background: var(--white); padding: clamp(56px, 4.5vw, 72px) 0; }
.lt .sec-head { margin-bottom: clamp(26px, 2.6vw, 38px); }
.lt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.lt-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.lt-card__img { position: relative; height: min(34vh, 330px); }
.lt-card__clip { position: absolute; inset: 0; overflow: hidden; clip-path: var(--roof); transition: clip-path .8s var(--ease); background: var(--paper); }
.lt-card__clip img { width: 100%; height: 118%; object-fit: cover; transition: scale 1.2s var(--ease); }
.lt-card__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.lt-card__line path { fill: none; stroke: var(--oak); stroke-width: .95; stroke-linejoin: round; stroke-linecap: round; }
.lt-card__cap { position: absolute; left: 12px; bottom: 12px; background: var(--ink); color: var(--paper); font-family: var(--display); font-stretch: 85%; font-weight: 600; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: calc(var(--r) - 4px); }
.lt-card:is(:hover, :focus-visible, .is-hot) .lt-card__clip { clip-path: polygon(0% 0%, 50% 0%, 50% 0%, 100% 0%, 100% 100%, 0% 100%); }
.lt-card:is(:hover, :focus-visible, .is-hot) .lt-card__clip img { scale: 1.05; }
.lt-card:is(:hover, :focus-visible, .is-hot) .lt-card__line { opacity: 0; transform: translateY(-14px); }
.lt-card__body { flex: 1; padding: 16px 2px 0; display: flex; flex-direction: column; gap: 6px; }
.lt-card__body h3 { font-size: clamp(1.25rem, 1.5vw, 1.45rem); }
.lt-card__body p { margin: 0; font-size: .98rem; line-height: 1.5; color: var(--muted); }
.lt-card__suits b { font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oak-deep); margin-right: 4px; }
.lt-card__go { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; min-height: 40px; font-weight: 600; color: var(--text); }
.lt-card__go svg { width: 20px; height: 20px; fill: none; stroke: var(--oak-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.lt-card:hover .lt-card__go svg, .lt-card.is-hot .lt-card__go svg { transform: translateY(-4px); }
.lt-card:focus-visible { outline: 3px solid var(--oak); outline-offset: 6px; border-radius: var(--r); }

/* ---------- enquiry on moss ---------- */
.enquire--moss { background: var(--moss); }
.enquire--moss .why__lines { z-index: 0; }
.lp-ghosthouse { position: absolute; left: max(-60px, calc((100vw - var(--wrap)) / 2 - 140px)); bottom: -40px; width: min(52vw, 720px); height: auto; overflow: visible; pointer-events: none; }
.lp-ghosthouse path { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1.4; stroke-linejoin: round; }
.lp-ghosthouse__roof { fill: rgba(255, 255, 255, .04) !important; }
.lp-plan { margin-top: 22px; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r); background: rgba(21, 27, 32, .18); }
.lp-plan__h { margin: 0 0 4px; font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: #F2D7AB; }
.lp-plan__t { margin: 0 0 10px; font-weight: 500; font-size: 1.05rem; }
.lp-plan__add { min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--white); font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--oak-l); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lp-plan__add:hover { color: var(--oak-l); }

/* hidden only until GSAP takes over */
.js:not(.rm):not(.gs):not(.reveal-all) :is([data-lp-in], .lt-card) { opacity: 0; }

/* ---------- shorter desktop screens (1366x768, 1280x720): the whole tool stays on the first screen ---------- */
@media (min-width: 981px) and (max-height: 860px) {
  .lp { padding: calc(var(--head-h) + 12px) 0 18px; }
  .planner--full { row-gap: 12px; }
  .lp__head h1 { font-size: clamp(2.2rem, 3.2vw, 3rem); margin-bottom: .2em; }
  .lp__lede { font-size: 1rem; line-height: 1.45; }
  .planner--full .seg { margin-bottom: 10px; }
  .planner--full .seg legend, .planner--full .range__l { margin-bottom: 6px; }
  .planner--full .seg__opts span { min-height: 38px; padding: 6px 14px; font-size: .92rem; }
  .planner--full .seg--tiles .seg__opts span { padding: 6px 4px 5px; gap: 2px; }
  .seg--tiles svg { width: 40px; height: 26px; }
  .planner--full .range__v { font-size: 1.3rem; }
  .planner--full .range input { height: 36px; }
  .lp-help { margin-top: -8px; }
  .lp-out { padding: 18px 22px 16px; }
  .lp-out .planner__type { font-size: 1.45rem; margin-bottom: 6px; }
  .lp-out p { font-size: .92rem; line-height: 1.42; margin-bottom: .6em; }
  .lp-figs { margin-bottom: 10px; padding: 10px 0; gap: 6px; }
  .lp-figs__price dd { font-size: 1.4rem; }
  .lp-out .btn { min-height: 44px; padding: .65em 1.2em; }
  .lp-out__disc { margin-top: 8px !important; font-size: .875rem !important; line-height: 1.35 !important; }
  .lp-sheet { padding: 8px 14px 4px; }
  .lp-sheet .pl-house { max-height: calc(100vh - 430px); max-height: calc(100svh - 430px); min-height: 200px; }
  .lp-block > div { padding: 5px 12px; }
}
@media (min-width: 981px) and (max-height: 740px) {
  .lp__lede { font-size: .95rem; }
  .lp-out .planner__type { font-size: 1.3rem; }
  .lp-out p { font-size: .9rem; line-height: 1.38; }
  .planner--full .seg__opts span { min-height: 36px; padding: 5px 13px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .planner--full { grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 320px); }
  .lt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lt-card__img { height: min(40vh, 360px); }
}
@media (max-width: 980px) {
  .planner--full { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
  .lp__head { grid-column: 1 / -1; }
  .lp-draw { grid-column: 1 / -1; grid-row: auto; max-width: 620px; justify-self: center; width: 100%; }
  .lp-ctrl { grid-column: 1; grid-row: auto; }
  .lp-out { grid-column: 2; grid-row: auto; }
  .lp-help { grid-column: 1 / -1; grid-row: auto; }
  .lp-sheet .pl-house { max-height: none; }
  .mh__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .lp { min-height: 0; padding: calc(var(--head-h) + 18px) 0 40px; }
  .planner--full { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lp__head h1 { font-size: clamp(2.05rem, 9vw, 2.5rem); }
  .lp__lede { font-size: 1rem; }
  .lp-ctrl, .lp-out { grid-column: 1; }
  .lp__head { order: 0; } .lp-draw { order: 1; } .lp-ctrl { order: 2; } .lp-help { order: 3; margin: -10px 0 0; } .lp-out { order: 4; }
  .lp-draw { position: sticky; top: var(--head-h); z-index: 3; gap: 0; margin: 0 calc(var(--gut) * -1); padding: 8px var(--gut) 10px; background: var(--ink); box-shadow: 0 14px 20px -12px rgba(0, 0, 0, .6); }
  .lp-sheet { padding: 8px 6px 4px; }
  .lp-sheet .pl-house { max-height: 32svh; min-height: 0; }
  .lp-block { display: none; }
  .pl-dim-t { font-size: 18px; }
  .lp-out { padding: 22px 20px 20px; }
  .lp-dock { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(21, 27, 32, .96); border-top: 1px solid rgba(244, 239, 230, .14); color: var(--paper); transform: translateY(110%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
  .lp-dock.is-on { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
  .lp-dock__p { display: grid; line-height: 1.2; }
  .lp-dock__p b { font-family: var(--display); font-stretch: 105%; font-weight: 800; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
  .lp-dock__p small { font-size: .875rem; color: rgba(244, 239, 230, .7); }
  .lp-dock .btn { flex: none; min-height: 46px; padding: .6em 1.1em; font-size: .95rem; }

  .mh__pin { padding-top: calc(var(--head-h) + 8px); padding-bottom: 14px; align-items: flex-start; }
  .mh__grid { gap: 14px; }
  .mh__fig { order: -1; height: auto; width: min(100%, calc(min(36vh, 340px) * 600 / 560)); width: min(100%, calc(min(36svh, 340px) * 600 / 560)); justify-self: center; }
  .mh__fig::before { inset: -8px 8px 8px -8px; }
  .mh__text h2 { font-size: 1.55rem; margin-bottom: .3em; }
  .mh__intro { display: none; }
  .mh-step { padding: 7px 0; grid-template-columns: 34px 1fr; gap: 10px; }
  .mh-step__n { width: 30px; height: 30px; font-size: .82rem; }
  .mh-step h3 { font-size: 1rem; }
  .mh-step p { display: none; font-size: .95rem; }
  .mh-step.is-on p { display: block; }
  .mh__bar { margin: 10px 0 14px; }
  .mh-read { left: 14px; top: 12px; }
  .mh-read__v { font-size: 2.2rem; }
  .mh-labs, .mh__fig .frame-cap { display: none; }

  .lt-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .lt-card__img { height: min(44svh, 380px); }
  .lp-ghosthouse { width: 120vw; left: -10vw; bottom: auto; top: 30px; }
}

/* no-JS and reduced motion: the measuring steps all read at once */
.no-js .mh-step, .rm .mh-step { opacity: 1; }
.no-js .mh-step p, .rm .mh-step p { display: block; }
@media (prefers-reduced-motion: reduce) {
  .pl-house--full .pl-ghost, .pl-house--full .pl-nb path, .pl-lampglow { animation: none; }
}
.lp-dock__p { margin: 0; }
.mh-min.is-past .mh-min__l { stroke-width: 3; stroke-dasharray: none; }

/* phones: the "How to measure it" link takes its own line rather than wrapping as a block mid-sentence */
@media (max-width: 980px) { .lp-help a { display: flex; width: fit-content; } }
