/* ===========================================================
   Auctus Realty — home page (loaded after auctus.css, home page only).
   Everything is scoped to .hm so no other page is affected. Header, menu, footer and .finale come from auctus.css.
   =========================================================== */
.hm { background: var(--paper); }
.hm section { position: relative; }
.hm-h2 { font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.06; letter-spacing: -0.01em; word-spacing: 0.06em; max-width: 20ch; }
.hm-lede { font-size: 1.0625rem; color: var(--ink-soft); max-width: 52ch; margin: 1rem 0 0; }
.hm .tlink { font-size: 0.9375rem; }

/* ---------- Hero ---------- */
.hm-hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; background: var(--night); color: var(--on-night); overflow: hidden; }
.hm-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hm-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 24, 0.55) 0%, rgba(10, 11, 24, 0.1) 32%, rgba(10, 11, 24, 0.35) 60%, rgba(10, 11, 24, 0.9) 100%); }
.hm-hero__in { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--hdr) + 40px); padding-bottom: clamp(28px, 4vw, 56px); }
.hm-hero__title { font-family: var(--serif); font-size: clamp(2.6rem, 6.4vw, 5.75rem); line-height: 1; letter-spacing: -0.012em; word-spacing: 0.08em; max-width: 16ch; margin-bottom: clamp(24px, 3vw, 44px); }
.hm-hero__title span { display: block; }
.hm-hero__title span + span { font-style: italic; }
.hm-search { display: flex; max-width: 720px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.hm-search input { flex: 1; min-width: 0; height: 60px; padding: 0 20px; border: 0; background: transparent; font-size: 1rem; }
.hm-search input::placeholder { color: rgba(20, 20, 20, 0.5); }
.hm-search input:focus-visible { outline: 2px solid var(--sand-deep); outline-offset: -2px; }
.hm-btn { flex: none; height: 60px; padding: 0 28px; border: 0; background: var(--ink); color: var(--paper); font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: background 0.25s; }
.hm-btn:hover { background: var(--sand-deep); }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hm-chips a { display: inline-block; padding: 0.45em 1em; font-size: 0.8125rem; text-decoration: none; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38); backdrop-filter: blur(6px); transition: background 0.25s, color 0.25s; }
.hm-chips a:hover { background: var(--paper); color: var(--ink); }
.hm-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: clamp(28px, 4vw, 56px) 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.hm-hero__facts dt { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.1; }
.hm-hero__facts dd { margin: 0.3rem 0 0; font-size: 0.8125rem; color: var(--on-night-soft); }

/* ---------- Intro ---------- */
.hm-intro { padding-block: clamp(56px, 8vw, 120px) clamp(16px, 3vw, 40px); }
.hm-intro__text { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.35rem); line-height: 1.24; letter-spacing: 0; word-spacing: 0.06em; max-width: 46ch; margin: 0 0 1.6rem; }

/* ---------- Listings ---------- */
.hm-listings { padding-block: clamp(48px, 6vw, 96px); }
.hm-head { display: flex; flex-wrap: wrap; align-items: end; gap: 14px clamp(20px, 4vw, 56px); margin-bottom: clamp(24px, 3.5vw, 48px); }
.hm-head .hm-h2 { margin-right: auto; }
.hm-head__count { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; max-width: 34ch; }
.hm-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 52px) clamp(14px, 2vw, 32px); }
.hm-card { grid-column: span 6; display: block; text-decoration: none; }
.hm-card:nth-child(4n + 1), .hm-card:nth-child(4n + 4) { grid-column: span 7; }
.hm-card:nth-child(4n + 2), .hm-card:nth-child(4n + 3) { grid-column: span 5; }
.hm-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hm-card__media { position: relative; height: clamp(260px, 42vw, 600px); overflow: hidden; background: var(--stone); }
.hm-card:last-child:nth-child(odd) .hm-card__media { height: clamp(260px, 36vw, 540px); }
.hm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hm-card:hover .hm-card__media img { transform: scale(1.04); }
.hm-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.hm-tags .tag { background: var(--paper); color: var(--ink); box-shadow: none; font-size: 0.75rem; padding: 0.35em 0.85em; }
.hm-card__body { padding-top: 16px; }
.hm-card__place { margin: 0 0 0.3rem; font-size: 0.8125rem; color: var(--ink-soft); }
.hm-card__title { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.08; letter-spacing: -0.015em; }
.hm-card__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0.6rem 0 0; font-size: 0.875rem; color: var(--ink-soft); }
.hm-card__meta span:last-child { color: var(--ink); font-weight: 500; }
.hm-card__go { display: inline-block; margin-top: 0.9rem; font-size: 0.875rem; font-weight: 500; padding-bottom: 0.2em; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size 0.45s var(--ease); }
.hm-card:hover .hm-card__go { background-size: 30% 1px; }

/* ---------- Inside the developments: a swipeable strip ---------- */
.hm-inside { padding-block: clamp(24px, 4vw, 56px) clamp(48px, 6vw, 96px); }
.hm-inside .hm-h2 { margin-bottom: clamp(20px, 3vw, 40px); }
.hm-inside__strip { display: flex; gap: clamp(12px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x proximity; padding: 0 var(--gutter) 12px; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
.hm-inside__strip figure { flex: none; width: clamp(240px, 32vw, 460px); margin: 0; scroll-snap-align: start; }
.hm-inside__strip a { display: block; text-decoration: none; }
.hm-inside__strip .frame { aspect-ratio: 4 / 5; }
.hm-inside__strip .frame img { transition: transform 1s var(--ease); }
.hm-inside__strip a:hover .frame img { transform: scale(1.04); }
.hm-inside__strip figcaption { margin-top: 0.6rem; font-size: 0.8125rem; color: var(--ink-soft); }

/* ---------- Steps ---------- */
.hm-steps { padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line); }
.hm-steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(28px, 4vw, 56px); counter-reset: step; }
.hm-steps__list li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--ink); }
.hm-steps__list li::before { content: counter(step); display: block; font-size: 0.8125rem; font-weight: 500; color: var(--sand-deep); margin-bottom: 1.4rem; }
.hm-steps__list h3, .hm-lines h3, .hm-why__cols h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.hm-steps__list p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; max-width: 36ch; }

/* ---------- Where ---------- */
.hm-where { padding-block: clamp(56px, 8vw, 120px); }
.hm-where .where { margin-top: clamp(28px, 4vw, 56px); }
.hm-where .where__intro { display: none; }
.hm-where .where__intro { color: var(--ink-soft); font-size: 0.9375rem; margin-bottom: 0.8rem; }
.hm-where .where__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 12px clamp(16px, 3vw, 48px); align-items: baseline; padding-block: clamp(18px, 2.4vw, 30px); border-top: 1px solid var(--line); }
.hm-where .where__row:last-child { border-bottom: 1px solid var(--line); }
.hm-where .where__place { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -0.015em; }
.hm-where .where__detail, .hm-where .where__links { margin: 0; font-size: 0.9375rem; }
.hm-where .where__detail { color: var(--ink-soft); }

/* ---------- Why (dark) ---------- */
.hm-why { padding-block: clamp(56px, 8vw, 120px); background: var(--night); color: var(--on-night); }
.hm-why__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin: clamp(28px, 4vw, 56px) 0 clamp(24px, 3vw, 40px); }
.hm-why__cols > div { padding-top: 18px; border-top: 1px solid var(--line-night); }
.hm-why__cols p { margin: 0; color: var(--on-night-soft); font-size: 0.9375rem; max-width: 36ch; }
.hm-why .hm-h2 { max-width: 22ch; }

/* ---------- NRI ---------- */
.hm-nri { padding-block: clamp(56px, 8vw, 120px); }
.hm-nri__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 88px); align-items: center; }
.hm-nri__fig { margin: 0; }
.hm-nri__fig .frame { aspect-ratio: 4 / 5; }
.hm-lines { margin: clamp(20px, 3vw, 36px) 0 1.6rem; }
.hm-lines > div { padding-block: 16px; border-top: 1px solid var(--line); }
.hm-lines > div:last-child { border-bottom: 1px solid var(--line); }
.hm-lines p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; max-width: 52ch; }

/* ---------- Founder ---------- */
.hm-founder { padding-block: clamp(48px, 7vw, 104px); background: var(--stone); }
.hm-founder__name { font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.022em; }
.hm-founder__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px clamp(16px, 3vw, 40px); margin: clamp(24px, 3.5vw, 44px) 0; }
.hm-founder__facts > div { padding-top: 12px; border-top: 1px solid var(--line); }
.hm-founder__facts dt { font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.hm-founder__facts dd { margin: 0; font-size: 0.9375rem; }
.hm-founder__bio { max-width: 62ch; margin: 0; color: var(--ink-soft); }

@media (max-width: 860px) {
  .hm-hero__facts, .hm-steps__list, .hm-why__cols { grid-template-columns: 1fr; gap: 18px; }
  .hm-hero__facts > div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .hm-hero__facts dd { margin: 0; }
  .hm-nri__grid { grid-template-columns: 1fr; }
  .hm-nri__fig { max-width: 420px; }
  .hm-founder__facts { grid-template-columns: 1fr 1fr; }
  .hm-where .where__row { grid-template-columns: 1fr; gap: 6px; }
  .hm-card, .hm-card:nth-child(n) { grid-column: 1 / -1; }
  .hm-card:last-child:nth-child(odd) .hm-card__media { height: clamp(240px, 62vw, 420px); }
}
@media (max-width: 520px) {
  .hm-search { flex-direction: column; }
  .hm-btn { width: 100%; height: 52px; }
  .hm-search input { flex: none; width: 100%; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-card__media img, .hm-inside__strip .frame img { transition: none; }
}
