/* ==========================================================================
   Tucson Mid-Century — listing site
   Colours come from the place and the era: caliche plaster, burnt adobe,
   palo verde green, desert-marigold ochre and mid-century walnut.
   ========================================================================== */

@font-face {
  font-family: "Gloock";
  src: url("../fonts/gloock-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --plaster: #F3ECE0;   /* base */
  --sand: #E6D6BC;      /* secondary surface */
  --walnut: #2A1D15;    /* ink + dark action */
  --walnut-2: #3A2A1F;
  --palo: #5E6A2C;      /* palo verde green */
  --adobe: #A94F2E;     /* burnt adobe */
  --ochre: #D9A441;     /* desert marigold */
  --glow: #F2C46D;
  --muted: #6B5A4C;

  --display: "Gloock", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 26px;
  --top-h: 104px;       /* draft bar + nav, updated by JS */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--plaster);
  color: var(--walnut);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

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

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section[id] { scroll-margin-top: calc(var(--top-h) + 8px); }

.eyebrow {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--adobe);
  margin-bottom: 18px;
}
.on-dark .eyebrow { color: var(--glow); }
.eyebrow .dot { margin: 0 .4em; }

.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 34em; }

/* ---------- Placeholders (draft only) ---------- */
.ph {
  background: rgba(217, 164, 65, 0.28);
  box-shadow: inset 0 -2px 0 var(--adobe);
  border-radius: 4px;
  padding: 0 0.22em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.on-dark .ph { background: rgba(242, 196, 109, 0.2); box-shadow: inset 0 -2px 0 var(--glow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--dark { background: var(--walnut); color: var(--plaster); }
.btn--dark:hover { background: var(--adobe); }
.btn--line { border-color: currentColor; background: transparent; color: var(--walnut); }
.btn--line:hover { background: var(--walnut); color: var(--plaster); }
.btn:active { transform: translateY(1px); }

/* ---------- Top bar: draft note + floating nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 0;            /* nav floats over the page, doesn't push it */
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.draftbar {
  display: flex; align-items: center; justify-content: center;
  gap: 2px; flex-wrap: wrap;
  min-height: 34px; padding: 6px var(--gutter);
  background: #EADDC4; color: var(--walnut);
  font-size: 13px; line-height: 1.3; text-align: center;
  border-bottom: 1px solid rgba(42, 29, 21, .12);
}
.draftbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--adobe); margin-right: 8px; }
.draftbar[hidden] { display: none; }

.nav {
  display: flex; align-items: center; gap: 24px;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin: 12px auto 0;
  padding: 8px 8px 8px 16px;
  background: rgba(243, 236, 224, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(42, 29, 21, .1);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(42, 29, 21, .45);
  transition: transform .35s ease, opacity .35s ease;
}
.nav.is-hidden { transform: translateY(-140%); opacity: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--walnut); flex: none; }
.brand__name { font-family: var(--display); font-size: 20px; white-space: nowrap; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 10px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 550; text-decoration: none;
}
.nav__links a:hover { background: rgba(42, 29, 21, .07); }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--top-h) + clamp(20px, 3vw, 44px));
  overflow: clip;
}
.hero__sun {
  position: absolute; z-index: 0;
  width: clamp(260px, 30vw, 460px); aspect-ratio: 1;
  right: clamp(-60px, 7vw, 150px); top: calc(var(--top-h) + clamp(40px, 5.5vw, 84px));
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #F7D688 0%, var(--ochre) 55%, #CF7C3E 100%);
  opacity: .9;
  transform: translateY(var(--sun-y, 0px));
}
.hero__text { position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(48px, 7.8vw, 128px);
  line-height: .93;
  letter-spacing: -0.025em;
  max-width: 10.5em;
  padding-bottom: clamp(20px, 2.6vw, 36px);
}

.hero__stage { position: relative; z-index: 2; }
.hero__stage::before {
  /* the dark section starts behind the photo, so hero and body overlap instead of cutting */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: var(--walnut); z-index: -1;
}
.slot--hero {
  margin: 0;
  aspect-ratio: 1600 / 580;
  max-height: 72vh;
  width: 100%;
  border-radius: 0;
  clip-path: inset(0 var(--inset, var(--gutter)) round var(--round, var(--radius)));
}
.slot--hero .slot__stand { padding: 0; }
.slot--hero .scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform: scale(var(--zoom, 1)); transform-origin: 50% 70%; }

.hero__meta {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 44px;
  max-width: none; padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  background: var(--walnut);
  color: var(--plaster);
}
.hero__facts { display: flex; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; margin: 0; }
.hero__facts dt { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: var(--glow); margin-bottom: 6px; }
.hero__facts dd { margin: 0; font-size: 17px; }
.hero__facts .hero__price { font-family: var(--display); font-size: clamp(30px, 3vw, 40px); line-height: 1; }
.hero__meta .ph { background: rgba(242, 196, 109, 0.2); box-shadow: inset 0 -2px 0 var(--glow); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__actions .btn--dark { background: var(--ochre); color: var(--walnut); }
.hero__actions .btn--dark:hover { background: var(--glow); }
.hero__actions .btn--line { color: var(--plaster); }
.hero__actions .btn--line:hover { background: var(--plaster); color: var(--walnut); }

/* ---------- Photo slots (designed stand-ins until real photos arrive) ---------- */
.slot {
  --slot: var(--sand);
  --slot-ink: var(--walnut);
  position: relative; margin: 0; overflow: hidden;
  border-radius: 18px;
  background: var(--slot);
  isolation: isolate;
}
.slot__stand { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 22px; }
.slot:not(.slot--hero) .slot__stand::before {
  /* breeze-block screen, the classic mid-century lattice */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--slot-ink); opacity: .17;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23000' stroke-width='4'%3E%3Ccircle cx='44' cy='44' r='31'/%3E%3Ccircle cx='0' cy='0' r='31'/%3E%3Ccircle cx='88' cy='0' r='31'/%3E%3Ccircle cx='0' cy='88' r='31'/%3E%3Ccircle cx='88' cy='88' r='31'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 88px 88px repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23000' stroke-width='4'%3E%3Ccircle cx='44' cy='44' r='31'/%3E%3Ccircle cx='0' cy='0' r='31'/%3E%3Ccircle cx='88' cy='0' r='31'/%3E%3Ccircle cx='0' cy='88' r='31'/%3E%3Ccircle cx='88' cy='88' r='31'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 88px 88px repeat;
}
.slot:not(.slot--hero) .slot__stand::after {
  /* soft light across the block wall */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 85% 10%, rgba(255, 240, 210, .35), transparent 60%);
}
.slot__room {
  font-family: var(--display); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.05;
  color: var(--slot-ink);
  padding-bottom: 34px;
}
.slot__label {
  position: absolute; left: 12px; bottom: 12px; right: 12px; z-index: 2;
  width: max-content; max-width: calc(100% - 24px);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(243, 236, 224, .82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--walnut); font-size: 12px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slot__label b { font-weight: 700; margin-right: .35em; color: var(--adobe); }
.slot__label code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.slot--hero .slot__label { left: calc(var(--gutter) + 16px); bottom: 16px; }
.slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot--hero > img { transform: scale(var(--zoom, 1)); transform-origin: 50% 70%; }
.slot.has-photo .slot__stand, .slot.has-photo .slot__label { display: none; }
.slot__open {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
  background: transparent; border: 0; cursor: zoom-in; border-radius: inherit;
}
.slot__open:focus-visible { outline-offset: -4px; }

/* ---------- 2. At a glance ---------- */
.on-dark { color: var(--plaster); }
.glance {
  background: var(--walnut);
  padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 9vw, 130px);
  border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
  position: relative; z-index: 1;
}
.glance__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 56px; align-items: end; }
.glance__intro .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.glance h2 { font-size: clamp(36px, 4.6vw, 68px); line-height: 1; }
.glance .lead { color: #E3D6C3; }

.stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin: clamp(48px, 6vw, 80px) 0 0;
  border-top: 1px solid rgba(243, 236, 224, .22);
}
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px;
  padding: 26px 20px 0 0;
}
.stat + .stat { border-left: 1px solid rgba(243, 236, 224, .22); padding-left: 24px; }
.stat dd { margin: 0; font-family: var(--display); font-size: clamp(38px, 4.4vw, 68px); line-height: 1; }
.stat dd .ph { font-size: .62em; vertical-align: .12em; }
.stat dt { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: #CDBBA3; }

/* ---------- 3. Why we love it (stacking cards) ---------- */
.loves { padding: clamp(80px, 10vw, 150px) 0 clamp(36px, 4vw, 64px); margin-top: calc(-1 * clamp(28px, 4vw, 56px)); padding-top: calc(clamp(80px, 10vw, 150px) + clamp(28px, 4vw, 56px)); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(38px, 5.2vw, 78px); line-height: 1; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.card {
  position: sticky; top: calc(var(--top-h) + 12px + var(--i, 0) * 22px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 64px);
  align-items: center;
  min-height: min(560px, 72vh);
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: var(--radius);
  box-shadow: 0 -12px 40px -24px rgba(42, 29, 21, .45);
}
.card:nth-child(1) { --i: 0; }
.card:nth-child(2) { --i: 1; }
.card:nth-child(3) { --i: 2; }
.card--sand { background: var(--sand); }
.card--palo { background: var(--palo); }
.card--adobe { background: var(--adobe); }
.card__num { display: block; font-family: var(--display); font-size: 20px; opacity: .75; margin-bottom: clamp(20px, 5vw, 72px); }
.card h3 { font-size: clamp(32px, 3.6vw, 54px); line-height: 1.02; margin-bottom: 18px; }
.card p { font-size: 18px; max-width: 26em; }
.card .slot { aspect-ratio: 4 / 3; border-radius: 16px; }

/* ---------- 4. Photos ---------- */
.photos { padding: clamp(28px, 3vw, 48px) 0 clamp(72px, 9vw, 120px); }
.photos__hint { font-size: 15px; color: var(--muted); }
.gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(170px, 19vw, 280px);
  grid-template-areas:
    "living living kitchen primary"
    "living living bed2 bed3"
    "yard yard yard bath";
}
.g-living { grid-area: living; } .g-kitchen { grid-area: kitchen; } .g-primary { grid-area: primary; }
.g-bed2 { grid-area: bed2; } .g-bed3 { grid-area: bed3; } .g-yard { grid-area: yard; } .g-bath { grid-area: bath; }
.gallery .slot { transition: transform .4s ease; }
.gallery .slot.has-photo:hover { transform: translateY(-3px); }

/* ---------- 5. Neighborhood ---------- */
.area {
  position: relative;
  background: var(--sand);
  padding: clamp(72px, 9vw, 130px) 0 calc(clamp(72px, 9vw, 120px) + 90px);
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
}
.area__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.area h2 { font-size: clamp(38px, 5.2vw, 78px); line-height: 1; margin-bottom: 24px; }
.clock {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 36px; padding: 16px 20px; border-radius: 16px;
  background: rgba(243, 236, 224, .7); border: 1px solid rgba(42, 29, 21, .1);
  max-width: 30em;
}
.clock__time { font-family: var(--display); font-size: 24px; line-height: 1.1; }
.clock__note { font-size: 14px; color: var(--muted); }

.list-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: var(--adobe); margin-bottom: 8px; }
.nearby { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--walnut); }
.nearby li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid rgba(42, 29, 21, .2);
  font-size: 19px;
}
.nearby__min { font-family: var(--display); font-size: 26px; white-space: nowrap; }
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(50px, 7vw, 110px); display: block; }

/* ---------- 6. Details ---------- */
.details { background: var(--walnut); padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.details h2 { color: var(--plaster); }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.spec h3 { font-size: 26px; padding-bottom: 14px; border-bottom: 1.5px solid var(--glow); margin-bottom: 4px; }
.spec dl { margin: 0; }
.spec dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(243, 236, 224, .14); }
.spec dt { color: #CDBBA3; font-size: 15px; }
.spec dd { margin: 0; text-align: right; font-size: 16px; font-weight: 550; }

/* ---------- 7. Viewing (the sun sets into the form) ---------- */
.viewing {
  position: relative; overflow: clip;
  background: linear-gradient(to bottom, var(--walnut) 0%, #5A2E1D 26%, var(--adobe) 58%, #CF7F3F 82%, #E0A04E 100%);
  padding-top: clamp(40px, 6vw, 90px);
}
.viewing__sun {
  /* the sun going down behind the booking form */
  position: absolute; left: 74%; bottom: -24vw; z-index: 0;
  width: 52vw; max-width: 760px; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #FBE3A6 0%, var(--glow) 45%, #E39A4A 100%);
  box-shadow: 0 0 140px 40px rgba(242, 196, 109, .35);
}
.viewing__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(40px, 6vw, 96px); align-items: start;
}
.viewing h2 { font-size: clamp(44px, 6.4vw, 104px); line-height: .95; margin-bottom: 22px; }
.viewing .lead { color: #F1E3CF; }
.direct { list-style: none; margin: 36px 0 0; padding: 0; max-width: 30em; }
.direct li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid rgba(243, 236, 224, .25); }
.direct__label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: var(--glow); }
.direct a, .direct li > span:last-child { font-size: 20px; width: fit-content; }

.request {
  background: rgba(243, 236, 224, .9);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  color: var(--walnut);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 30px 60px -30px rgba(42, 29, 21, .6);
}
.request__title { font-size: 28px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 16px/1.4 var(--text); color: var(--walnut);
  background: #FBF7F0; border: 1.5px solid rgba(42, 29, 21, .25); border-radius: 12px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--adobe); box-shadow: 0 0 0 3px rgba(169, 79, 46, .2); }
.field.is-invalid input { border-color: #B3261E; }
.request__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.request__status { min-height: 1.5em; margin-top: 12px; font-size: 15px; font-weight: 550; }
.request__status.is-error { color: #9A2019; }
.preview { margin-top: 6px; font-size: 14px; }
.preview summary { cursor: pointer; color: var(--muted); min-height: 32px; display: flex; align-items: center; }
.preview__text {
  margin: 8px 0 0; padding: 14px; border-radius: 12px; background: #FBF7F0; border: 1px solid rgba(42, 29, 21, .12);
  font: 14px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word;
  user-select: text;
}

.foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(64px, 9vw, 130px);
  padding-top: 22px; padding-bottom: 26px;
  border-top: 1px solid rgba(42, 29, 21, .25);
  color: var(--walnut); font-size: 15px;
}
.foot .ph { background: rgba(243, 236, 224, .35); box-shadow: inset 0 -2px 0 var(--walnut); }
.foot__top { font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Phone price bar ---------- */
.pricebar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 18px;
  background: var(--walnut); color: var(--plaster); overflow: hidden;
}
.lightbox::backdrop { background: rgba(20, 13, 9, .82); }
.lightbox img { width: 100%; max-height: calc(92vh - 56px); object-fit: contain; background: #140D09; }
.lightbox__cap { padding: 16px 20px; font-size: 15px; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(243, 236, 224, .92); color: var(--walnut); font-size: 22px; cursor: pointer;
}
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 40%; }
.lb-next { right: 12px; top: 40%; }

/* ---------- Gentle reveals (only when motion is allowed) ---------- */
.js-motion .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js-motion .rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+4) { margin-top: 20px; border-top: 1px solid rgba(243, 236, 224, .22); }
  .spec { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav { padding: 6px 6px 6px 12px; margin-top: 8px; gap: 12px; }
  .brand__name { font-size: 17px; }
  .nav__cta { white-space: nowrap; font-size: 14px; padding: 0 14px; }
  .nav__arrow { display: none; }
  .draftbar { font-size: 12px; min-height: 30px; }
  .brand__mark { width: 28px; height: 28px; }

  .hero__sun { width: 230px; right: -60px; top: calc(var(--top-h) + 60px); }
  .hero__title { padding-bottom: 22px; }
  .slot--hero { aspect-ratio: 3 / 2; max-height: none; }
  .slot--hero .scene { transform-origin: 72% 70%; }
  .slot--hero .slot__label { left: calc(var(--gutter) + 10px); right: auto; top: 10px; bottom: auto; }
  .hero__meta { flex-direction: column; align-items: stretch; gap: 22px; padding-bottom: 36px; }
  .hero__facts { flex-direction: column; gap: 14px; }
  .hero__actions .btn { flex: 1 1 auto; }

  .glance__intro { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgba(243, 236, 224, .22); padding-left: 20px; }
  .stat:nth-child(n+3) { margin-top: 18px; border-top: 1px solid rgba(243, 236, 224, .22); }
  .stat:nth-child(4) { border-left: 1px solid rgba(243, 236, 224, .22); padding-left: 20px; }

  .card { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; gap: 22px; }
  .card .slot { order: -1; }
  .card__num { margin-bottom: 10px; }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
    grid-template-areas:
      "living living"
      "living living"
      "kitchen primary"
      "bed2 bed3"
      "yard yard"
      "bath bath";
  }

  .area__grid { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .viewing__grid { grid-template-columns: 1fr; }
  .viewing__sun { left: 60%; width: 120vw; bottom: -70vw; }

  .pricebar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 8px 8px 18px; border-radius: 999px;
    background: rgba(243, 236, 224, .92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(42, 29, 21, .12);
    box-shadow: 0 14px 34px -14px rgba(42, 29, 21, .55);
    transition: transform .3s ease, opacity .3s ease;
  }
  .pricebar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .pricebar__price { font-family: var(--display); font-size: 21px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pricebar__label { font-family: var(--text); font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--adobe); margin-right: 4px; }
}

@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nav, .pricebar, .btn, .gallery .slot { transition: none; }
}

@media print {
  .topbar, .pricebar, .request, .hero__actions { display: none !important; }
  .card { position: static; break-inside: avoid; }
}
