/* Kit: menu mechanics from website/MENUS.md section 5, with mo- names so a site's old header styles and script are left alone.
   The site's motion.css sets the look by overriding the --mo-nav-* values and the .mo-* rules. */
:root { --mo-nav-h: 76px; --mo-nav-h-float: 56px; --mo-nav-gap: 12px; --mo-nav-max: 1080px; --mo-nav-move: 320ms cubic-bezier(.2,.7,.2,1);
  --mo-nav-bg: #fff; --mo-nav-ink: #111; --mo-nav-line: rgba(0,0,0,.14); --mo-nav-shadow: 0 10px 30px rgba(0,0,0,.14); --mo-nav-radius: 999px; --mo-nav-pad: clamp(16px, 4vw, 40px); }
html { scroll-padding-top: calc(var(--mo-nav-h) + 16px); }
.mo-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 64px; pointer-events: none; }
.mo-hdr { position: sticky; top: 0; z-index: 60; display: flow-root; height: var(--mo-nav-h); padding: 0 var(--mo-nav-gap); pointer-events: none; }
.mo-bar { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 16px; height: var(--mo-nav-h); max-width: 100%; margin: 0 auto; padding: 0 calc(var(--mo-nav-pad) - var(--mo-nav-gap));
  color: var(--mo-nav-ink); border: 1px solid transparent; border-radius: 0; background: transparent;
  transition: height var(--mo-nav-move), max-width var(--mo-nav-move), margin-top var(--mo-nav-move), border-radius var(--mo-nav-move), padding var(--mo-nav-move), background-color 200ms linear, border-color 200ms linear, box-shadow 200ms linear; }
.mo-scrolled .mo-bar { height: var(--mo-nav-h-float); max-width: var(--mo-nav-max); margin-top: var(--mo-nav-gap); padding: 0 12px 0 18px; border-color: var(--mo-nav-line); border-radius: var(--mo-nav-radius); background: var(--mo-nav-bg); box-shadow: var(--mo-nav-shadow); }
.mo-hidden .mo-hdr { transform: translateY(calc(-100% - 24px)); }
.mo-hdr { transition: transform 340ms cubic-bezier(.2,.7,.2,1); }
.mo-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: none; }
.mo-nav { margin-left: auto; }
.mo-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.mo-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; color: inherit; background: none; border: 0; font: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; }
.mo-has-sub { position: relative; }
.mo-has-sub > .mo-link::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 150ms; }
.mo-has-sub > .mo-link[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.mo-sub { position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px; display: none; padding: 8px; background: var(--mo-nav-bg); color: var(--mo-nav-ink); border: 1px solid var(--mo-nav-line); border-radius: 14px; box-shadow: var(--mo-nav-shadow); }
.mo-link[aria-expanded="true"] + .mo-sub { display: block; }
.mo-sub a { display: grid; gap: 2px; padding: 10px 12px; min-height: 44px; color: inherit; text-decoration: none; border-radius: 8px; }
.mo-sub a small { opacity: .75; font-weight: 400; }
.mo-cta { flex: none; white-space: nowrap; }
.mo-menu-btn { display: none; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; font: inherit; color: inherit; background: none; border: 1px solid currentColor; border-radius: var(--mo-nav-radius); cursor: pointer; flex: none; }
@media (max-width: 860px) {
  :root { --mo-nav-h: 64px; --mo-nav-h-float: 52px; --mo-nav-gap: 8px; }
  .mo-menu-btn { display: inline-flex; }
  .mo-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; display: none; max-height: calc(100dvh - var(--mo-nav-h) - 32px); overflow-y: auto; padding: 8px; background: var(--mo-nav-bg); color: var(--mo-nav-ink); border: 1px solid var(--mo-nav-line); border-radius: 18px; box-shadow: var(--mo-nav-shadow); }
  .mo-nav-open .mo-nav { display: block; }
  .mo-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .mo-link { width: 100%; min-height: 48px; justify-content: space-between; }
  .mo-sub { position: static; display: none; min-width: 0; border: 0; box-shadow: none; padding: 0 0 8px 12px; background: none; }
  .mo-bar { gap: 8px; }
  .mo-bar .mo-cta { margin-left: auto; }
  .mo-nav-open .mo-bar, .mo-bar { }
}
@media (max-width: 380px) { .mo-menu-btn svg { display: none; } .mo-menu-btn { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .mo-bar, .mo-hdr { transition: none; } }
/* Kit: pinned hero mechanics. The site's motion.css animates the hero's parts with var(--mo-pin), which runs 0 to 1. */
.mo-pin { --mo-pin: 0; --mo-pin-extra: 90vh; --mo-pin-offset: 0px; position: relative; }
/* the room to scroll through has to be real height (a sticky element cannot travel into its parent's padding) */
.mo-pin.is-pinned { height: calc(var(--mo-pin-h, 100vh) + var(--mo-pin-extra)); }
.mo-pin.is-pinned > :first-child { position: sticky; top: var(--mo-pin-top, 0px); }
/* Coulee & Co. Realty: motion in the language of an architect's presentation drawing.
   Plan frames rule their four construction lines, then the photo is uncovered; headings are ruled in from the left margin;
   sheets and plans unroll; text is set down quietly. No bounce, nothing pill-shaped, only the site's own tokens. */
.mo-ready .mo { --mo-d: calc(var(--mo-i, 0) * 70ms); --mo-e: cubic-bezier(.3, .6, .15, 1); }

/* quiet text and rows: set down on the sheet */
.mo-ready .mo { opacity: 0; transform: translateY(12px); transition: opacity .5s ease-out, transform .6s var(--mo-e); transition-delay: var(--mo-d); }
.mo-ready .mo.in { opacity: 1; transform: none; }

/* headings: ruled in from the left margin */
.mo-ready h2.mo { opacity: 1; transform: translateX(-10px); clip-path: inset(-.2em 100% -.3em 0); transition: clip-path .75s var(--mo-e), transform .75s var(--mo-e); transition-delay: var(--mo-d); }
.mo-ready h2.mo.in { transform: none; clip-path: inset(-.2em -2% -.3em 0); }

/* plan frames: the four lines draw, the photo is uncovered, then the words arrive */
.mo-ready .card.mo, .mo-ready .nb.mo, .mo-ready .pf.mo { opacity: 1; transform: none; transition: none; }
.mo-ready .mo .ln { transition: transform .7s var(--mo-e) var(--mo-d), background-color .2s; }
.mo-ready .mo:not(.in) .ln-t, .mo-ready .mo:not(.in) .ln-b { transform: scaleX(0); }
.mo-ready .mo:not(.in) .ln-l, .mo-ready .mo:not(.in) .ln-r { transform: scaleY(0); }
.mo-ready .mo .pf-box img, .mo-ready .mo .card-plat { clip-path: inset(0 0 0 0); transition: clip-path .65s var(--mo-e) calc(var(--mo-d) + .2s); }
.mo-ready .mo:not(.in) .pf-box img, .mo-ready .mo:not(.in) .card-plat { clip-path: inset(0 100% 0 0); }
.mo-ready .card.mo > .card-body, .mo-ready .card.mo .tag, .mo-ready .card.mo > .save, .mo-ready .nb.mo > :not(.pf) { transition: opacity .45s ease-out calc(var(--mo-d) + .4s); }
.mo-ready .card.mo:not(.in) > .card-body, .mo-ready .card.mo:not(.in) .tag, .mo-ready .card.mo:not(.in) > .save, .mo-ready .nb.mo:not(.in) > :not(.pf) { opacity: 0; }

/* sheets and floor plans: unrolled onto the table */
.mo-ready .sheet.mo, .mo-ready .plan-fig.mo { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path .85s var(--mo-e); transition-delay: var(--mo-d); }
.mo-ready .plan-fig.mo { clip-path: inset(0 100% 0 0); }
.mo-ready .sheet.mo.in, .mo-ready .plan-fig.mo.in { clip-path: inset(0 0 0 0); }

/* The model band: four card-stock scale models standing on a drafting grid. The grid's lines run past every corner like the
   photo frames do; they draw across as the band scrolls in, and each model is lowered onto its square. */
.mo-band { --o: 14px; background: var(--chalk); --bgc: var(--chalk); padding: var(--s6) 0; }
main > .mo-band { padding: 0; }
.mo-band__in { --k: clamp(0, calc((var(--mo-p, 1) - .06) * 3.2), 1); position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mo-band__in::before, .mo-band__in::after, .mo-cell::before, .mo-cell::after { content: ''; position: absolute; background: var(--ink); pointer-events: none; }
.mo-cell::before { left: 0; top: calc(var(--o) * -1); bottom: calc(var(--o) * -1); width: 1px; transform: scaleY(var(--k)); transform-origin: top; }
.mo-cell::after { top: 0; left: calc(var(--o) * -1); right: calc(var(--o) * -1); height: 1px; transform: scaleX(var(--k)); transform-origin: left; }
.mo-band__in::before { right: 0; top: calc(var(--o) * -1); bottom: calc(var(--o) * -1); width: 1px; transform: scaleY(var(--k)); transform-origin: bottom; }
.mo-band__in::after { bottom: 0; left: calc(var(--o) * -1); right: calc(var(--o) * -1); height: 1px; transform: scaleX(var(--k)); transform-origin: right; }
.mo-cell { position: relative; display: flex; flex-direction: column; padding: var(--s4) var(--s4) var(--s4); color: var(--ink); text-decoration: none; }
.mo-cell__fig { display: block; width: min(100%, 190px); margin: var(--s3) auto var(--s3); transform: translateY(calc((var(--k) - 1) * var(--drop, 22px))); }
.mo-cell__fig img { width: 100%; height: auto; transition: transform .3s cubic-bezier(.3, .6, .15, 1); }
.mo-cell__name { font: 400 1.625rem/1.15 var(--serif); text-decoration: underline; text-decoration-color: var(--cline); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.mo-cell small { display: block; margin-top: var(--s2); font: 400 .9375rem/1.45 var(--sans); color: var(--graphite); max-width: 26ch; }
.mo-cell:hover, .mo-cell:focus-visible { color: var(--juniper-d); background: var(--sheet); }
.mo-cell:hover .mo-cell__name, .mo-cell:focus-visible .mo-cell__name { text-decoration-color: var(--juniper); text-decoration-thickness: 2px; }
.mo-cell:hover img, .mo-cell:focus-visible img { transform: translateY(-6px); }
.mo-cell:focus-visible { outline-offset: -5px; }
.mo-ready .mo-cell.mo { transform: none; }
@media (max-width: 899px) {
  .mo-band__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mo-band { --o: 10px; padding: var(--s5) 0; }
  .mo-cell { padding: var(--s3) var(--s3) var(--s4); }
  .mo-cell__fig { width: min(100%, 124px); margin-top: var(--s2); }
  .mo-cell__name { font-size: 1.375rem; }
}

/* ---- Menu: a plain bar that becomes a drafting-style floating bar. Squared corners, a white sheet, and four ink lines that
   run past its corners the way the photo frames' lines do. Neighborhoods opens a bento sheet of the three guides. ---- */
:root { --mo-nav-bg: var(--sheet); --mo-nav-ink: var(--ink); --mo-nav-line: transparent; --mo-nav-shadow: 0 10px 28px rgba(36, 40, 43, .12); --mo-nav-radius: 0px;
  --mo-nav-pad: max(var(--gut), calc((100vw - var(--wrap)) / 2)); --mo-nav-max: 1120px; --mo-nav-gap: 14px; --mo-run: 10px; }
.skip { z-index: 70; }
.mo-hdr { transition: transform 340ms cubic-bezier(.2, .7, .2, 1), background-color .2s linear, box-shadow .2s linear; }
html:not(.mo-scrolled) .mo-hdr { background: var(--chalk); box-shadow: inset 0 -1px 0 var(--ink); }
.mo-scrolled .mo-bar { padding: 0 8px 0 16px; }
.mo-bar::before, .mo-bar::after, .mo-sub::before, .mo-sub::after { content: ''; position: absolute; pointer-events: none; }
.mo-bar::before, .mo-sub::before { inset: -1px calc(var(--mo-run) * -1); border-block: 1px solid var(--ink); }
.mo-bar::after, .mo-sub::after { inset: calc(var(--mo-run) * -1) -1px; border-inline: 1px solid var(--ink); }
.mo-bar::before, .mo-bar::after { opacity: 0; transition: transform .55s cubic-bezier(.3, .6, .15, 1), opacity .12s linear; }
.mo-bar::before { transform: scaleX(0); transform-origin: left; }
.mo-bar::after { transform: scaleY(0); transform-origin: top; }
.mo-scrolled .mo-bar::before, .mo-scrolled .mo-bar::after { opacity: 1; transform: none; }
.mo-brand { min-height: 44px; }
.mo-link { min-height: 44px; font: 450 .9688rem/1.2 var(--sans); color: var(--ink); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .42em; transition: color .15s, text-decoration-color .15s; }
.mo-link:hover { color: var(--juniper); text-decoration-color: currentColor; }
.mo-link[aria-current] { text-decoration-color: var(--juniper); text-decoration-thickness: 2px; }
.mo-has-sub > .mo-link::after { width: 6px; height: 6px; border-width: 1.5px; text-decoration: none; }
.mo-cta { min-height: 44px; padding: 8px 18px; font-size: .9688rem; }
.mo-menu-btn { min-height: 44px; font: 500 .9375rem var(--sans); border: 1px solid var(--ink); border-radius: 3px; }
.mo-saved .heart { width: 18px; height: 18px; flex: none; }
.mo-saved .heart path { fill: var(--juniper); stroke: var(--juniper); }
.mo-only-sheet { display: none; }
.mo-sub a.mo-tile { position: relative; display: flex; flex-direction: column; gap: 0; min-height: 0; padding: 0; border-radius: 0; background: var(--chalk); color: var(--ink); transition: background-color .15s; }
.mo-tile img { flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; background: var(--vellum); }
.mo-tile__txt { display: block; padding: 10px 12px 12px; }
.mo-tile b { display: block; font: 400 1.5rem/1.1 var(--serif); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: text-decoration-color .15s; }
.mo-sub a.mo-tile small { display: block; margin-top: 4px; font: 400 .8438rem/1.4 var(--sans); color: var(--graphite); opacity: 1; }
.mo-sub a.mo-tile:hover { background: var(--sprig); }
.mo-tile:hover b { text-decoration-color: var(--juniper); }
.mo-sub a.mo-tile--d { background: var(--juniper); color: #fff; justify-content: flex-end; }
.mo-sub a.mo-tile--d small { color: #fff; }
.mo-sub a.mo-tile--d:hover { background: var(--juniper-d); }
.mo-tile--d:hover b { text-decoration-color: #fff; }
.mo-tile:focus-visible { outline-offset: 2px; }
@media (min-width: 861px) {
  .mo-has-sub { position: static; }
  .mo-sub { top: calc(100% + 18px); left: auto; right: 0; width: min(720px, 100%); padding: 14px; border: 0; border-radius: 0; background: var(--sheet); box-shadow: 0 18px 40px rgba(36, 40, 43, .16);
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 176px 176px; gap: 14px; }
  .mo-link[aria-expanded="true"] + .mo-sub, html:not(.js) .mo-has-sub:focus-within > .mo-sub { display: grid; }
  .mo-tile--a { grid-row: 1 / 3; }
  .mo-tile--a b { font-size: 2rem; }
  .mo-sub a.mo-tile--b { grid-column: 2 / 4; flex-direction: row; align-items: stretch; }
  .mo-tile--b img { flex: 0 0 52%; width: 52%; height: 100%; }
  .mo-tile--b .mo-tile__txt { align-self: flex-end; }
  .mo-tile--d b { font-size: 1.375rem; }
}
@media (min-width: 861px) and (max-width: 1179px) {
  .mo-bar { gap: 10px; }
  .mo-nav > ul { gap: 0; }
  .mo-link { padding: 0 9px; }
  .mo-brand .brand-sub { display: none; }
  .mo-saved__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mo-cta { padding-inline: 14px; }
}
@media (min-width: 861px) and (max-width: 960px) { .mo-brand .logo { display: none; } .mo-link { padding: 0 7px; } }
@media (max-width: 860px) {
  :root { --mo-nav-gap: 12px; --mo-run: 8px; }
  .mo-scrolled .mo-bar { padding: 0 6px 0 12px; }
  .mo-nav { top: calc(100% + 16px); padding: 4px 16px 12px; box-shadow: 0 18px 40px rgba(36, 40, 43, .16); border: 1px solid var(--ink); border-radius: 0; background: var(--sheet); max-height: calc(100dvh - var(--mo-nav-h) - 40px); }
  .mo-link { min-height: 52px; padding: 0; font-size: 1.125rem; }
  .mo-nav > ul > li { border-bottom: 1px solid var(--vellum); }
  .mo-nav > ul > li:last-child { border-bottom: 0; }
  .mo-only-sheet { display: block; }
  .mo-saved .mo-link { justify-content: flex-start; gap: 10px; }
  .mo-saved .count { margin-left: auto; }
  .mo-sub a.mo-tile--d { justify-content: flex-start; }
  html:not(.js) .mo-nav { order: 3; }
  .mo-only-sheet .mo-link { color: var(--juniper); }
  .mo-sub::before, .mo-sub::after { content: none; }
  .mo-link[aria-expanded="true"] + .mo-sub { display: grid; gap: 8px; padding: 0 0 14px; }
  .mo-sub a.mo-tile { flex-direction: row; align-items: stretch; min-height: 72px; }
  .mo-tile img { flex: 0 0 96px; width: 96px; height: auto; min-height: 72px; }
  .mo-tile__txt { align-self: center; padding: 8px 12px; }
  .mo-tile b { font-size: 1.375rem; }
  .mo-cta { min-height: 42px; padding: 6px 12px; font-size: .875rem; line-height: 1.15; }
  .mo-menu-btn { min-height: 42px; padding: 0 12px; }
  .mo-brand { min-width: 0; gap: 8px; }
  .mo-brand .brand-sub { display: none; }
  .mo-brand .brand-name { font-size: 1.5rem; white-space: nowrap; }
  html:not(.js) .mo-hdr { position: static; height: auto; }
  html:not(.js) .mo-bar { height: auto; flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .mo-nav { position: static; display: block; width: 100%; max-height: none; box-shadow: none; }
  html:not(.js) .mo-sub { display: grid; gap: 8px; padding: 0 0 14px; }
  html:not(.js) .mo-menu-btn { display: none; }
}
@media (max-width: 460px) {
  .mo-cta { white-space: normal; max-width: 8.4em; padding: 4px 10px; font-size: .8125rem; }
  .mo-brand .brand-name { font-size: 1.375rem; }
  .mo-brand .logo { width: 28px; height: 28px; }
}
@media (max-width: 350px) { .mo-brand .logo { display: none; } .mo-brand .brand-name { font-size: 1.25rem; } .mo-menu-btn { padding: 0 9px; } }
@media (prefers-reduced-motion: reduce) { .mo-bar::before, .mo-bar::after, .mo-hdr { transition: none; } }

/* ---- Hero: one pinned scroll section. The house is surveyed as the page scrolls: a juniper measuring line crosses the photo,
   a drafting grid is laid over it behind the line, the photo moves a step closer, and the price is ruled under and grows.
   A scale rule along the bottom shows how far through. Headline, text, form and buttons stay put. ---- */
.mo-pin { --mo-pin-offset: 76px; --mo-pin-extra: 90vh; }
.mo-pin.is-pinned { --k1: clamp(0, calc(var(--mo-pin) / .8), 1); --k2: clamp(0, calc((var(--mo-pin) - .5) / .45), 1); --k0: clamp(0, calc(var(--mo-pin) * 14), 1); }
.mo-pin.is-pinned > .hero { position: sticky; }
.mo-pin.is-pinned .pf-hero .pf-box img { transform: scale(calc(1 + var(--mo-pin) * .1)); clip-path: inset(calc(var(--mo-pin) * 4.6%)); }
.mo-pin.is-pinned .pf-hero .pf-box::before, .mo-pin.is-pinned .pf-hero .pf-box::after { content: ''; position: absolute; z-index: 1; pointer-events: none; }
.mo-pin.is-pinned .pf-hero .pf-box::after { inset: var(--p);
  background-image: linear-gradient(to right, rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 8.3333% 12.5%; clip-path: inset(0 calc((1 - var(--k1)) * 100%) 0 0); }
.mo-pin.is-pinned .pf-hero .pf-box::before { left: var(--p); right: var(--p); top: 0; bottom: 0; background: linear-gradient(var(--juniper), var(--juniper)) right / 2px 100% no-repeat; transform: translateX(calc((var(--k1) - 1) * 100%)); opacity: var(--k0); }
.mo-pin.is-pinned .hero-price { position: relative; transform-origin: 100% 100%; transform: scale(calc(1 + var(--k2) * .08)); }
.mo-pin.is-pinned .hero-price::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.14em; height: 2px; background: var(--juniper); transform: scaleX(var(--k2)); transform-origin: left; }
.mo-pin.is-pinned > .hero::before, .mo-pin.is-pinned > .hero::after { content: ''; position: absolute; left: var(--gut); right: var(--gut); bottom: 40px; pointer-events: none; }
.mo-pin.is-pinned > .hero::after { height: 9px; border-bottom: 1px solid var(--ink); background: repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 2.5%); background-size: calc(100% - 1px) 100%; border-right: 1px solid var(--ink); }
.mo-pin.is-pinned > .hero::before { height: 3px; bottom: 37px; background: var(--juniper); transform: scaleX(var(--mo-pin)); transform-origin: left; }
