/* Fargo Remodel public site. Brand: navy and steel from the logo, Poppins, light ground. */
:root {
  --ink: #1a2a36;
  --steel: #4b7389;
  --paper: #f5f5f3;
  --white: #ffffff;
  --line: #d5d9db;
  --mute: #5b6770;
  --head: 84px;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 17px/1.7 Poppins, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-weight: 600; font-size: clamp(40px, 6.4vw, 96px); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-weight: 600; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-weight: 600; font-size: 21px; line-height: 1.3; }
.text { white-space: pre-line; max-width: 62ch; }
.lead { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.38; font-weight: 400; letter-spacing: -0.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.band { padding-top: clamp(64px, 9vw, 136px); padding-bottom: clamp(64px, 9vw, 136px); }
.band-white { background: var(--white); }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }

/* buttons and links */
.btn { display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: var(--white); font: 500 15px/1 Poppins, sans-serif; padding: 16px 26px; border-radius: 4px; text-decoration: none; cursor: pointer; }
.btn:hover { background: #24394a; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--paper); }
.more { font-weight: 500; color: var(--steel); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more:hover { color: var(--ink); }

/* header */
.head { position: sticky; top: 0; z-index: 40; background: rgba(245, 245, 243, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.head.is-down { border-bottom-color: var(--line); }
.head-in { height: var(--head); display: flex; align-items: center; justify-content: space-between; }
.head-logo img { height: 52px; width: auto; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); align-items: center; }
.nav a { font-weight: 500; font-size: 15px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.is-on { border-bottom-color: var(--ink); }
.nav-btn { display: none; background: none; border: 0; font: 500 15px Poppins, sans-serif; color: var(--ink); padding: 10px 0; cursor: pointer; }

/* hero: full-bleed photo that settles into a drafted frame as you scroll */
.hero { --p: 0; position: relative; height: 175vh; }
.hero-pin { position: sticky; top: var(--head); height: calc(100vh - var(--head)); overflow: hidden; }
.hero-frame { position: absolute; inset: 0; clip-path: inset(calc(var(--p) * 7vh) calc(var(--p) * 9vw) calc(var(--p) * 19vh) calc(var(--p) * 9vw)); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.1 - var(--p) * 0.1)); }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 24, 32, 0.62), rgba(14, 24, 32, 0) 55%); }
.hero h1 { position: absolute; z-index: 2; color: var(--white); left: calc(var(--pad) + var(--p) * 9vw); bottom: calc(clamp(28px, 6vh, 64px) + var(--p) * 19vh); max-width: 12ch; }
.hero-rule { position: absolute; background: var(--steel); opacity: clamp(0, calc(var(--p) * 5 - 4), 1); z-index: 1; }
.hero-rule.ht, .hero-rule.hb { left: 0; right: 0; height: 1px; }
.hero-rule.hl, .hero-rule.hr { top: 0; bottom: 0; width: 1px; }
.hero-rule.ht { top: 7vh; } .hero-rule.hb { bottom: 19vh; } .hero-rule.hl { left: 9vw; } .hero-rule.hr { right: 9vw; }
.hero-note { position: absolute; left: 9vw; right: 9vw; bottom: 0; height: 19vh; display: flex; align-items: center; justify-content: space-between; gap: 24px; opacity: clamp(0, calc(var(--p) * 4 - 3), 1); }
.hero-note { padding: 0 24px; }
.hero-note p { max-width: 46ch; font-size: 17px; }

/* intro */
.intro { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 104px); align-items: center; }
.intro-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 78% 50%; }
.intro-mark { width: 76px; margin-bottom: 28px; }
.intro .lead { margin-bottom: 26px; max-width: 24ch; }

/* collection rail */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.rail-head p { margin-top: 12px; max-width: 44ch; }
.rail-ctl { display: flex; gap: 8px; }
.rail-ctl button { width: 48px; height: 48px; border: 1px solid var(--ink); background: transparent; border-radius: 4px; cursor: pointer; color: var(--ink); }
.rail-ctl button:hover { background: var(--ink); color: var(--white); }
.rail-ctl svg { width: 16px; height: 16px; vertical-align: middle; }
.rail { display: flex; gap: clamp(16px, 2.2vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))) 4px; scroll-padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); }
.rail::-webkit-scrollbar { display: none; }
.rail .card { flex: 0 0 min(80vw, 560px); scroll-snap-align: start; }
.rail-foot { margin-top: 36px; }

.card { display: block; text-decoration: none; }
.card-img { position: relative; overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .card-img img { transform: scale(1.035); }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.card-name { font-weight: 600; font-size: clamp(21px, 2vw, 27px); line-height: 1.2; letter-spacing: -0.01em; }
.card-sub { color: var(--mute); font-size: 15px; margin-top: 2px; }
.status { display: inline-block; font-weight: 500; font-size: 13px; line-height: 1; padding: 7px 10px; border: 1px solid var(--ink); border-radius: 3px; white-space: nowrap; }
.status.s-forsale { background: var(--ink); color: var(--white); }
.status.s-sold { border-color: var(--line); color: var(--mute); }
.status.s-contract { border-color: var(--steel); color: var(--steel); }
.card-img .status { position: absolute; left: 14px; top: 14px; background: var(--white); border-color: var(--white); color: var(--ink); }
.card-img .status.s-forsale { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); }
.values > div { padding: 6px clamp(18px, 2.4vw, 40px); border-left: 1px solid var(--steel); }
.values h3 { color: var(--steel); margin-bottom: 12px; }
.values p { font-size: 16px; }

/* reviews */
.reviews h2 { margin-bottom: clamp(32px, 5vw, 64px); }
.review { display: grid; grid-template-columns: 1fr 3fr; gap: clamp(20px, 4vw, 64px); padding: clamp(24px, 3vw, 44px) 0; border-top: 1px solid var(--line); }
.review blockquote { margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.45; font-weight: 300; max-width: 34ch; }
.review-who { font-weight: 500; font-size: 16px; }
.review-who span { display: block; font-weight: 300; color: var(--mute); font-size: 15px; }

/* signup */
.signup { text-align: center; }
.signup p { margin: 14px auto 30px; max-width: 46ch; }
.signup form { display: flex; gap: 10px; max-width: 720px; margin: 0 auto; }
.signup input { flex: 1; min-width: 0; }
.done-note { font-weight: 500; font-size: 18px; padding: 16px 0; }

/* forms */
input, select, textarea { font: 300 16px/1.4 Poppins, sans-serif; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 14px 15px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--steel); outline-offset: 0; border-color: var(--steel); }
textarea { min-height: 120px; resize: vertical; }
.f { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.f-row { grid-column: 1 / -1; }
.f-row.half { grid-column: auto; }
.f label, .f legend { display: block; font-weight: 500; font-size: 14px; margin-bottom: 7px; padding: 0; }
.f fieldset { border: 0; padding: 0; margin: 0; }
.f-err { color: #a3261c; font-size: 14px; font-weight: 400; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { margin: 0; font-weight: 400; font-size: 15px; border: 1px solid var(--line); background: var(--white); border-radius: 4px; padding: 11px 15px; cursor: pointer; }
.opts input { position: absolute; opacity: 0; width: 0; height: 0; }
.opts label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--white); }
.opts label:has(input:focus-visible) { outline: 2px solid var(--steel); outline-offset: 2px; }
.f-files { font-size: 15px; color: var(--mute); margin-top: 8px; }

/* page tops */
.top { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(28px, 4vw, 56px); }
.top p.lead { margin-top: 22px; max-width: 30ch; color: var(--mute); }
.back { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--steel); display: inline-block; margin-bottom: 26px; }
.back:hover { color: var(--ink); }

/* homes page */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.filters button { font: 500 14px/1 Poppins, sans-serif; padding: 11px 15px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; }
.filters button.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px) clamp(20px, 3vw, 44px); }
.empty { padding: 60px 0; color: var(--mute); }

/* house page */
.house-top { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.house-tags { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; color: var(--mute); font-size: 15px; }
.house-price { font-weight: 600; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.01em; }
.house-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-top: clamp(28px, 4vw, 48px); }
.facts div { padding: 20px 0; }
.facts dt { font-size: 14px; color: var(--mute); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 24px; }
.house-body { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 104px); }
.house-body ul { margin: 16px 0 0; padding: 0; list-style: none; }
.house-body li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
.house-body h3 { margin-bottom: 4px; }

/* gallery that moves sideways as you scroll down */
.hgal { position: relative; }
.hgal-pin { position: sticky; top: var(--head); height: calc(100vh - var(--head)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hgal-track { display: flex; gap: clamp(14px, 2vw, 28px); padding: 0 var(--pad); will-change: transform; }
.hgal-track figure { margin: 0; flex: 0 0 auto; }
.hgal-track img { height: min(64vh, 620px); width: auto; max-width: 86vw; object-fit: cover; background: var(--line); }
.hgal-track figcaption { font-size: 14px; color: var(--mute); margin-top: 10px; }
.hgal.is-flat { height: auto !important; }
.hgal.is-flat .hgal-pin { position: static; height: auto; overflow-x: auto; padding: clamp(40px, 6vw, 80px) 0; }
.hgal.is-flat .hgal-track { transform: none !important; }

/* before and after */
.ba { position: relative; overflow: hidden; --pos: 50%; background: var(--line); user-select: none; }
.ba img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ba .ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba .ba-before img { height: 100%; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.ba-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 10px rgba(14, 24, 32, 0.28); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: ew-resize; border: 0; touch-action: pan-y; }
.ba-tag { position: absolute; bottom: 14px; font-size: 13px; font-weight: 500; background: var(--white); padding: 6px 10px; border-radius: 3px; pointer-events: none; }
.ba-tag.is-before { left: 14px; } .ba-tag.is-after { right: 14px; }
.ba-list { display: grid; gap: clamp(28px, 4vw, 56px); }
.ba-list h3 { margin-bottom: 14px; }
.ba-home .ba img { aspect-ratio: 16 / 9; }
.ba-home .rail-head { margin-bottom: 28px; }
.ba-note { margin-top: 16px; color: var(--mute); }
.ba-note a { color: var(--ink); }
@media (max-width: 700px) { .ba-home .ba img { aspect-ratio: 4 / 3; } .ba-home .rail-ctl { display: flex; } }

/* call to action band */
.cta { background: var(--ink); color: var(--white); }
.cta-in { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 104px); align-items: start; }
.cta p { margin-top: 16px; max-width: 40ch; color: #c9d3da; }
.cta .f label, .cta .f legend { color: var(--white); }
.cta input, .cta select, .cta textarea { border-color: transparent; }
.cta .opts label { color: var(--ink); }
.cta .opts label:has(input:checked) { background: var(--steel); border-color: var(--steel); color: var(--white); }
.cta .f-err { color: #ffc9c2; }

/* about, sell */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 104px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split.wide img { aspect-ratio: 3 / 2; }
.split h2 { margin-bottom: 22px; }
.split .btn { margin-top: 28px; }
.crit { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(32px, 4vw, 56px); }
.crit > div { padding: 6px clamp(18px, 2.4vw, 40px); border-left: 1px solid var(--steel); }
.crit h3 { margin-bottom: 10px; }
.crit p { font-size: 16px; }

/* contact */
.paths { display: grid; border-top: 1px solid var(--ink); }
.paths button { display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 26px 4px; cursor: pointer; color: var(--ink); font: 600 clamp(20px, 2.2vw, 28px)/1.25 Poppins, sans-serif; letter-spacing: -0.01em; }
.paths button span { font: 300 15px/1.4 Poppins, sans-serif; color: var(--mute); letter-spacing: 0; text-align: right; max-width: 34ch; }
.paths button:hover { color: var(--steel); }
.contact-form { max-width: 760px; }
.contact-form h2 { margin-bottom: 28px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot img { height: 44px; }
.foot nav { display: flex; gap: 28px; flex-wrap: wrap; }
.foot a { text-decoration: none; font-weight: 400; }
.foot a:hover { text-decoration: underline; }
.foot-low { margin-top: 44px; color: var(--mute); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }

/* owner editing on the page */
.editbar { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 6px; box-shadow: 0 6px 24px rgba(14, 24, 32, 0.16); }
.editbar button, .editbar a { font: 500 14px/1 Poppins, sans-serif; padding: 11px 14px; border-radius: 4px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.editbar button:hover, .editbar a:hover { background: var(--paper); }
.editbar .is-on { background: var(--ink); color: var(--white); }
.editbar .is-on:hover { background: var(--ink); }
.is-editing [data-edit] { outline: 1px dashed var(--steel); outline-offset: 5px; cursor: text; min-width: 40px; min-height: 1em; }
.is-editing [data-edit]:focus { outline: 2px solid var(--steel); background: rgba(75, 115, 137, 0.08); }
.is-editing [data-edit-img] { cursor: pointer; outline: 2px dashed var(--steel); outline-offset: -8px; }
.is-editing .hero { height: auto; }
.is-editing .hero-pin { position: relative; top: 0; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  :root { --head: 68px; }
  .head-logo img { height: 36px; }
  .nav-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--head); background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--pad) 20px; }
  .nav.is-open { display: flex; }
  .nav a { font-size: 18px; padding: 12px 0; width: 100%; }
  .hero { height: 150vh; }
  .hero-frame { clip-path: inset(calc(var(--p) * 3vh) calc(var(--p) * 5vw) calc(var(--p) * 26vh) calc(var(--p) * 5vw)); }
  .hero h1 { left: calc(var(--pad) + var(--p) * 5vw); bottom: calc(28px + var(--p) * 26vh); }
  .hero-rule.ht { top: 3vh; } .hero-rule.hb { bottom: 26vh; } .hero-rule.hl { left: 5vw; } .hero-rule.hr { right: 5vw; }
  .hero-note { left: 5vw; right: 5vw; height: 26vh; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; }
  .intro, .split, .cta-in, .house-body, .review { grid-template-columns: 1fr; }
  .intro-img img, .split img { aspect-ratio: 4 / 3; }
  .values, .crit { grid-template-columns: 1fr; gap: 28px; }
  .grid { grid-template-columns: 1fr; }
  .signup form { flex-direction: column; }
  .f { grid-template-columns: 1fr; }
  .house-top { grid-template-columns: 1fr; }
  .paths button { flex-direction: column; align-items: flex-start; gap: 6px; }
  .paths button span { text-align: left; }
  .rail-ctl { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-pin { position: relative; top: 0; }
  .card-img img { transition: none; }
}
@media print { .head, .foot, .editbar { display: none !important; } }
