:root {
  --charcoal: #171513;
  --charcoal-soft: #211e1b;
  --charcoal-line: rgba(244, 238, 227, 0.12);
  --paper: #f3ede2;
  --paper-dim: #e9e0d0;
  --brass: #b3893f;
  --brass-light: #d9b877;
  --pine: #2e3b31;
  --pine-light: #47593f;
  --ink: #1c1a17;
  --ink-soft: rgba(28, 26, 23, 0.66);
  --ink-faint: rgba(28, 26, 23, 0.4);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: thin; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  background: linear-gradient(180deg, rgba(23,21,19,0.85), rgba(23,21,19,0));
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-brand { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.02em; text-transform: none; color: var(--paper); }
.nav-brand b { color: var(--brass-light); font-weight: 500; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { opacity: 0.82; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--brass-light); }
.nav-cta {
  border: 1px solid rgba(244,238,227,0.35);
  padding: 8px 16px;
  border-radius: 2px;
}
.nav-cta:hover { border-color: var(--brass-light); color: var(--brass-light); }

/* ---------- Cinematic scrub sections ---------- */
.cinematic { position: relative; height: 480vh; background: var(--charcoal); }
#journey { height: 420vh; background: #000; }
#journey .sticky { background: #000; }
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--charcoal);
}
#frame-canvas-hero, #frame-canvas-reveal, #frame-canvas-journey {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(10,9,7,0.6) 100%),
    linear-gradient(180deg, rgba(10,9,7,0.55) 0%, transparent 22%, transparent 68%, rgba(10,9,7,0.75) 100%);
}
.overlay { position: relative; z-index: 10; text-align: center; padding: 0 24px; width: 100%; height: 100%; }
.reveal-line {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  will-change: opacity, transform;
}
.reveal-line h1 { max-width: 88vw; margin: 0 auto; }
.reveal-line .eyebrow { display: block; margin-bottom: 14px; color: var(--brass-light); }
.reveal-line h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 1.05;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.reveal-line h1 i { font-style: italic; color: var(--brass-light); }
.reveal-line p.byline {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,238,227,0.7);
}
.review-line .quote-mark {
  display: block;
  font-family: var(--serif);
  font-size: 3.2rem;
  color: var(--brass-light);
  line-height: 1;
  margin-bottom: 6px;
}
.review-line h1.review-quote {
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  max-width: 70vw;
}
.review-line p.byline { opacity: 0.75; }

.progress { position: absolute; left: 40px; right: 40px; bottom: 40px; height: 1px; background: rgba(244,238,227,0.18); z-index: 12; }
.progress-fill { height: 100%; width: 0%; background: var(--brass-light); }
.scroll-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 12; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.3em;
  color: rgba(244,238,227,0.55); animation: bob 1.8s ease-in-out infinite; transition: opacity 0.4s;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ---------- Generic scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- About ---------- */
.about {
  padding: 120px 40px;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about-photo { border-radius: 4px; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.about-body .eyebrow { display: block; margin-bottom: 20px; }
.about-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  color: var(--ink);
}
.about-body h2 i { font-style: italic; color: var(--brass); }
.about-body p { margin-top: 20px; font-size: 1rem; line-height: 1.75; color: var(--ink-soft); }
.about-body .btn-inquire { margin-top: 26px; border-color: var(--brass); color: var(--brass); }
.about-body .btn-inquire:hover { background: var(--brass); color: var(--paper); }

/* ---------- Video / YouTube section ---------- */
.videos { background: var(--paper-dim); padding: 110px 40px; text-align: center; }
.videos-head { max-width: 680px; margin: 0 auto 56px; }
.videos-head .eyebrow { display: block; margin-bottom: 16px; }
.videos-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--ink); }
.videos-sub { margin-top: 16px; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.videos-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  text-align: left;
}
.video-card { background: var(--charcoal-soft); border-radius: 4px; overflow: hidden; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { padding: 16px 18px; font-family: var(--sans); font-size: 0.92rem; color: var(--paper); }
.videos > .btn-inquire { margin-top: 44px; border-color: var(--brass); color: var(--brass); }
.videos > .btn-inquire:hover { background: var(--brass); color: var(--paper); }

/* ---------- Listings ---------- */
.listings { padding: 60px 40px 120px; max-width: 1280px; margin: 0 auto; }
.listings-head { text-align: center; margin-bottom: 64px; }
.listings-head .eyebrow { display: block; margin-bottom: 16px; }
.listings-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3rem); }

.listing-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--charcoal-soft);
  color: var(--paper);
  margin-bottom: 40px;
  overflow: hidden;
  border-radius: 4px;
}
.listing-card:nth-child(even) { grid-template-columns: 0.9fr 1.1fr; }
.listing-card:nth-child(even) .listing-media { order: 2; }
.listing-media { position: relative; overflow: hidden; min-height: 420px; }
.listing-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-gallery {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; gap: 6px; padding: 8px;
  background: linear-gradient(0deg, rgba(10,9,7,0.7), transparent);
  overflow-x: auto;
}
.listing-gallery img {
  width: 64px; height: 46px; object-fit: cover; border-radius: 2px;
  opacity: 0.75; transition: opacity 0.2s; flex: none;
  border: 1px solid rgba(244,238,227,0.2);
}
.listing-gallery img:hover { opacity: 1; }
.listing-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.listing-body .eyebrow { display: block; margin-bottom: 14px; }
.listing-body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--paper); }
.listing-body .address { font-family: var(--mono); font-size: 0.82rem; color: var(--brass-light); margin-top: 8px; letter-spacing: 0.04em; }
.listing-body p.desc { margin-top: 20px; font-size: 0.98rem; line-height: 1.75; color: rgba(244,238,227,0.72); }
.listing-note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(244,238,227,0.5);
  border-left: 2px solid var(--brass);
  padding-left: 12px;
}
.btn-inquire {
  margin-top: 28px;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--brass-light);
  color: var(--brass-light);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.btn-inquire:hover { background: var(--brass-light); color: var(--charcoal); }

/* ---------- Resources: Home estimate + Buyer/Seller guides ---------- */
.resources { padding: 110px 40px; max-width: 1240px; margin: 0 auto; }
.resources-head { text-align: center; margin-bottom: 56px; }
.resources-head .eyebrow { display: block; margin-bottom: 16px; }
.resources-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.2vw, 2.8rem); }
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.resource-card {
  background: var(--charcoal-soft); color: var(--paper);
  border-radius: 4px; padding: 36px 30px;
  display: flex; flex-direction: column;
}
.resource-card .eyebrow { display: block; margin-bottom: 14px; }
.resource-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.3; color: var(--paper); }
.resource-card p { margin-top: 16px; font-size: 0.94rem; line-height: 1.7; color: rgba(244,238,227,0.72); flex-grow: 1; }
.guide-steps { margin-top: 16px; padding-left: 20px; flex-grow: 1; }
.guide-steps li { font-size: 0.88rem; line-height: 1.65; color: rgba(244,238,227,0.72); margin-bottom: 10px; }
.resource-card .btn-inquire { margin-top: 22px; align-self: flex-start; }

/* ---------- Blog / Park City Insights ---------- */
.blog { background: var(--paper-dim); padding: 110px 40px; }
.blog-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.blog-head .eyebrow { display: block; margin-bottom: 16px; }
.blog-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--ink); }
.blog-sub { margin-top: 16px; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.blog-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.blog-card {
  background: var(--paper); border: 1px solid rgba(28,26,23,0.1); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(28,26,23,0.12); }
.blog-card .blog-thumb { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--charcoal); overflow: hidden; }
.blog-card .blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-body .blog-date { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--brass); text-transform: uppercase; }
.blog-card-body h3 { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: 1.12rem; line-height: 1.35; color: var(--ink); }
.blog-card-body .blog-read { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--brass); text-transform: uppercase; }

/* ---------- Listing CTA pairs / sold banner / blog view-all ---------- */
.listing-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.listing-ctas .btn-inquire { margin-top: 0; }
.sold-banner {
  max-width: 1100px;
  margin: 0 auto 56px;
  background: var(--pine);
  color: var(--paper);
  border-radius: 4px;
  padding: 40px 38px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 32px;
  align-items: center;
}
.sold-banner .eyebrow { color: var(--brass-light); display: block; margin-bottom: 10px; }
.sold-banner h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.25; }
.sold-banner p { margin-top: 12px; font-size: 0.95rem; line-height: 1.7; color: rgba(244,238,227,0.8); }
.sold-banner .btn-inquire { border-color: var(--brass-light); color: var(--brass-light); justify-self: end; }
.sold-banner .btn-inquire:hover { background: var(--brass-light); color: var(--charcoal); }
.blog-viewall { margin-top: 20px; border-color: var(--brass); color: var(--brass); }
.blog-viewall:hover { background: var(--brass); color: var(--paper); }
.blog-subhead { max-width: 1100px; margin: 56px auto 24px; }
.blog-subhead:first-of-type { margin-top: 40px; }
.blog-subhead .eyebrow { display: block; margin-bottom: 8px; }
.blog-subhead h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--ink); }

/* ---------- Reviews (placeholder) ---------- */
.reviews { background: var(--pine); color: var(--paper); padding: 110px 40px; }
.reviews-inner { max-width: 1100px; margin: 0 auto; }
.reviews-head { text-align: center; margin-bottom: 20px; }
.reviews-head .eyebrow { color: var(--brass-light); display: block; margin-bottom: 16px; }
.reviews-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.reviews-flag {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(244,238,227,0.55);
  margin-bottom: 56px;
}
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  border: 1px solid rgba(244,238,227,0.18);
  background: rgba(23,21,19,0.25);
  border-radius: 4px;
  padding: 30px 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.review-card .quote-mark { font-family: var(--serif); font-size: 2.4rem; color: var(--brass-light); line-height: 1; }
.review-quote-text { margin-top: 10px; font-size: 0.94rem; line-height: 1.7; color: rgba(244,238,227,0.85); flex-grow: 1; }
.review-name {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.reviews-flag { letter-spacing: 0.12em; color: var(--brass-light); }

/* ---------- Footer / contact ---------- */
.footer { background: var(--charcoal); color: var(--paper); padding: 90px 40px 40px; }
.footer-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.footer .eyebrow { display: block; margin-bottom: 18px; }
.footer h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.footer p.role { margin-top: 14px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; color: rgba(244,238,227,0.6); text-transform: uppercase; }
.footer-contact { margin-top: 34px; display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.footer-contact a {
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em;
  padding: 12px 22px; border: 1px solid rgba(244,238,227,0.3); border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.footer-contact a:hover { border-color: var(--brass-light); color: var(--brass-light); }
.footer-fine { margin-top: 70px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; color: rgba(244,238,227,0.35); }

/* ---------- Mobile ---------- */
.nav-burger { display: none; background: none; border: 0; color: var(--paper); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 6px; }
@media (max-width: 860px) {
  .nav { padding: 16px 20px; }
  .nav-burger { display: block; }
  .nav-links { display: none; }
  .nav.open { background: rgba(23,21,19,0.97); }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(23,21,19,0.97);
    padding: 8px 24px 26px;
  }
  .nav.open .nav-cta { border: 0; padding: 0; }
  .listing-card, .listing-card:nth-child(even) { grid-template-columns: 1fr; }
  .listing-card:nth-child(even) .listing-media { order: 0; }
  .listing-media { min-height: 280px; }
  .listing-body { padding: 32px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .about, .listings, .reviews, .footer, .videos, .resources, .blog { padding-left: 24px; padding-right: 24px; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about-photo img { aspect-ratio: 16/10; }
  .videos-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .sold-banner { grid-template-columns: 1fr; }
  .sold-banner .btn-inquire { justify-self: start; }
}
