/* 118-4868 Riverview Drive, Edgewater BC - single-listing page.
   Kit: Heron (architect's drawing sheet) transformed for this house: hairline-ruled cells, small square
   markers and mono labels, a traced floor plan as the signature. Palette from the house itself:
   new-drywall white, pine shadow for type, the barn red of the siding, stained-wood amber (sparingly),
   and the cool blue-grey of the peaks for the quiet sections.
   Type: PP Editorial New (display), PP Neue Montreal (text), Archivo Pro Mono (labels and the plan). */

@font-face { font-family: "Editorial New"; src: url(fonts/editorial-new-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url(fonts/neue-montreal-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url(fonts/neue-montreal-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo Mono"; src: url(fonts/archivo-pro-mono.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f3f2ee;       /* new drywall */
  --paper-2: #eae9e3;
  --white: #fbfbf9;
  --ink: #1c2924;         /* pine shadow */
  --ink-2: #46534d;
  --ink-3: #737d77;
  --rule: rgba(28, 41, 36, .15);
  --rule-2: rgba(28, 41, 36, .3);
  --barn: #7d2e2a;        /* the siding */
  --barn-2: #64231f;
  --barn-soft: rgba(125, 46, 42, .14);
  --amber: #bf7a33;       /* porch and deck rails */
  --amber-soft: rgba(191, 122, 51, .2);
  --peak: #d5dbde;        /* limestone peaks in shade */
  --peak-2: #bcc6cb;
  --display: "Editorial New", "Iowan Old Style", Georgia, serif;
  --sans: "Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --mono: "Archivo Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --navH: 64px;
  --heroIn: 64px;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, dl, dd, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
sup { font-size: .55em; line-height: 0; vertical-align: .55em; }
.nw { white-space: nowrap; }
::selection { background: var(--barn); color: var(--paper); }

/* every short block evens out its lines (long blocks switch to "pretty" in site.js) */
p, li, dd, dt, figcaption, blockquote, h1, h2, h3, .tag { text-wrap: balance; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; font: 500 14px var(--sans); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--barn); outline-offset: 3px; }

.wrap { width: min(1200px, calc(100% - 208px)); margin-inline: auto; }

/* ---------------- buttons: press in ---------------- */
.btn {
  --bg: var(--barn); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 24px; border-radius: 2px; border: 1px solid color-mix(in oklab, #fff 14%, var(--bg));
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 500 16px/1.1 var(--sans); letter-spacing: .005em;
  box-shadow: 0 1px 0 rgba(28, 41, 36, .18), 0 2px 6px rgba(28, 41, 36, .08);
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
}
.btn:hover { background: color-mix(in oklab, #000 12%, var(--bg)); transform: translateY(1px); box-shadow: 0 1px 0 rgba(28, 41, 36, .2); }
.btn:active { transform: translateY(2px); box-shadow: none; transition-duration: .06s; }
.btn__arrow { font-family: var(--mono); transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 17px 24px; font-size: 17px; }
.btn { white-space: nowrap; }
.btn--paper { --bg: var(--paper); --fg: var(--barn-2); border-color: var(--paper); }
.btn--paper:focus-visible { outline-color: var(--paper); }
.btn--line { --bg: transparent; --fg: var(--ink); border-color: var(--rule-2); box-shadow: none; }
.btn--line:hover { background: var(--paper-2); }
@media (max-width: 899px) { .cta-mail { display: none !important; } }
@media (min-width: 900px) { .cta-tel { display: none !important; } }

/* ---------------- labels ---------------- */
.label { display: flex; align-items: center; font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.label__n { display: inline-flex; align-items: center; gap: 10px; color: var(--barn); margin-right: 14px; }
.label__n::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.label--light, .label--light .label__n { color: var(--paper); }
.h2 { font: 400 clamp(40px, 4.5vw, 70px)/1.02 var(--display); letter-spacing: -.012em; margin-top: 22px; }
.body { color: var(--ink-2); max-width: 60ch; }
.body--lg { font-size: 19px; line-height: 1.55; }
.body + .body { margin-top: 14px; }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--navH);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 24px;
  background: rgba(243, 242, 238, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: transform .34s var(--ease);
}
.nav.is-hidden { transform: translateY(-101%); }
.nav__mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 500 15px/1 var(--sans); letter-spacing: .005em; }
.nav__sq { width: 14px; height: 14px; flex: none; display: block; }
.nav__sq rect:first-child { fill: var(--barn); }
.nav__sq rect + rect { fill: none; stroke: var(--paper); stroke-width: 1.2; }
.nav__links { display: flex; gap: 34px; }
.nav__links a { position: relative; text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--barn); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__act { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.nav__tel { font: 400 15px var(--sans); text-decoration: none; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.nav__tel:hover { color: var(--barn); }

/* ---------------- hero: the same wall, outside and in, over a title block ---------------- */
.hero { padding: calc(var(--navH) + 16px) var(--heroIn) 0; }
.hero__pair { display: grid; grid-template-columns: 58fr 42fr; gap: 12px; height: clamp(320px, calc(100vh - 404px), 760px); height: clamp(320px, calc(100svh - 404px), 760px); }
.hero__ph { position: relative; overflow: hidden; background: var(--paper-2); }
.hero__ph img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.hero__ph--out img { object-position: 52% 58%; }
.hero__ph--in img { object-position: 64% 46%; }
.tag { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 10px; padding: 7px 11px 7px 7px; background: var(--paper); color: var(--ink); font: 400 11.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tag b { display: inline-grid; place-items: center; width: 20px; height: 20px; background: var(--barn); color: var(--paper); font-weight: 400; }

.tb { display: grid; grid-template-columns: 6fr 3fr 3.4fr; border-top: 1px solid var(--rule-2); margin-top: 16px; }
.tb__head { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 18px 0 18px; border-bottom: 1px solid var(--rule); }
.tb__eyebrow { display: flex; flex-wrap: wrap; gap: 6px 0; font: 400 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.tb__eyebrow span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--barn); margin: 0 14px; vertical-align: .2em; }
.tb__mls { font: 400 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.tb__title { grid-column: 1 / -1; margin-top: 12px; font: 400 clamp(48px, 6.15vw, 120px)/.98 var(--display); letter-spacing: -.016em; color: var(--ink); }
.tb__cell { position: relative; padding: 18px 28px 22px; border-left: 1px solid var(--rule); }
.tb__cell:first-of-type { padding-left: 0; border-left: 0; }
.tb__cell + .tb__cell::before { content: ""; position: absolute; left: -5px; top: -5px; width: 9px; height: 9px;
  background: linear-gradient(var(--ink-3), var(--ink-3)) center / 1px 9px no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) center / 9px 1px no-repeat; }
.cell__k { font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.hero__lede { font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 36em; }
.hero__lede span { display: block; text-wrap: balance; }
.tb__price { font: 400 46px/1 var(--display); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.tb__addr { margin-top: 10px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.tb__cell--act { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.tb__agent { font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.tb__agent strong { font-weight: 500; color: var(--ink); }

/* ---------------- sections ---------------- */
.sec { padding: clamp(80px, 9vw, 140px) 0; }
.ph { position: relative; overflow: hidden; background: var(--paper-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .7s var(--ease); }
.ph:hover img { transform: scale(1.015); }
.ph figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 9px; background: var(--paper); font: 400 11px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }

/* 01 the house */
.sec--house { padding-bottom: clamp(64px, 7vw, 110px); }
.house { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: end; }
.quote { margin-top: 36px; padding-left: 26px; border-left: 2px solid var(--barn); }
.quote p { font: 400 clamp(26px, 2.5vw, 38px)/1.16 var(--display); color: var(--ink); letter-spacing: -.005em; }
.quote .quote__by { margin-top: 14px; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.nums { display: grid; grid-template-columns: 1fr 1fr; margin-top: 32px; border-top: 1px solid var(--rule-2); }
.nums div { padding: 16px 0 18px; border-bottom: 1px solid var(--rule); }
.nums div:nth-child(odd) { padding-right: 20px; }
.nums div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--rule); }
.nums dt { font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.nums dd { margin-top: 10px; font: 400 44px/1 var(--display); font-variant-numeric: lining-nums; }
.ph--house { margin-top: clamp(48px, 6vw, 80px); aspect-ratio: 2 / 1; }
.ph--house img { object-position: 50% 34%; }

/* 02 the walk */
.sec--walk { border-top: 1px solid var(--rule); background: linear-gradient(var(--white), var(--paper) 30%); }
.walk__head { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.walk__intro { max-width: 46ch; }
.walk { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.walk__plan { position: sticky; top: max(84px, calc(50vh - 360px)); }
.floors { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.floor__t { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-2); }
.floor__t span { font: 500 15px/1 var(--sans); }
.floor__t em { font: 400 10.5px/1 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.plan { display: block; width: 100%; height: auto; overflow: visible; }
.plan__fine { margin-top: 18px; max-width: 52ch; font-size: 13px; line-height: 1.5; color: var(--ink-3); }

/* the drawing */
.plan .rm { fill: transparent; transition: fill .45s var(--ease); }
.plan .rm.on { fill: url(#lit); }
.plan .lit__bg { fill: rgba(125, 46, 42, .07); }
.plan .lit__ln { stroke: rgba(125, 46, 42, .55); stroke-width: 2.2; }
.plan .rm--out { fill: transparent; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 9 8; transition: fill .45s var(--ease), stroke .45s var(--ease); }
.plan .rm--out.on { fill: var(--amber-soft); stroke: var(--amber); }
.plan .chase { stroke: var(--ink-3); stroke-width: 1.6; }
.plan .hatch { stroke: var(--ink-3); stroke-width: 1.5; }
.plan .wall { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: square; }
.plan .wall--ext { stroke-width: 10; }
.plan .win { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.plan .door { fill: none; stroke: var(--ink-2); stroke-width: 1.7; }
.plan .fp { fill: var(--ink-2); }
.plan .fx rect, .plan .fx ellipse, .plan .fx path { fill: none; stroke: var(--ink-3); stroke-width: 1.7; transition: fill .45s var(--ease), stroke .45s var(--ease); }
.plan .fx .fx--k.on { fill: rgba(125, 46, 42, .2); stroke: var(--barn); }
.plan .fx--arrow { stroke: var(--ink-3); }
.plan .lbl text { font-family: var(--mono); font-size: 26px; letter-spacing: .05em; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 7px; stroke-linejoin: round; transition: fill .45s var(--ease); }
.plan .lbl .dim { font-size: 20px; fill: var(--ink-2); letter-spacing: .02em; }
.plan .lbl .sm { font-size: 20px; }
.plan .lbl .xs { font-size: 14px; fill: var(--ink-2); }
.plan .lbl .out { font-size: 22px; fill: var(--ink-2); }
.plan .lbl .on { fill: var(--barn); }
.plan .lbl .out.on { fill: #8a531c; }
.plan .pin rect { fill: var(--white); stroke: var(--ink-3); stroke-width: 1.8; transition: fill .35s var(--ease), stroke .35s var(--ease); }
.plan .pin text { font-family: var(--mono); font-size: 19px; text-anchor: middle; fill: var(--ink-2); transition: fill .35s var(--ease); }
.plan .pin.done rect { stroke: var(--barn); }
.plan .pin.done text { fill: var(--barn); }
.plan .pin.on rect { fill: var(--barn); stroke: var(--barn); }
.plan .pin.on text { fill: var(--paper); }

/* the stops */
.stops { counter-reset: stop; }
.stop { position: relative; padding: 0 0 clamp(88px, 13vh, 150px); }
.stop:last-child { padding-bottom: 0; }
.stop__k { display: flex; align-items: center; gap: 12px; font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.stop__k span { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 5px; border: 1px solid var(--rule-2); color: var(--ink-2); transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.stop.is-on .stop__k span { background: var(--barn); border-color: var(--barn); color: var(--paper); }
.stop__t { margin-top: 18px; font: 400 clamp(32px, 2.9vw, 46px)/1.05 var(--display); letter-spacing: -.01em; }
.stop__p { margin-top: 14px; max-width: 46ch; color: var(--ink-2); font-size: 17.5px; line-height: 1.55; }
.ph--lead { margin-top: 28px; aspect-ratio: 16 / 10; }
.ph--sub { margin: 12px 0 0 auto; width: 62%; aspect-ratio: 16 / 10; }
.ph-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ph-pair .ph { aspect-ratio: 4 / 3; }

/* the one gable line: the triangle of glass over the tall windows, drawn over the great room's heading */
.gable { display: block; width: 230px; height: auto; margin-bottom: 26px; overflow: visible; }
.gable path { fill: none; stroke: var(--barn); stroke-width: 1.5; stroke-linejoin: miter; }
.gable path:nth-child(1), .gable path:nth-child(3) { stroke: var(--ink-3); stroke-width: 1.2; }
.js .gable path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.js .gable path:nth-child(2) { transition-delay: .5s; }
.js .gable path:nth-child(3) { transition-delay: .8s; }
.js .gable path:nth-child(4) { transition-delay: 1s; }
.js .gable.is-drawn path { stroke-dashoffset: 0; }

/* the phone key (built by site.js) */
.key { display: none; }

/* 03 the resort */
.sec--resort { background: var(--peak); }
.sec--resort .ph { background: var(--peak-2); }
.resort__head { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; }
.resort__copy .body { color: #33413b; }
.resort__lead { display: grid; grid-template-columns: 62fr 38fr; gap: 14px; margin-top: clamp(44px, 5vw, 72px); align-items: stretch; }
.ph--club { aspect-ratio: 4 / 3; }
.resort__side { display: flex; flex-direction: column; gap: 14px; }
.resort__side .ph { aspect-ratio: 16 / 10; }
.quote--sm { margin-top: auto; padding: 26px 0 4px 24px; border-left-color: var(--barn); }
.quote--sm p { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.22; }
.amen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.amen .ph { aspect-ratio: 4 / 3; max-width: 470px; }

/* 04 key facts */
.sec--facts { background: var(--barn); color: var(--paper); }
.facts { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.sec--facts .h2 { color: var(--paper); }
.facts__price { margin-top: 26px; font: 400 clamp(52px, 5vw, 76px)/1 var(--display); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.facts__sub { margin: 14px 0 32px; font-size: 17px; line-height: 1.45; color: rgba(243, 242, 238, .82); max-width: 30ch; }
.facts__list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(243, 242, 238, .4); }
.facts__list div { padding: 15px 0 16px; border-bottom: 1px solid rgba(243, 242, 238, .2); }
.facts__list div:nth-child(odd):not(.wide) { padding-right: 22px; }
.facts__list div:nth-child(even):not(.wide) { padding-left: 22px; border-left: 1px solid rgba(243, 242, 238, .2); }
.facts__list .wide { grid-column: 1 / -1; }
.facts__list dt { font: 400 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 242, 238, .7); }
.facts__list dd { margin-top: 8px; font-size: 18px; line-height: 1.4; }

/* 05 agent */
.agent { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: stretch; }
.agent__ph { position: relative; width: 240px; min-height: 300px; overflow: hidden; background: var(--paper-2); }
.agent__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.agent__card { padding: 4px 0; }
.agent__card .h2 { margin-top: 18px; }
.agent__firm { margin-top: 12px; font: 500 18px/1.4 var(--sans); }
.agent__firm span { display: block; font-weight: 400; font-size: 15.5px; color: var(--ink-2); }
.agent__lines { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 26px; border-top: 1px solid var(--rule-2); }
.agent__lines div { padding: 14px 30px 14px 0; }
.agent__lines div + div { padding-left: 30px; border-left: 1px solid var(--rule); }
.agent__lines dt { font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.agent__lines dd { margin-top: 8px; font-size: 17px; }
.agent__lines a { text-decoration: none; }
.agent__lines a:hover { color: var(--barn); text-decoration: underline; text-underline-offset: 3px; }
.agent__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.agent__note { margin-top: 18px; font-size: 15px; color: var(--ink-2); max-width: 52ch; }

/* 06 photos */
.sec--photos { border-top: 1px solid var(--rule); padding-top: clamp(72px, 8vw, 120px); }
.photos__head { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; margin-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.grid li { position: relative; }
.grid { grid-auto-flow: dense; }
.grid .g-big { grid-column: span 2; grid-row: span 2; }
.grid .g-wide { grid-column: span 2; }
.thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.thumb { position: relative; }
.g-big .thumb, .g-wide .thumb { aspect-ratio: auto; height: 100%; min-height: 100%; }
.g-big .thumb img, .g-wide .thumb img { position: absolute; inset: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.thumb:hover img { transform: scale(1.04); }
.thumb__tag { position: absolute; left: 6px; bottom: 6px; padding: 4px 6px; background: var(--paper); font: 400 9.5px/1.1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); pointer-events: none; }

/* footer */
.foot { background: var(--ink); color: rgba(243, 242, 238, .86); padding: 64px 24px 28px; }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 40px; padding-bottom: 28px; border-bottom: 1px solid rgba(243, 242, 238, .18); }
.foot__mark { display: inline-flex; align-items: center; gap: 12px; font: 500 17px/1 var(--sans); color: var(--paper); }
.foot__mark .nav__sq rect + rect { stroke: var(--ink); }
.foot__line { font: 400 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.foot__line span + span::before { content: "/"; color: rgba(243, 242, 238, .4); margin: 0 12px; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 40px; padding-top: 32px; font-size: 14.5px; line-height: 1.55; }
.foot__cols p + p { margin-top: 10px; }
.foot__k { font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 242, 238, .55); margin-bottom: 12px; }
.foot__legal { max-width: 60ch; font-size: 13px; color: rgba(243, 242, 238, .7); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.foot__base { margin-top: 40px; }
.foot__toplink { font: 400 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 242, 238, .7); }

/* phone contact bar */
.dock { display: none; }

/* lightbox */
.lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #121a16; color: var(--paper); }
.lb::backdrop { background: rgba(18, 26, 22, .9); }
.lb[open] { display: grid; grid-template-rows: auto 1fr; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.lb__count { font: 400 12px var(--mono); letter-spacing: .12em; }
.lb__x { background: none; border: 1px solid rgba(243, 242, 238, .4); color: var(--paper); font: 500 14px var(--sans); padding: 10px 16px; border-radius: 2px; cursor: pointer; }
.lb__x:hover { background: rgba(243, 242, 238, .1); }
.lb__fig { display: grid; place-items: center; align-content: center; gap: 14px; padding: 0 76px 28px; min-height: 0; }
.lb__fig img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; }
.lb__fig figcaption { font-size: 14px; color: rgba(243, 242, 238, .78); text-align: center; max-width: 70ch; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 2px; border: 1px solid rgba(243, 242, 238, .35); background: rgba(18, 26, 22, .6); color: var(--paper); font: 400 20px var(--mono); cursor: pointer; }
.lb__nav:hover { background: rgba(243, 242, 238, .12); }
.lb__nav--prev { left: 14px; } .lb__nav--next { right: 14px; }

/* ---------------- in-between widths ---------------- */
@media (max-width: 1320px) {
  .tb { grid-template-columns: 5fr 3fr 3.8fr; }
  .nav__links { gap: 24px; }
}

/* ---------------- phones and small tablets ---------------- */
@media (max-width: 999px) {
  .walk { grid-template-columns: 1fr; gap: 0; }
  .walk__plan { position: static; margin-bottom: 56px; }
  .floors { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .floor { width: min(330px, 84vw); }
  .plan__fine { max-width: 46ch; margin-inline: auto; text-align: center; }
  .js .floor--lower.is-moved { margin: 0 auto 48px; }
  .key { display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 30; margin: 0 -20px 36px; padding: 8px 20px; background: rgba(251, 251, 249, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); border-top: 1px solid var(--rule); transition: top .34s var(--ease); }
  .nav-up .key { top: var(--navH); }
  .key__plans { display: flex; gap: 6px; flex: none; }
  .key__plans svg { height: 70px; width: auto; display: block; }
  .key .lbl, .key .pins, .key .door, .key .fx, .key .win, .key .fp, .key .chase { display: none; }
  .key .wall { stroke-width: 16; }
  .key .wall--ext { stroke-width: 22; }
  .key .rm.on { fill: var(--barn); }
  .key .rm--out { stroke-width: 10; stroke-dasharray: none; stroke: transparent; }
  .key .rm--out.on { fill: var(--amber); stroke: var(--amber); }
  .key__txt { min-width: 0; }
  .key__n { font: 400 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .key__t { margin-top: 6px; font: 500 16px/1.2 var(--sans); color: var(--ink); text-wrap: balance; }
  .key__f { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
}

@media (max-width: 899px) {
  :root { --navH: 56px; --heroIn: 14px; }
  body { font-size: 16.5px; padding-bottom: 62px; }
  .wrap { width: calc(100% - 40px); }
  .nav { grid-template-columns: 1fr auto; padding: 0 14px 0 16px; gap: 12px; }
  .nav__links, .nav__tel { display: none; }
  .nav__mark { font-size: 14px; gap: 10px; }

  .hero { padding-top: calc(var(--navH) + 10px); }
  .hero__pair { grid-template-columns: 62fr 38fr; gap: 6px; height: min(300px, 38vh); height: min(300px, 38svh); }
  .tag { left: 8px; bottom: 8px; padding: 5px 8px 5px 5px; font-size: 10px; gap: 7px; }
  .tag b { width: 17px; height: 17px; }
  .tag__more { display: none; }
  .tb { grid-template-columns: 1fr; border-top: 0; margin-top: 4px; }
  .tb__head { padding: 14px 2px 16px; border-bottom: 1px solid var(--rule-2); }
  .tb__eyebrow { font-size: 10.5px; letter-spacing: .12em; }
  .tb__eyebrow span:nth-child(2) { display: none; }
  .tb__eyebrow span + span::before { margin: 0 10px; }
  .tb__mls { font-size: 10.5px; letter-spacing: .1em; }
  .tb__title { margin-top: 12px; font-size: 12vw; line-height: 1; }
  .tb__cell { padding: 14px 2px 0; border-left: 0; }
  .tb__cell + .tb__cell::before { display: none; }
  .tb__cell--lede { order: 3; padding-top: 22px; padding-bottom: 6px; }
  .tb__cell--lede .cell__k { display: none; }
  .tb__cell--price { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px; }
  .tb__cell--price .cell__k { display: none; }
  .tb__price { font-size: 40px; }
  .tb__addr { margin: 0; font-size: 13.5px; }
  .tb__cell--act { gap: 12px; padding-top: 16px; }
  .tb__cell--act .btn { width: 100%; }
  .hero__lede { font-size: 16px; line-height: 1.5; }

  .sec { padding: 72px 0; }
  .h2 { font-size: clamp(36px, 10vw, 46px); margin-top: 18px; }
  .body--lg { font-size: 17.5px; }
  .house, .walk__head, .resort__head, .photos__head, .facts { grid-template-columns: 1fr; gap: 28px; }
  .quote { margin-top: 28px; padding-left: 18px; }
  .quote p { font-size: 26px; }
  .nums dd { font-size: 38px; }
  .ph--house { aspect-ratio: 4 / 3; margin-top: 40px; }
  .ph--house img { object-position: 40% 40%; }
  .walk__head { margin-bottom: 44px; }
  .stop { padding-bottom: 80px; }
  .stop__t { font-size: 32px; }
  .stop__p { font-size: 16.5px; }
  .ph--lead { margin-top: 22px; aspect-ratio: 4 / 3; }
  .ph--sub { width: 72%; }
  .ph figcaption { font-size: 10px; }
  .gable { width: 170px; }
  .resort__lead { grid-template-columns: 1fr; }
  .quote--sm { padding-top: 18px; }
  .amen { grid-template-columns: 1fr 1fr; gap: 10px; }
  .facts__list { grid-template-columns: 1fr 1fr; }
  .facts__list dd { font-size: 16.5px; }
  .facts__lead .btn { width: 100%; }
  .agent { grid-template-columns: 1fr; gap: 28px; }
  .agent__ph { width: min(240px, 62vw); min-height: 0; aspect-ratio: 479 / 600; }
  .agent__lines { grid-template-columns: 1fr; }
  .agent__lines div, .agent__lines div + div { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .agent__act .btn { flex: 1 1 100%; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .thumb__tag { left: 4px; bottom: 4px; font-size: 8.5px; padding: 3px 4px; }
  .foot { padding: 48px 20px 28px; }
  .foot__cols { grid-template-columns: 1fr; gap: 26px; }
  .lb__fig { padding: 0 12px 24px; }
  .lb__nav { top: auto; bottom: 18px; transform: none; }

  .dock { display: grid; grid-template-columns: 1.5fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--rule-2); }
  .dock__b { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: 500 15px/1 var(--sans); color: var(--ink); }
  .dock__b + .dock__b { border-left: 1px solid var(--rule); }
  .dock__b svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
  .dock__b--main { background: var(--barn); color: var(--paper); }
  .dock__b--main svg { fill: currentColor; stroke: none; }
  .dock__b:active { filter: brightness(.94); }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .tb__price { font-size: 36px; }
  .facts__list { grid-template-columns: 1fr; }
  .facts__list div:nth-child(even):not(.wide) { padding-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .gable path { stroke-dashoffset: 0; }
}

.plan .lbl .dim--sm { font-size: 15px; }
@media (max-width: 899px) {
  .facts__list .wide-m { grid-column: 1 / -1; padding-left: 0 !important; padding-right: 0 !important; border-left: 0 !important; }
}
.tb__cell--lede { padding-left: 0; border-left: 0; }
@media (max-width: 899px) {
  .tb__head { grid-template-columns: 1fr; }
  .tb__mls { display: none; }
}
@media (max-width: 899px) and (max-height: 720px) {
  .hero__pair { height: 31vh; height: 31svh; }
}
@media (max-width: 899px) {
  .foot__line span { display: block; }
  .foot__line span + span { margin-top: 6px; }
  .foot__line span + span::before { content: none; }
}
