/* ==========================================================================
   631 Silva Ln
   Palette taken from the property photographs: hemlock treeline, cut hay,
   limewashed brick, warm paper.
   ========================================================================== */

:root {
  --ridge:    #1b332c;
  --ridge-2:  #234238;
  --ridge-3:  #2f5648;
  --hay:      #b0801f;
  --hay-lt:   #d9a94a;
  --limewash: #e7e4dd;
  --paper:    #fbfaf7;
  --paper-2:  #f4f2ec;
  --ink:      #14211e;
  --slate:    #55635e;
  --slate-lt: #8a948f;
  --line:     #d8d5cc;

  --display: "Petrona", Georgia, serif;
  --body:    "Archivo", system-ui, -apple-system, sans-serif;
  --mono:    "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut: clamp(1.25rem, 4vw, 4rem);
  --max: 78rem;
  --r:   3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--hay-lt); color: var(--ridge); }

:focus-visible {
  outline: 2px solid var(--hay);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ridge); color: var(--paper);
  padding: .75rem 1.25rem; text-decoration: none;
}
.skip:focus { left: 0; }

/* ── Shared type ───────────────────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 1rem;
  font: 500 .688rem/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hay);
}
.eyebrow--on-dark { color: var(--hay-lt); }
/* Hero flag: county, availability, then the two asking prices, each step
   louder than the last but all of it under the headline. */
.hero__meta {
  margin: 0 0 .5rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .55rem;
  font-family: var(--mono);
  text-transform: uppercase;
}
.hero__county {
  font-size: .75rem;
  letter-spacing: .16em;
  color: rgba(240,205,131,.72);
}
.hero__county::after {
  content: "·";
  margin-left: .55rem;
  color: rgba(240,205,131,.45);
}
.hero__status {
  font-size: clamp(.938rem, 1.5vw, 1.125rem);
  font-weight: 500;
  letter-spacing: .13em;
  color: #f5d99b;
}

.hero__prices {
  margin: 0 0 1.85rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .1rem .6rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #fff;
}
.hero__price { white-space: nowrap; }
.hero__per {
  font-size: .5em;
  font-weight: 400;
  letter-spacing: .05em;
  color: rgba(255,255,255,.72);
}
.hero__or {
  font-size: .42em;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(240,205,131,.75);
}

.h2 {
  margin: 0 0 1.25rem;
  font: 600 clamp(1.75rem, 3.4vw, 2.9rem)/1.12 var(--display);
  letter-spacing: -.02em;
  max-width: 18ch;
}
.h2--on-dark { color: var(--paper); }

.prose p {
  margin: 0 0 1.1rem;
  color: var(--slate);
  max-width: 46ch;
  font-size: 1.031rem;
}
.prose p:last-child { margin-bottom: 0; }

.mono { font-family: var(--mono); font-size: .875em; }
.dim  { color: var(--slate-lt); }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: 500 .875rem/1 var(--body);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn--lg { padding: .95rem 1.9rem; font-size: .938rem; }

.btn--gold { background: var(--hay); color: #fff; }
.btn--gold:hover { background: #966c17; }

.btn--ghost {
  border-color: rgba(251,250,247,.32);
  color: var(--paper);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--paper); background: rgba(251,250,247,.08); }

.btn--line {
  border-color: var(--line); color: var(--ink); background: transparent;
  margin-top: 1.75rem;
}
.btn--line:hover { border-color: var(--ridge); background: var(--paper-2); }

.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn[disabled]:hover { transform: none; }

/* ── Top bar ───────────────────────────────────────────────────────────── */

.bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,250,247,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar__in {
  max-width: var(--max); margin: 0 auto;
  padding: .7rem var(--gut);
  display: flex; align-items: center; gap: 1.5rem;
}
.bar__id { text-decoration: none; display: flex; align-items: baseline; gap: .55rem; }
.bar__num { font: 600 1rem/1 var(--display); letter-spacing: -.01em; }
.bar__place { font: 400 .688rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate-lt); }

.bar__nav { margin-left: auto; display: flex; gap: 1.5rem; }
.bar__nav a {
  font: 500 .813rem/1 var(--body); color: var(--slate); text-decoration: none;
  padding: .35rem 0; border-bottom: 1px solid transparent;
}
.bar__nav a:hover { color: var(--ink); border-color: var(--hay); }

.bar__end { display: flex; align-items: center; gap: 1.1rem; }
.bar__price { font: 500 .938rem/1 var(--mono); color: var(--ridge); white-space: nowrap; }
.bar__rent {
  margin-left: .5rem; padding-left: .5rem;
  border-left: 1px solid var(--line);
  font-size: .813rem; font-weight: 400;
  color: var(--slate);
}

@media (max-width: 860px) {
  .bar__nav, .bar__price { display: none; }
  .bar__end { margin-left: auto; }
}
@media (max-width: 520px) {
  .bar__in { gap: .75rem; }
  .bar__place { display: none; }
  .bar__end .btn { padding: .6rem 1rem; font-size: .813rem; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero { position: relative; background: var(--ridge); isolation: isolate; }

.hero__img { position: absolute; inset: 0; z-index: -2; overflow: hidden; }

/* Frames stack; only the active one is opaque. The slow scale is what keeps a
   cross-fade from reading as a slideshow widget. */
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero__slide.is-on { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 58%;
  transform: scale(1.06);
  transition: transform 9s linear;
}
.hero__slide.is-on img { transform: scale(1); }

/* One frame, no movement, for anyone who asked for less of it. */
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
  .hero__slide:not(.is-on) { display: none; }
  .hero__slide img { transform: none; transition: none; }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,28,23,.74) 0%, rgba(13,28,23,.34) 42%, rgba(13,28,23,.88) 100%),
    linear-gradient(90deg, rgba(13,28,23,.62) 0%, rgba(13,28,23,.12) 58%, transparent 100%);
}

.hero__body {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(6rem, 20vh, 12rem) var(--gut) clamp(3rem, 8vh, 5rem);
}

.hero__h {
  margin: 0 0 1.25rem;
  font: 600 clamp(2.25rem, 7.2vw, 5.4rem)/.98 var(--display);
  letter-spacing: -.035em;
  color: #fff;
  max-width: 20ch;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero__sub {
  margin: 0 0 2.25rem;
  max-width: 44ch;
  font-size: 1.063rem;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
}

/* Buydown flag. Sits between the story and the buttons, where the eye is
   already heading for the call to action. */
.deal {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.75rem;
  padding: .7rem 1.25rem .7rem .95rem;
  border: 1px solid rgba(217,169,74,.55);
  border-radius: 100px;
  background: rgba(176,128,31,.22);
  backdrop-filter: blur(2px);
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.deal:hover { background: rgba(176,128,31,.36); border-color: var(--hay-lt); }

.deal__num {
  font: 500 clamp(1.6rem, 3vw, 2.1rem)/1 var(--mono);
  letter-spacing: -.02em;
  color: #f5d99b;
}
.deal__txt { display: grid; gap: .15rem; }
.deal__txt strong {
  font: 600 clamp(.938rem, 1.5vw, 1.063rem)/1.1 var(--body);
  color: #fff;
}
.deal__txt em {
  font: 400 .75rem/1.2 var(--body);
  font-style: normal;
  color: rgba(255,255,255,.7);
}
.deal__txt em::after { content: " →"; color: #f5d99b; }

@media (max-width: 420px) {
  .deal { gap: .7rem; padding: .6rem 1rem .6rem .85rem; }
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Signature: the survey rule */
.rule {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut) clamp(2rem, 5vh, 3.25rem);
}
.rule__ticks {
  height: 11px;
  border-top: 1px solid rgba(255,255,255,.38);
  background-image: repeating-linear-gradient(
    to right,
    rgba(255,255,255,.34) 0 1px,
    transparent 1px 14px
  );
  background-size: 100% 6px;
  background-repeat: no-repeat;
}
.rule__stats {
  margin: 0; padding-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.rule__stats dt {
  font: 400 .625rem/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: .45rem;
}
.rule__stats dd {
  margin: 0;
  font: 600 clamp(1.15rem, 2.4vw, 1.6rem)/1 var(--display);
  color: #fff;
}
.rule__stats dd span {
  font: 400 .688rem/1 var(--mono);
  color: rgba(255,255,255,.6);
  margin-left: .15rem;
}

@media (max-width: 700px) {
  .rule__stats { grid-template-columns: repeat(3, 1fr); gap: 1.25rem .75rem; }
}

/* ── Section frames ────────────────────────────────────────────────────── */

.sec { padding: clamp(4rem, 9vw, 7.5rem) var(--gut); }
.sec--wide { padding-left: var(--gut); padding-right: var(--gut); }

.sec__head { max-width: var(--max); margin: 0 auto clamp(2rem, 4vw, 3rem); }

.sec--split {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .sec--split { grid-template-columns: 1fr; }
}

/* ── Spec / comps panels ───────────────────────────────────────────────── */

.spec__h {
  margin: 0 0 1.25rem;
  font: 500 .688rem/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--slate-lt);
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--line);
}

.spec__list { margin: 0; }
.spec__list > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: .62rem 0;
  border-bottom: 1px solid rgba(216,213,204,.55);
}
.spec__list dt { color: var(--slate); font-size: .875rem; flex: none; }
.spec__list dd { margin: 0; text-align: right; font-size: .938rem; font-weight: 500; }

.spec__h--gap { margin-top: 2.5rem; }

/* Zip-level market strip above the comparables */
.mkt {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.mkt dt {
  font: 400 .625rem/1.3 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate-lt);
  margin-bottom: .45rem;
}
.mkt dd {
  margin: 0;
  font: 600 clamp(1.35rem, 2.6vw, 1.75rem)/1 var(--display);
  color: var(--ridge);
}
.mkt dd span {
  display: block;
  margin-top: .4rem;
  font: 400 .75rem/1.4 var(--body);
  color: var(--slate);
}
@media (max-width: 420px) { .mkt { grid-template-columns: 1fr 1fr; } }

.src {
  margin: .9rem 0 0;
  font: 400 .688rem/1.5 var(--mono);
  color: var(--slate-lt);
}

.comps__t { width: 100%; border-collapse: collapse; font-size: .875rem; }
.comps__t th, .comps__t td { padding: .7rem .4rem; text-align: left; }
.comps__t th:first-child, .comps__t td:first-child { padding-left: 0; }
.comps__t th:last-child,  .comps__t td:last-child  { padding-right: 0; }
.comps__t thead th {
  font: 500 .625rem/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase; color: var(--slate-lt);
  border-bottom: 1px solid var(--line);
  padding-bottom: .6rem;
}
.comps__t tbody th {
  font-weight: 500;
  border-bottom: 1px solid rgba(216,213,204,.55);
}
.comps__t tbody td { border-bottom: 1px solid rgba(216,213,204,.55); color: var(--slate); }
.comps__t .num { text-align: right; white-space: nowrap; }
.comps__d { display: block; font: 400 .688rem/1.4 var(--mono); color: var(--slate-lt); margin-top: .2rem; }

/* The subject sits under the rule so the $/sq ft column has a baseline. */
.comps__subject th, .comps__subject td {
  border-top: 1px solid var(--ridge);
  padding-top: .85rem;
  color: var(--ink);
  font-weight: 600;
}
.comps__subject .comps__d { color: var(--hay); font-weight: 400; }

@media (max-width: 620px) {
  .comps__t .col-sf { display: none; }
}
@media (max-width: 470px) {
  .comps__t .col-sold { display: none; }
}

/* ── Gallery ───────────────────────────────────────────────────────────── */

#photos { border-top: 1px solid var(--line); }
#photos .sec__head, #photos .chips, #photos .grid { max-width: var(--max); margin-inline: auto; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.75rem; }
.chip {
  appearance: none; cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .45rem .95rem;
  font: 500 .813rem/1 var(--body);
  color: var(--slate);
  transition: all .16s ease;
}
.chip:hover { border-color: var(--ridge-3); color: var(--ink); }
.chip.is-on { background: var(--ridge); border-color: var(--ridge); color: var(--paper); }
.chip__n { font: 400 .688rem/1 var(--mono); opacity: .55; margin-left: .3rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.1rem 1rem;
}
.tile { margin: 0; }
.tile[hidden] { display: none; }
.tile--over { display: none; }

.more {
  max-width: var(--max);
  margin: 2rem auto 0;
  text-align: center;
}
.more[hidden] { display: none; }
.more .btn--line { margin-top: 0; }
.tile__btn {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--paper-2);
  border-radius: var(--r);
  overflow: hidden;
}
.tile__btn img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1), filter .3s ease;
}
.tile__btn:hover img { transform: scale(1.035); }
.tile figcaption {
  margin-top: .55rem;
  font-size: .813rem;
  line-height: 1.45;
  color: var(--slate);
}

/* ── Floor plans ───────────────────────────────────────────────────────── */

.sec--dark { background: var(--ridge); color: var(--paper); }
.sec--dark .sec__head, .plan { max-width: var(--max); margin-inline: auto; }

.plan__tabs { display: flex; gap: .4rem; margin-bottom: 1.75rem; }
.ptab {
  appearance: none; cursor: pointer;
  background: transparent;
  border: 1px solid rgba(251,250,247,.22);
  border-radius: var(--r);
  padding: .55rem 1.1rem;
  font: 500 .813rem/1 var(--body);
  color: rgba(251,250,247,.72);
  transition: all .16s ease;
}
.ptab:hover { border-color: rgba(251,250,247,.5); color: #fff; }
.ptab.is-on { background: var(--hay); border-color: var(--hay); color: #fff; }

.plan__panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.plan__panel[hidden] { display: none; }
@media (max-width: 900px) { .plan__panel { grid-template-columns: 1fr; } }

.plan__art {
  position: relative;
  display: block;
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: var(--r);
  padding: clamp(1rem, 3vw, 2rem);
  cursor: zoom-in;
}
.plan__zoom {
  position: absolute; right: .85rem; bottom: .85rem;
  padding: .35rem .7rem;
  border-radius: 100px;
  background: var(--ridge);
  color: var(--paper);
  font: 400 .688rem/1 var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
  opacity: .82;
  transition: opacity .16s ease;
}
.plan__art:hover .plan__zoom { opacity: 1; }
.plan__note {
  margin: 0 0 1.5rem;
  color: rgba(251,250,247,.7);
  font-size: .938rem;
  max-width: 34ch;
}

.rooms { margin: 0; }
.rooms > div {
  display: flex; align-items: baseline; gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(251,250,247,.13);
}
.rooms dt { color: rgba(251,250,247,.88); font-size: .875rem; }
/* the leader dots make the schedule read like a plan legend */
.rooms dt::after {
  content: "";
  display: inline-block;
  width: 0;
}
.rooms > div::before {
  content: "";
  order: 2;
  flex: 1 1 auto;
  height: 1px;
  align-self: center;
  background-image: radial-gradient(circle, rgba(251,250,247,.32) .5px, transparent .6px);
  background-size: 5px 1px;
  background-repeat: repeat-x;
}
.rooms dd {
  order: 3; margin: 0;
  font: 400 .813rem/1 var(--mono);
  color: var(--hay-lt);
  white-space: nowrap;
}

/* ── Schools ───────────────────────────────────────────────────────────── */

.sec--schools { background: var(--paper-2); border-top: 1px solid var(--line); }
.schools { max-width: var(--max); margin: 0 auto; }

.schools__head { margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.schools__head .h2 { max-width: 24ch; }
.schools__lede {
  margin: 0;
  max-width: 52ch;
  color: var(--slate);
  font-size: 1.031rem;
}

.schools__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 940px) { .schools__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .schools__grid { grid-template-columns: 1fr; } }

.school {
  display: flex; flex-direction: column;
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ridge);
  border-radius: var(--r);
}
.school--private { border-top-color: var(--hay); }

.school__tag {
  margin: 0 0 .9rem;
  font: 500 .625rem/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ridge-3);
}
.school--private .school__tag { color: var(--hay); }

.school__name {
  margin: 0 0 .35rem;
  font: 600 1.25rem/1.2 var(--display);
  letter-spacing: -.01em;
}
.school__grades {
  margin: 0 0 .9rem;
  font: 500 .875rem/1 var(--mono);
  color: var(--ridge);
}
.school__addr {
  margin: 0 0 .5rem;
  font-size: .813rem;
  color: var(--slate);
}
.school__note {
  margin: auto 0 0;
  padding-top: .75rem;
  border-top: 1px solid rgba(216,213,204,.7);
  font-size: .781rem;
  line-height: 1.5;
  color: var(--slate-lt);
}

.spec__link { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
.spec__link:hover { text-decoration-color: var(--hay); }

/* ── Rate buydown ──────────────────────────────────────────────────────── */

.sec--rate { background: var(--ridge); color: var(--paper); }
.rate {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 980px) { .rate { grid-template-columns: 1fr; } }

.rate__pitch .h2 { color: var(--paper); max-width: 16ch; }
.rate__pitch .prose p { color: rgba(251,250,247,.76); max-width: 44ch; }

.rate__kicker {
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251,250,247,.16);
  font: 600 clamp(1.25rem, 2.2vw, 1.6rem)/1.25 var(--display);
  color: var(--hay-lt);
  max-width: 24ch;
  text-wrap: balance;
}

/* calculator */
.calc {
  background: rgba(251,250,247,.05);
  border: 1px solid rgba(251,250,247,.14);
  border-radius: 6px;
  padding: clamp(1.35rem, 3.5vw, 2.25rem);
}
.calc__h {
  margin: 0 0 1.35rem;
  font: 500 .688rem/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(251,250,247,.5);
}
.calc__price {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 1.1rem; margin-bottom: 1.35rem;
  border-bottom: 1px solid rgba(251,250,247,.14);
}
.calc__price span { font-size: .875rem; color: rgba(251,250,247,.62); }
.calc__price strong { font: 500 1.125rem/1 var(--mono); color: var(--paper); }

.ctrl { margin-bottom: 1.35rem; }
.ctrl__top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin-bottom: .55rem;
}
.ctrl__top label { font-size: .875rem; color: rgba(251,250,247,.72); }
.ctrl__top output { font: 500 1rem/1 var(--mono); color: var(--hay-lt); }
.ctrl__hint {
  margin: .5rem 0 0;
  font: 400 .688rem/1.4 var(--mono);
  color: rgba(251,250,247,.38);
}
.ctrl input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px;
  background: rgba(251,250,247,.2);
  border-radius: 3px;
  accent-color: var(--hay);
  cursor: pointer;
}
.ctrl input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  background: var(--hay-lt);
  border: 2px solid var(--ridge);
  cursor: grab;
}
.ctrl input[type="range"]::-moz-range-thumb {
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  background: var(--hay-lt);
  border: 2px solid var(--ridge);
  cursor: grab;
}
.ctrl input[type="range"]:focus-visible { outline: 2px solid var(--hay-lt); outline-offset: 4px; }

/* The three bars are the same height — the note payment never changes.
   What shrinks is the gold cap the seller is covering. */
.ramp {
  list-style: none; margin: 1.75rem 0 0; padding: 1.5rem 0 0;
  border-top: 1px solid rgba(251,250,247,.14);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem;
}
.ramp__step { text-align: center; }
.ramp__yr {
  margin: 0 0 .6rem;
  font: 400 .625rem/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(251,250,247,.5);
}
.ramp__bar {
  height: 132px;
  display: flex; flex-direction: column;
  border-radius: var(--r);
  overflow: hidden;
  background: rgba(10,20,17,.35);
}
.ramp__covered {
  display: block;
  background: var(--hay);
  transition: height .3s cubic-bezier(.2,.7,.3,1);
}
.ramp__paid {
  display: block; flex: none;
  background: var(--ridge-3);
  transition: height .3s cubic-bezier(.2,.7,.3,1);
}
.ramp__rate {
  margin: .7rem 0 .1rem;
  font: 600 clamp(1.05rem, 2vw, 1.3rem)/1 var(--display);
  color: var(--hay-lt);
}
.is-flat .ramp__rate { color: var(--paper); }
.ramp__pay {
  margin: 0 0 .25rem;
  font: 500 .875rem/1.2 var(--mono);
  color: var(--paper);
}
.ramp__save {
  margin: 0;
  font-size: .75rem;
  color: rgba(251,250,247,.55);
}
.is-flat .ramp__save { color: rgba(251,250,247,.38); }

.ramp__key {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin: 1rem 0 0;
  font: 400 .688rem/1 var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(251,250,247,.5);
}
.key { display: inline-flex; align-items: center; gap: .4rem; }
.key::before {
  content: ""; width: .65rem; height: .65rem; border-radius: 2px;
}
.key--covered::before { background: var(--hay); }
.key--paid::before    { background: var(--ridge-3); }

.calc__total {
  margin: 1.5rem 0 .4rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(251,250,247,.14);
  font-size: 1rem;
  color: rgba(251,250,247,.8);
}
.calc__total strong {
  font: 600 1.5rem/1 var(--display);
  color: var(--hay-lt);
  vertical-align: -.05em;
}
.calc__loan {
  margin: 0;
  font: 400 .75rem/1.5 var(--mono);
  color: rgba(251,250,247,.45);
}
.calc .src { color: rgba(251,250,247,.38); margin-top: 1.25rem; }

@media (max-width: 400px) {
  .ramp { gap: .5rem; }
  .ramp__bar { height: 84px; }
}

/* ── Booking ───────────────────────────────────────────────────────────── */

.sec--book {
  background:
    linear-gradient(180deg, var(--ridge-2) 0%, var(--ridge) 60%);
  color: var(--paper);
}
.book {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 980px) { .book { grid-template-columns: 1fr; } }

.book__intro { position: sticky; top: 5.5rem; }
@media (max-width: 980px) { .book__intro { position: static; } }

.book__lede {
  margin: 0 0 2rem;
  color: rgba(251,250,247,.75);
  max-width: 38ch;
}

.book__facts { list-style: none; margin: 0; padding: 0; }
.book__facts li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: .75rem;
  padding: .6rem 0;
  border-top: 1px solid rgba(251,250,247,.14);
  font-size: .875rem;
  color: rgba(251,250,247,.9);
}
.book__facts span {
  font: 400 .625rem/1.7 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(251,250,247,.45);
}
.book__facts em { font-style: normal; color: rgba(251,250,247,.5); }
.book__facts a { color: var(--hay-lt); text-decoration: none; }
.book__facts a:hover { text-decoration: underline; }

/* Text-to-book panel: the number, then what is actually open. */
.txt {
  background: rgba(251,250,247,.045);
  border: 1px solid rgba(251,250,247,.13);
  border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.txt__lbl {
  margin: 0 0 .6rem;
  font: 500 .688rem/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(251,250,247,.5);
}
.txt__lbl--gap {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251,250,247,.13);
}
.txt__num {
  display: inline-block;
  font: 500 clamp(2rem, 5vw, 3.1rem)/1 var(--mono);
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--hay);
  padding-bottom: .15rem;
  transition: color .16s ease, border-color .16s ease;
}
.txt__num:hover { color: var(--hay-lt); border-color: var(--hay-lt); }
.txt__only {
  margin: .85rem 0 0;
  font: 500 .75rem/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hay-lt);
}
.txt__say {
  margin: .9rem 0 0;
  max-width: 40ch;
  font-size: .938rem;
  color: rgba(251,250,247,.7);
}

.avail { list-style: none; margin: 0; padding: 0; }
.avail__day {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(251,250,247,.1);
}
.avail__day:last-child { border-bottom: 0; }
.avail__when { flex: 0 0 6.5rem; display: flex; align-items: baseline; gap: .5rem; }
.avail__dow {
  font: 500 .875rem/1 var(--body);
  color: var(--paper);
}
.avail__date {
  font: 400 .688rem/1 var(--mono);
  color: rgba(251,250,247,.45);
}
.avail__times { display: flex; flex-wrap: wrap; gap: .4rem; }
.avail__slot {
  padding: .3rem .65rem;
  border: 1px solid rgba(217,169,74,.4);
  border-radius: 100px;
  background: rgba(176,128,31,.16);
  font: 400 .813rem/1.3 var(--mono);
  color: #f5d99b;
  white-space: nowrap;
}
.avail__none {
  font-size: .813rem;
  color: rgba(251,250,247,.32);
}
.is-shut .avail__dow { color: rgba(251,250,247,.4); }

.txt__fine {
  margin: 1.5rem 0 0;
  font: 400 .75rem/1.6 var(--body);
  max-width: 46ch;
  color: rgba(251,250,247,.45);
}

@media (max-width: 520px) {
  .avail__day { flex-direction: column; gap: .45rem; }
  .avail__when { flex: none; }
}

/* Calendly embed. Sits on a light card so the widget reads as part of the
   page whether or not the plan allows recolouring it. */
.cly {
  background: var(--paper);
  border-radius: 6px;
  padding: clamp(.5rem, 1.5vw, 1rem);
  overflow: hidden;
}
.cly__widget { min-width: 320px; height: 720px; }
@media (max-width: 780px) { .cly__widget { height: 1000px; } }

.cly__fallback, .cly__setup {
  margin: 0; padding: 1.5rem;
  font-size: .938rem; line-height: 1.6; color: var(--slate);
}
.cly__setup strong { display: block; margin-bottom: .35rem; color: var(--ink); }
.cly__setup code {
  font: 400 .875em var(--mono);
  background: var(--paper-2); padding: .1rem .35rem; border-radius: 2px;
}
.cly__fallback a { color: var(--hay); }

/* form shell */
.book__form, .done {
  background: rgba(251,250,247,.045);
  border: 1px solid rgba(251,250,247,.13);
  border-radius: 6px;
  padding: clamp(1.35rem, 3.5vw, 2.5rem);
}
.book__form[hidden], .done[hidden] { display: none; }

/* Fieldsets default to min-inline-size:min-content, which would let the day
   strip push the page wider than the viewport instead of scrolling itself. */
.step { border: 0; margin: 0 0 2.15rem; padding: 0; min-inline-size: 0; }
.step--last { margin-bottom: 0; }
.step legend {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem; padding: 0;
  font: 500 .813rem/1 var(--body);
  letter-spacing: .01em;
  color: var(--paper);
}
.step__n {
  display: grid; place-items: center;
  width: 1.35rem; height: 1.35rem;
  border: 1px solid rgba(251,250,247,.3);
  border-radius: 50%;
  font: 400 .688rem/1 var(--mono);
  color: var(--hay-lt);
}
.step__tz, .step__opt {
  margin-left: auto;
  font: 400 .625rem/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(251,250,247,.42);
  font-style: normal;
}

/* Day strip and time grid share step 1, so they need air between them. */
.step .days + .slots { margin-top: 1.1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* day strip */
.days {
  display: flex; gap: .4rem;
  overflow-x: auto;
  padding-bottom: .65rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(251,250,247,.25) transparent;
}
.days::-webkit-scrollbar { height: 5px; }
.days::-webkit-scrollbar-thumb { background: rgba(251,250,247,.22); border-radius: 3px; }

.day {
  flex: 0 0 auto; scroll-snap-align: start;
  width: 3.9rem;
  display: grid; gap: .18rem;
  padding: .6rem .35rem .55rem;
  background: transparent;
  border: 1px solid rgba(251,250,247,.16);
  border-radius: var(--r);
  cursor: pointer;
  text-align: center;
  transition: all .16s ease;
}
.day:hover:not(:disabled) { border-color: rgba(251,250,247,.45); }
.day__dow {
  font: 400 .625rem/1 var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(251,250,247,.5);
}
.day__num { font: 600 1.25rem/1 var(--display); color: var(--paper); }
.day__mon {
  font: 400 .625rem/1 var(--mono);
  text-transform: uppercase; color: rgba(251,250,247,.4);
}
.day.is-on { background: var(--hay); border-color: var(--hay); }
.day.is-on .day__dow, .day.is-on .day__num, .day.is-on .day__mon { color: #fff; }
.day:disabled { opacity: .28; cursor: not-allowed; }

/* time slots */
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.9rem, 1fr));
  gap: .4rem;
  min-height: 3rem;
}
.slots__gap {
  grid-column: 1 / -1;
  height: 1px;
  margin: .35rem 0;
  background: rgba(251,250,247,.14);
}
.slots__empty, .slots__none {
  grid-column: 1 / -1; margin: 0;
  font-size: .875rem; color: rgba(251,250,247,.5);
  padding: .5rem 0;
}
.slot {
  padding: .6rem .3rem;
  background: transparent;
  border: 1px solid rgba(251,250,247,.16);
  border-radius: var(--r);
  color: var(--paper);
  font: 400 .813rem/1 var(--mono);
  cursor: pointer;
  transition: all .14s ease;
}
.slot:hover:not(:disabled) { border-color: rgba(251,250,247,.45); }
.slot.is-on { background: var(--hay); border-color: var(--hay); color: #fff; }
.slot:disabled {
  opacity: .3; cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(251,250,247,.45);
}

/* fields */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field { margin: 0; display: grid; gap: .35rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font: 400 .75rem/1.3 var(--body);
  color: rgba(251,250,247,.68);
}
.opt {
  font: 400 .625rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(251,250,247,.35); margin-left: .35rem;
}

.field input, .field textarea {
  width: 100%;
  padding: .65rem .75rem;
  background: rgba(10,20,17,.35);
  border: 1px solid rgba(251,250,247,.18);
  border-radius: var(--r);
  color: var(--paper);
  font: 400 .938rem/1.4 var(--body);
  transition: border-color .16s ease, background .16s ease;
}
.field textarea { resize: vertical; min-height: 4.5rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(251,250,247,.3); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--hay-lt);
  background: rgba(10,20,17,.5);
}
.field input[aria-invalid="true"] { border-color: #e0836b; }

.err {
  font: 400 .75rem/1.3 var(--body);
  color: #eda58f;
  min-height: 0;
}
.err:empty { display: none; }

.hp { position: absolute; left: -9999px; }

.submit {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251,250,247,.13);
}
.summary {
  margin: 0; flex: 1 1 14rem;
  font-size: .875rem;
  color: rgba(251,250,247,.62);
}
.summary strong { color: var(--hay-lt); font-weight: 500; }

.alert {
  flex-basis: 100%; margin: 0;
  font-size: .875rem;
  padding: .7rem .9rem;
  border-radius: var(--r);
  background: rgba(224,131,107,.13);
  border: 1px solid rgba(224,131,107,.4);
  color: #f0b3a1;
}
.alert[hidden] { display: none; }

/* confirmation */
.done { text-align: left; }
.done__mark {
  margin: 0 0 1.1rem;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--hay);
  color: #fff;
  font-size: 1.15rem;
}
.done__h { margin: 0 0 .5rem; font: 600 1.75rem/1.15 var(--display); color: var(--paper); }
.done__when { margin: 0 0 .35rem; font-size: 1.063rem; color: var(--hay-lt); }
.done__ref { margin: 0 0 1.25rem; font: 400 .875rem/1 var(--mono); color: rgba(251,250,247,.6); }
.done__ref strong { color: var(--paper); font-weight: 500; letter-spacing: .05em; }
.done__body { margin: 0 0 1.75rem; max-width: 44ch; font-size: .938rem; color: rgba(251,250,247,.7); }
.done__acts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }

/* ── Footer ────────────────────────────────────────────────────────────── */

.foot { background: var(--ink); color: rgba(251,250,247,.72); padding: clamp(3rem, 6vw, 4.5rem) var(--gut); }
.foot__in {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .8fr 1.3fr;
  gap: 2.5rem;
}
@media (max-width: 820px) { .foot__in { grid-template-columns: 1fr; gap: 2rem; } }
.foot p { margin: 0 0 .3rem; font-size: .875rem; }
.foot a { color: var(--hay-lt); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__addr { font: 600 1.25rem/1.2 var(--display); color: var(--paper); margin-bottom: .4rem !important; }
.foot__sub { color: rgba(251,250,247,.55); }
.foot__apn { color: rgba(251,250,247,.4); margin-top: .6rem !important; }
.foot__hint {
  font: 400 .625rem/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(251,250,247,.4);
  margin-left: .4rem;
}
.foot__lbl {
  font: 400 .625rem/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(251,250,247,.4); margin-bottom: .6rem !important;
}
.foot__fine p { font-size: .781rem; line-height: 1.6; color: rgba(251,250,247,.45); max-width: 48ch; }

/* ── Lightbox ──────────────────────────────────────────────────────────── */

.lb {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(11,20,17,.96);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .5rem;
  padding: clamp(.75rem, 3vw, 2.5rem);
}
.lb[hidden] { display: none; }

.lb__fig { margin: 0; display: grid; gap: .9rem; justify-items: center; min-width: 0; }
.lb__fig img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  object-fit: contain;
  border-radius: var(--r);
}
.lb__fig figcaption {
  display: flex; align-items: baseline; gap: 1rem;
  font-size: .875rem; color: rgba(251,250,247,.75);
  text-align: center;
}
.lb__count { font: 400 .75rem/1 var(--mono); color: rgba(251,250,247,.4); white-space: nowrap; }

.lb__nav, .lb__x {
  background: transparent; border: 1px solid rgba(251,250,247,.22);
  color: var(--paper); cursor: pointer; border-radius: 50%;
  display: grid; place-items: center;
  transition: all .16s ease;
}
.lb__nav { width: 2.75rem; height: 2.75rem; font-size: 1.6rem; line-height: 1; padding-bottom: .15rem; }
.lb__nav:hover, .lb__x:hover { border-color: var(--paper); background: rgba(251,250,247,.1); }
.lb__x {
  position: absolute; top: clamp(.75rem, 3vw, 2rem); right: clamp(.75rem, 3vw, 2rem);
  width: 2.35rem; height: 2.35rem; font-size: .875rem;
}

@media (max-width: 640px) {
  .lb { grid-template-columns: 1fr; }
  .lb__nav { position: absolute; bottom: 1rem; }
  .lb__nav--prev { left: 25%; }
  .lb__nav--next { right: 25%; }
  .lb__fig figcaption { flex-direction: column; gap: .3rem; padding-bottom: 3.5rem; }
}

body.lb-open { overflow: hidden; }

/* ── Motion ────────────────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
