/* Whitfield Homes. Golden hour: white space, brass hardware, a refined serif. */
:root {
  --white: #ffffff;
  --charcoal: #2a2a2a;
  --brass: #b48e57;
  --brass-ink: #7a5c30;
  --sage: #a9b5a0;
  --sage-wash: #eef1eb;
  --sage-ink: #46523f;
  --muted: #4f4a45;
  --line: #e6e1d8;
  --dusk: #15223f;
  --serif: 'Faustina', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Segoe UI', sans-serif;
  --pad: clamp(16px, 5vw, 72px);
  --head: 80px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
p, li { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, a, label { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--charcoal); color: #fff; padding: 12px 18px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* Buttons: flat fills, square corners, no glow */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 1.5px solid var(--charcoal); border-radius: 0;
  font: 600 17px/1.2 var(--sans); letter-spacing: 0.01em; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-dark { background: var(--charcoal); color: #fff; box-shadow: inset 0 0 0 4px var(--charcoal), inset 0 0 0 5px rgba(180, 142, 87, 0.7); }
.btn-dark:hover { background: var(--brass-ink); border-color: var(--brass-ink); box-shadow: inset 0 0 0 4px var(--brass-ink), inset 0 0 0 5px rgba(255, 244, 222, 0.55); }
.btn-line { background: #fff; color: var(--charcoal); }
.btn-line:hover { background: var(--charcoal); color: #fff; }
.btn:disabled { background: #f1efeb; color: var(--muted); border-color: #d9d4cb; cursor: not-allowed; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  height: var(--head); padding: 0 var(--pad);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; margin-right: auto; }
/* Logo: an open doorway with golden-hour light falling onto the floor, and the Whitfield Homes wordmark whose W
   crosses its inner strokes with the doorway's frame gap. Every size is in em, so one font-size scales the lockup. */
.lg { display: inline-flex; align-items: center; gap: .3em; color: #2A2A2A; --lg-desc: #7A5C30; }
.lg-on-dark { color: #FFFFFF; --lg-frame: #FFFFFF; --lg-desc: #B48E57; }
.lg-icon { width: 1.27em; height: 1.6em; flex: none; display: block; }
.lg-type { display: grid; justify-items: start; gap: .12em; }
.lg-desc { display: block; font: 500 max(15px, .5em)/1 'Hanken Grotesk', 'Segoe UI', sans-serif; letter-spacing: .08em; color: var(--lg-desc); }
.lg-word { display: block; font: 500 1em/1 'Faustina', Georgia, serif; letter-spacing: -.004em; white-space: nowrap; }
.lg-W { display: inline-block; width: .836em; height: 1em; margin-left: -.02em; vertical-align: -.2em; overflow: visible; }
.lg-stack { display: inline-grid; justify-items: start; gap: .12em; }
.lg-stack .lg-icon { margin-bottom: .14em; }
.lg-stack .lg-icon { width: 1.59em; height: 2em; }
.brand .lg { font-size: 30px; }
.nav { display: flex; gap: 6px; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; text-decoration: none; font-weight: 500; font-size: 17px; background-image: linear-gradient(var(--brass), var(--brass)); background-size: 0 1.5px; background-position: 12px 34px; background-repeat: no-repeat; transition: background-size .25s ease; }
.nav a:hover { background-size: calc(100% - 24px) 1.5px; }
.tel { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-right: -10px; text-decoration: none; font-weight: 600; font-size: 17px; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.tel svg { color: var(--brass-ink); }
.tel-icon, .burger { display: none; }
.tel-icon { flex: none; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--charcoal); border: 1px solid var(--line); }
.tel-icon svg { color: var(--brass-ink); }
.burger { flex: none; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; padding: 0; position: relative; }
.burger span { position: absolute; left: 13px; width: 20px; height: 2px; background: var(--charcoal); transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22.5px; }
.burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; z-index: 29; left: 0; right: 0; top: var(--head);
  max-height: calc(100vh - var(--head)); overflow-y: auto;
  background: #fff;
  padding: 8px var(--pad) 30px;
  box-shadow: 0 0 0 100vmax rgba(21, 34, 63, 0.62);
}
.menu nav { display: grid; }
.menu nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); text-decoration: none; font: 500 24px/1.1 var(--serif); }
.menu nav a:first-child { color: var(--brass-ink); }
.menu-cta { width: 100%; margin-top: 16px; }
.menu-call { width: 100%; margin-top: 10px; }
.menu-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 17px; color: var(--muted); }

/* Hero */
.hero { position: relative; }
.hero-title .l { display: block; }
.hero-title {
  padding: 26px var(--pad) 18px;
  font-size: clamp(36px, 7.4vw, 64px); line-height: 0.98; letter-spacing: -0.02em;
  max-width: 12em;
}
.hero-photo { position: relative; }
.hero-frame { position: relative; height: clamp(230px, 52vw, 520px); background: var(--dusk); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(0.92) contrast(1.04); }
.dusk { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 34, 63, 0.35) 0%, rgba(21, 34, 63, 0) 32%); }
.glow { position: absolute; inset: 0; background: radial-gradient(38% 34% at 60% 52%, rgba(255, 196, 110, 0.18), rgba(255, 196, 110, 0) 70%); mix-blend-mode: screen; }

.in-photo {
  position: absolute; right: var(--pad); bottom: 34px; z-index: 2;
  display: flex; align-items: baseline; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; text-align: right;
  background: var(--dusk); color: #fff; border: 0;
  padding: 10px 16px; min-height: 44px; max-width: calc(100% - 2 * var(--pad));
  transition: background-color .2s ease;
}
.in-photo:hover { background: #0e1830; }
.in-photo:hover .in-photo-addr { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.in-photo-tag { font: 600 15px/1.2 var(--sans); color: #e2c48f; }
.in-photo-addr { font: 500 17px/1.25 var(--sans); }
.in-photo-meta { font: 500 19px/1.2 var(--serif); font-variant-numeric: lining-nums; color: #fff; }

/* The slab: search and New This Week, overlapping the photo */
.slab {
  position: relative; z-index: 3;
  margin: -34px var(--pad) 0;
  background: #fff;
  padding: 26px 22px 22px;
  overflow: hidden;
}
.slab::before { content: ''; position: absolute; inset: 9px; border: 1px solid var(--brass); pointer-events: none; z-index: 2; }
/* Window light: a soft shade over the wall with a six-pane window of late sun cut out of it. */
.sunlight {
  position: absolute; z-index: 0; pointer-events: none; overflow: visible;
  right: 2%; top: 50%; width: 600px; height: auto; aspect-ratio: 700 / 460; transform: translateY(-50%);
  mix-blend-mode: multiply; --o: 0.74; opacity: var(--o);
}
.search, .fresh { position: relative; z-index: 1; }
.sentence { font: 500 21px/1.55 var(--serif); letter-spacing: -0.005em; }
.sentence .g { white-space: nowrap; }
.pick { position: relative; display: inline-flex; align-items: center; vertical-align: baseline; }
.pick select {
  appearance: none; -webkit-appearance: none;
  font: 500 1em/1.2 var(--serif); color: var(--brass-ink);
  background: transparent; border: 0; border-bottom: 2px solid var(--brass); border-radius: 0;
  padding: 0 32px 0 6px; min-height: 44px; max-width: 100%;
  font-variant-numeric: lining-nums;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.pick select:hover { background: rgba(180, 142, 87, 0.12); border-bottom-color: var(--charcoal); color: var(--charcoal); }
.pick select:focus-visible { outline-offset: 2px; }
.pick svg { position: absolute; right: 7px; top: 50%; margin-top: -9px; width: 18px; height: 18px; color: var(--brass-ink); pointer-events: none; }
.search-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.go { min-width: 168px; }
.go-note { font-size: 17px; color: var(--muted); }
.go-note a { font-weight: 600; color: var(--charcoal); text-decoration-color: var(--brass); text-underline-offset: 4px; }

.fresh { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.fresh-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fresh-title { font-size: 24px; line-height: 1.1; }
.fresh-nav { display: flex; gap: 8px; }
.fresh-btn { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--charcoal); background: #fff; color: var(--charcoal); }
.fresh-btn:hover { background: var(--charcoal); color: #fff; }
.fresh-list { list-style: none; margin: 0 -22px; padding: 0 22px 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 22px; scrollbar-width: none; }
.fresh-list::-webkit-scrollbar { display: none; }
.fresh-card {
  scroll-snap-align: start;
  display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: start;
  width: 100%; padding: 0; border: 0; background: transparent; text-align: left;
}
.fresh-card img { width: 104px; height: 96px; object-fit: cover; filter: saturate(0.92) contrast(1.04); }
.fresh-card:hover .fc-addr { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.fc-when { display: block; font: 600 15px/1.2 var(--sans); color: var(--sage-ink); }
.fc-price { display: block; font: 500 24px/1.15 var(--serif); font-variant-numeric: lining-nums; margin-top: 3px; }
.fc-addr { display: block; font: 500 16px/1.3 var(--sans); }
.fc-specs { display: block; font: 400 15px/1.35 var(--sans); color: var(--muted); font-variant-numeric: lining-nums; }
.fc-specs span { display: block; }

/* Homes for Sale */
.homes { padding: clamp(64px, 9vw, 128px) var(--pad) clamp(56px, 8vw, 112px); }
.homes-head { display: grid; gap: 14px 32px; align-items: end; margin-bottom: 36px; }
.homes-head h2 { font-size: clamp(40px, 6vw, 72px); line-height: 1; }
.homes-head h2:focus { outline: none; }
.homes-sum { font-size: 19px; color: var(--muted); max-width: 34em; font-variant-numeric: lining-nums; }
.sort { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; }
.sort-box, .select { position: relative; display: inline-flex; align-items: center; }
.sort select, .select select {
  appearance: none; -webkit-appearance: none; min-height: 48px; padding: 0 40px 0 14px;
  border: 1px solid #cfc8bc; border-radius: 0; background: #fff; font-size: 17px; font-weight: 500;
}
.sort-box svg, .select svg { position: absolute; right: 14px; color: var(--brass-ink); pointer-events: none; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 40px 28px; }
.card { display: grid; align-content: start; scroll-margin-top: calc(var(--head) + 24px); }
.card-photo { position: relative; aspect-ratio: 4 / 3; background: var(--dusk); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.04); transition: transform .6s ease; }
.card:hover .card-photo img { transform: scale(1.025); }
.tag { position: absolute; left: 14px; top: 14px; padding: 7px 11px; font: 600 15px/1.1 var(--sans); background: var(--sage); color: var(--charcoal); }
.tag-open { background: #fff; color: var(--brass-ink); box-shadow: inset 0 0 0 1px var(--brass); }
.tag-cut { background: #fff; color: var(--charcoal); }
.tag-uc { background: var(--charcoal); color: #fff; }
.tag-soon { background: #fff; color: var(--brass-ink); box-shadow: inset 0 0 0 1px var(--brass); }
.soon-box {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px;
  background: #fff; overflow: hidden;
}
.soon-light { position: absolute; z-index: 0; width: 120%; height: auto; aspect-ratio: 700 / 460; left: -6%; top: -4%; overflow: visible; mix-blend-mode: multiply; opacity: 0.8; pointer-events: none; }
.soon-mark { position: relative; z-index: 1; color: var(--brass); }
.soon-box span { position: relative; z-index: 1; font: 500 24px/1.2 var(--serif); max-width: 12em; }
.card-body { padding-top: 18px; display: grid; gap: 4px; }
.price { font: 500 32px/1.1 var(--serif); font-variant-numeric: lining-nums; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price s { font: 400 17px/1 var(--sans); color: var(--muted); }
.addr { font: 600 19px/1.35 var(--sans); letter-spacing: 0; }
.town-name { font-size: 17px; color: var(--muted); }
.specs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; font-variant-numeric: lining-nums; }
.specs li { font-size: 17px; padding: 0 14px; border-left: 1px solid var(--brass); line-height: 1.2; }
.specs li:first-child { padding-left: 0; border-left: 0; }
.card-acts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.feat-when { font: 600 16px/1.3 var(--sans); color: var(--sage-ink); margin-bottom: 6px; font-size: 17px; }
.blurb { margin-top: 14px; font-size: 18px; max-width: 30em; }
.card .btn[aria-pressed="true"] { background: var(--sage-wash); border-color: var(--sage-ink); color: var(--sage-ink); }
.card.flash .card-photo { outline: 3px solid var(--brass); outline-offset: 6px; }

.notify-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; width: 100%; margin-top: 4px; }
.notify-form .field { margin: 0; flex: 1 1 200px; }
.saved { display: flex; align-items: flex-start; gap: 10px; font-size: 17px; color: var(--sage-ink); max-width: 26em; }
.saved svg { flex: none; margin-top: 2px; }
.empty { border-top: 1px solid var(--brass); padding-top: 28px; max-width: 46em; }
.empty-lead { font: 500 30px/1.2 var(--serif); margin-bottom: 8px; }
.empty-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Neighborhoods */
.towns { background: var(--sage-wash); padding: clamp(64px, 9vw, 120px) var(--pad); }
.towns-intro { max-width: 40em; margin-bottom: 36px; }
.towns-intro h2 { font-size: clamp(40px, 6vw, 72px); line-height: 1; margin-bottom: 16px; }
.towns-intro p { font-size: 19px; }
.towns-body { display: grid; gap: 40px; }
.town-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #cdd3c7; }
.town { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center; padding: 18px 0 20px; border-bottom: 1px solid #cdd3c7; }
.town h3 { font-size: clamp(34px, 5vw, 50px); line-height: 1.05; transition: color .2s ease; }
.town p { grid-column: 1; font-size: 17px; color: #3e4a39; max-width: 32em; }
.town-go { grid-column: 2; grid-row: 1 / span 2; min-height: 48px; padding: 0 18px; border: 1px solid var(--charcoal); background: transparent; font-weight: 600; font-size: 17px; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.town-go:hover, .town.on .town-go { background: var(--charcoal); color: #fff; }
.town.on h3 { color: var(--brass-ink); }
.town-view { display: none; margin: 0; }

/* Home Value */
.value { position: relative; display: grid; gap: 40px; padding: clamp(64px, 9vw, 128px) var(--pad); overflow: hidden; }
.sunlight-2 { right: 6%; top: 34%; width: 760px; opacity: 0.7; }
.value-photo, .value-form { position: relative; z-index: 1; }
.value-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 50%; }
.value-form h2 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; margin-bottom: 16px; }
.lede { font-size: 19px; margin-bottom: 26px; max-width: 34em; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label, .chips legend { font: 600 16px/1.3 var(--sans); }
.field input, .field textarea, .select select {
  width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid #cfc8bc; border-radius: 0; background: #fff; font-size: 18px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7a746c; }
.field input:hover, .field textarea:hover { border-color: var(--charcoal); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a1342a; box-shadow: inset 0 0 0 1px #a1342a; }
.err { color: #a1342a; font-size: 17px; }
.select { width: 100%; }
.row2, .row3 { display: grid; gap: 0 16px; }
.chips { border: 0; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { padding: 0; margin-bottom: 10px; width: 100%; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips label > span {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border: 1px solid #cfc8bc; background: #fff; font-weight: 500; font-size: 17px; font-variant-numeric: lining-nums;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chips label:hover > span { border-color: var(--charcoal); }
.chips input:checked + span { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 3px; }
.chips input:disabled + span { background: #f4f2ee; color: #6b665f; border-style: dashed; cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1px; }
.chips input:disabled { cursor: not-allowed; }
.done { display: grid; gap: 8px; justify-items: start; padding: 24px 0; border-top: 2px solid var(--brass); }
.done svg { color: var(--brass-ink); }
.done-title { font: 500 30px/1.1 var(--serif); }
.done:focus { outline: none; }

/* About Dana */
.dana { display: grid; gap: 40px; padding: clamp(64px, 9vw, 128px) var(--pad) clamp(72px, 10vw, 140px); }
.dana-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 72% 18%; filter: saturate(0.9) contrast(1.03); }
.dana-text h2 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; margin-bottom: 20px; }
.dana-text > p { font-size: 19px; margin-bottom: 16px; max-width: 34em; }
.dana-facts { color: var(--muted); }
.note { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.note h3 { font-size: 30px; margin-bottom: 16px; }
.note-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.call-line { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; text-decoration-color: var(--brass); text-underline-offset: 5px; }

/* Footer */
.foot { background: var(--charcoal); color: #f2efe9; padding: 56px var(--pad) 40px; display: grid; gap: 28px; }
.foot .lg { font-size: 30px; margin-bottom: 14px; }
.foot p { font-size: 17px; line-height: 1.55; }
.foot-head { font-weight: 600; color: #d9c29b; margin-bottom: 6px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration-color: var(--brass); text-underline-offset: 5px; }
.foot-demo { border-top: 1px solid #4a4743; padding-top: 22px; color: #e3ded5; }

/* Showing sheet */
.sheet {
  width: min(720px, 100%); max-height: 94vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 0;
  background: #fff; color: var(--charcoal); overflow: auto;
}
.sheet::backdrop { background: rgba(21, 34, 63, 0.55); }
.sheet-x-form { position: sticky; top: 0; z-index: 2; height: 0; }
.sheet-x { position: absolute; right: 10px; top: 10px; width: 48px; height: 48px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.sheet-home { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 20px 70px 18px 20px; border-bottom: 1px solid var(--line); }
.sheet-home img { width: 112px; height: 84px; object-fit: cover; }
.sheet-home h2 { font-size: 30px; line-height: 1.05; }
.sh-addr { font-size: 17px; }
.sh-price { font: 500 22px/1.2 var(--serif); font-variant-numeric: lining-nums; }
.sh-form, .sh-done { padding: 20px; }
.days label > span { flex-direction: column; gap: 0; min-width: 76px; line-height: 1.15; padding: 6px 12px; min-height: 58px; }
.days b { font-weight: 600; }
.times label > span .gold { color: inherit; }
.times .golden > span { border-color: var(--brass); background: #fbf4e8; }
.times .golden input:checked + span { background: var(--brass-ink); border-color: var(--brass-ink); }
.sunset { display: flex; align-items: center; gap: 10px; margin: -6px 0 20px; font-size: 17px; color: var(--brass-ink); }
.sh-go { width: 100%; }
.sh-go[aria-busy="true"] { background: var(--brass-ink); border-color: var(--brass-ink); }

@media (max-width: 899px) {
  .slab .sunlight { width: 300px; right: -70px; top: auto; bottom: 150px; transform: none; --o: 0.6; }
  .sunlight-2 { width: 420px; right: -120px; top: 40px; transform: none; }
}

/* Tablet */
@media (min-width: 640px) {
  .fresh-list { grid-auto-columns: minmax(260px, 46%); }
  .row2 { grid-template-columns: 1fr 1fr; }
  .row3 { grid-template-columns: 1.3fr 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .sheet { margin: auto; }
}
@media (min-width: 900px) {
  .fresh-nav { display: none; }
  .sentence { font-size: 28px; }
  .slab { padding: 34px 40px 30px; margin-top: -64px; }
  .fresh-list { margin: 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }
  .homes-head { grid-template-columns: 1fr auto; }
  .homes-head h2 { grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid .card.feature { grid-column: 1 / -1; grid-template-columns: 2fr 1fr; gap: 0 44px; align-items: center; padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .grid .card.feature .card-photo { aspect-ratio: 16 / 10; }
  .grid .card.feature .card-body { padding-top: 0; }
  .grid .card.feature .price { font-size: 46px; }
  .grid .card.feature .addr { font: 500 28px/1.2 var(--serif); }
  .towns-body { grid-template-columns: 1.25fr 1fr; align-items: start; gap: 56px; }
  .town-view { display: block; position: sticky; top: calc(var(--head) + 32px); }
  .town-view img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.92) contrast(1.04); }
  .town-view figcaption { margin-top: 12px; font-size: 17px; font-variant-numeric: lining-nums; }
  .town-view figcaption b { font-weight: 600; margin-right: 8px; }
  .value { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 64px; }
  .dana { grid-template-columns: 0.9fr 1.1fr; align-items: start; gap: 64px; }
  .dana-photo { position: sticky; top: calc(var(--head) + 32px); }
  .foot { grid-template-columns: 1.2fr 1fr 1fr; }
  .foot-demo { grid-column: 1 / -1; }
}
@media (max-width: 1179px) {
  .nav, .tel, .head-cta { display: none; }
  .tel-icon, .burger { display: inline-flex; }
  .top { gap: 10px; }
}
@media (min-width: 1180px) {
  .menu { display: none; }
}
@media (max-width: 359px) {
  .brand .lg { font-size: 19px !important; }
  .brand { gap: 8px; }
}
@media (max-width: 639px) {
  .sentence { font-size: 20px; }
  .pick select { padding-right: 28px; }
}
@media (max-width: 420px) {
  .top { gap: 8px; }
  .brand { gap: 10px; }
  .brand .lg { font-size: 21px; }
  .top { --head: 68px; height: 68px; }
  :root { --head: 68px; }
  .hero-frame { height: 226px; }
  .in-photo { padding: 9px 14px; flex-wrap: nowrap; }
  .in-photo-tag, .in-photo-town { display: none; }
  .in-photo-addr { font-size: 16px; }
  .in-photo-meta { font-size: 17px; }
}
@media (max-width: 899px) {
  .fresh-card { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .fresh-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}
/* Desktop: the headline moves onto the dusk sky */
@media (min-width: 1100px) {
  .hero-title {
    position: absolute; z-index: 2; left: 0; top: 0;
    padding: 44px var(--pad) 0; color: #fff;
    font-size: clamp(72px, 5.8vw, 98px); line-height: 0.95; max-width: none;
  }
  .hero-photo { height: clamp(540px, 40vw, 700px); overflow: hidden; }
  .hero-photo::before { content: ''; position: absolute; inset: 0; background: var(--dusk); }
  .hero-frame { position: absolute; inset: 0; height: auto; }
  .hero-img { object-position: 50% 22%; }
  .in-photo { bottom: 132px; right: 72px; }
  .slab { margin-top: -132px; padding: 38px 48px 30px; }
  .slab::before { inset: 12px; }
  .sentence { font-size: 32px; line-height: 1.5; max-width: 30em; }
  .search { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 40px; }
  .search-go { margin: 0; flex-direction: column; align-items: stretch; gap: 8px; }
  .go-note { font-size: 17px; }
  .fresh { margin-top: 22px; padding-top: 18px; }
  .fresh-head { margin-bottom: 14px; }
  .fresh-title { font-size: 26px; }
  .fresh-list { gap: 0 44px; }
  .fresh-list li { position: relative; }
  .fresh-list li + li::before { content: ''; position: absolute; left: -22px; top: 0; bottom: 0; width: 1px; background: rgba(122, 92, 48, 0.35); }
  .fresh-card { grid-template-columns: 140px 1fr; gap: 16px; }
  .fresh-card img { width: 140px; height: 106px; }
}
@media (min-width: 1440px) {
  .slab { margin-left: 72px; margin-right: 72px; }
}
@media (min-width: 1700px) {
  .homes, .towns, .value, .dana, .foot { padding-left: max(var(--pad), calc((100vw - 1640px) / 2)); padding-right: max(var(--pad), calc((100vw - 1640px) / 2)); }
}

/* One load moment: the late sun comes through the window and the lights come up. */
@media (prefers-reduced-motion: no-preference) {
  .slab .sunlight { animation: sun-in 2.2s cubic-bezier(.2, .7, .2, 1) both; }
  .slab::before { animation: frame-in 1.1s .35s cubic-bezier(.3, .7, .2, 1) both; }
  .glow { animation: lights-up 1.6s .6s ease-out both; }
  .hero-img { animation: dusk-settle 2.4s ease-out both; }
}
@keyframes sun-in { from { opacity: 0; translate: 70px -36px; } to { opacity: var(--o); translate: 0 0; } }
@keyframes frame-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lights-up { from { opacity: 0; } to { opacity: 1; } }
@keyframes dusk-settle { from { filter: saturate(0.75) contrast(1.04) brightness(0.86); } to { filter: saturate(0.92) contrast(1.04) brightness(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The lead result is the hero house, so it shows a second angle: the tower and the front door. */
.card.feature img[src*="hero"] { object-position: 64% 52%; transform: scale(1.7); transform-origin: 66% 50%; }
.card.feature:hover img[src*="hero"] { transform: scale(1.74); }

@media (max-width: 639px) {
  .sheet-home { grid-template-columns: 80px 1fr; gap: 14px; padding: 16px 70px 14px 16px; }
  .sheet-home img { width: 80px; height: 64px; }
  .sheet-home h2 { font-size: 26px; }
  .sh-addr { font-size: 17px; line-height: 1.35; }
  .sh-form, .sh-done { padding: 16px; }
}

/* Mid widths: three new listings stack photo over text so nothing wraps word by word. */
@media (min-width: 900px) and (max-width: 1279px) {
  .fresh-list { gap: 0 40px; }
  .fresh-list li + li::before { left: -20px; }
  .fresh-card { grid-template-columns: 1fr; gap: 10px; }
  .fresh-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}
