/* Red Dirt Property Group — design system */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-light.woff2') format('woff2');
  font-weight: 300 600;
  font-display: swap;
}

:root {
  --ink: #191410;
  --ink-soft: #4a4038;
  --bone: #f4efe7;
  --bone-deep: #ece5d8;
  --oxide: #9e3f24;
  --oxide-deep: #7c3019;
  --line: rgba(25, 20, 16, 0.14);
  --line-light: rgba(244, 239, 231, 0.18);
  --max: 1240px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bone);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--oxide); color: var(--bone); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- type ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxide);
}
.dark .eyebrow { color: #d98a63; }
h1, .h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h2, .h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h3, .h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 450;
}
.dark .lede { color: rgba(244, 239, 231, 0.72); }
.serif-accent { font-family: 'Fraunces', serif; font-style: italic; font-weight: 380; letter-spacing: -0.01em; }

/* ---------- nav ---------- */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
header.site::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(244, 239, 231, 0.92); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 0.35s ease;
}
header.site.scrolled { box-shadow: 0 1px 0 var(--line); }
header.site.scrolled::before { opacity: 1; }
header.site.on-dark:not(.scrolled) { color: var(--bone); }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 0.02em; font-size: 15px; }
.brand svg { display: block; }
.brand .co { line-height: 1.1; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12.5px; }
.brand .co small { display: block; font-weight: 500; letter-spacing: 0.3em; font-size: 8.5px; opacity: 0.62; margin-top: 2px; }
nav.primary { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
nav.primary a { font-size: 13.5px; font-weight: 550; letter-spacing: 0.02em; opacity: 0.82; transition: opacity 0.2s; position: relative; }
nav.primary a:hover { opacity: 1; }
nav.primary a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--oxide); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 2px;
  background: var(--oxide); color: var(--bone) !important;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: var(--oxide-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; border: 1px solid currentColor; color: inherit !important; }
.btn.ghost:hover { background: rgba(25,20,16,0.06); }
.dark .btn.ghost:hover { background: rgba(244,239,231,0.08); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: inherit; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92svh; display: flex; align-items: flex-end;
  color: var(--bone); isolation: isolate; overflow: hidden;
}
.hero .bg { position: absolute; inset: 0; z-index: -2; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(18, 12, 8, 0.82) 0%, rgba(18, 12, 8, 0.25) 45%, rgba(18, 12, 8, 0.28) 100%);
}
.hero-inner { padding-bottom: clamp(48px, 8vh, 96px); padding-top: 160px; width: 100%; }
.hero .eyebrow { color: #e0a179; margin-bottom: 22px; }
.hero h1 { max-width: 17ch; text-wrap: balance; }
.hero .lede { max-width: 54ch; margin-top: 28px; color: rgba(244, 239, 231, 0.82); }
.hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta {
  margin-top: clamp(40px, 7vh, 72px); padding-top: 26px;
  border-top: 1px solid var(--line-light);
  display: flex; gap: clamp(28px, 6vw, 88px); flex-wrap: wrap;
}
.hero-meta .m { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,239,231,0.62); }
.hero-meta .m strong { display: block; font-size: 15px; letter-spacing: 0.02em; color: var(--bone); font-weight: 600; margin-bottom: 3px; }

/* ---------- sections ---------- */
section { padding: clamp(72px, 11vw, 140px) 0; }
.dark { background: var(--ink); color: var(--bone); }
.tint { background: var(--bone-deep); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px); margin-bottom: clamp(44px, 7vw, 88px); align-items: end; }
.sec-head h2 { margin-top: 14px; text-wrap: balance; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.dark .rule { border-color: var(--line-light); }

/* stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 4vw, 56px); }
.stat { border-top: 1px solid var(--line-light); padding-top: 22px; }
.stat .num {
  font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .num sup { font-size: 0.5em; color: var(--oxide); top: -0.7em; }
.dark .stat .num sup { color: #d98a63; }
.stat .lbl { margin-top: 12px; font-size: 13px; letter-spacing: 0.05em; color: rgba(244,239,231,0.6); line-height: 1.45; }

/* capability cards */
.caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap { background: var(--bone); padding: clamp(28px, 4vw, 52px); position: relative; transition: background 0.3s ease; }
.cap:hover { background: var(--bone-deep); }
.cap .idx { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--oxide); }
.cap h3 { margin: 18px 0 14px; }
.cap p { color: var(--ink-soft); font-size: 15px; max-width: 46ch; }
.cap ul { margin-top: 18px; list-style: none; }
.cap ul li { font-size: 13.5px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-soft); display: flex; gap: 10px; }
.cap ul li::before { content: '—'; color: var(--oxide); }

/* process strip */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 2vw, 28px); counter-reset: step; }
.step { border-top: 2px solid var(--line); padding-top: 18px; counter-increment: step; }
.step::before { content: '0' counter(step); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--oxide); }
.step h4 { font-size: 16px; font-weight: 600; margin: 10px 0 8px; letter-spacing: -0.01em; }
.step p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* imagery */
.img-frame { overflow: hidden; position: relative; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1); }
.img-frame:hover img { transform: scale(1.035); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split .img-frame { aspect-ratio: 4 / 3.4; }

/* markets */
.markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.market { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--ink); }
.market img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 1.2s cubic-bezier(0.2,0.6,0.2,1), opacity 0.5s; }
.market:hover img { transform: scale(1.05); opacity: 1; }
.market .cap-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px;
  background: linear-gradient(to top, rgba(18,12,8,0.85), transparent);
  color: var(--bone); z-index: 2;
}
.market .cap-label h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.market .cap-label span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,239,231,0.65); }

/* ledger table */
.ledger { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ledger th {
  text-align: left; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; padding: 0 18px 14px 0; border-bottom: 1px solid var(--ink);
}
.ledger td { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger td:first-child { font-weight: 550; }
.ledger .tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px; background: var(--bone-deep); color: var(--ink-soft);
}
.ledger .tag.closed { background: #e5e9dd; color: #3c5232; }
.ledger .tag.active { background: #f3e2d3; color: var(--oxide-deep); }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 72px); }
.person .img-frame { aspect-ratio: 1 / 1.08; background: var(--bone-deep); }
.person h3 { margin-top: 26px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.person .role { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oxide); font-weight: 600; margin-top: 6px; }
.person .bio { margin-top: 18px; color: var(--ink-soft); font-size: 15px; max-width: 52ch; }
.person .contact-line { margin-top: 18px; font-size: 14px; font-weight: 550; }
.person .contact-line a { border-bottom: 1px solid var(--oxide); padding-bottom: 1px; }
.person .facts { margin-top: 22px; list-style: none; }
.person .facts li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); }
.person .facts li strong { color: var(--ink); font-weight: 600; }

/* contact / footer */
.contact-band h2 { max-width: 22ch; text-wrap: balance; }
.contact-band .big-link {
  display: block; font-size: clamp(1.6rem, 4.4vw, 3.4rem); font-weight: 500; letter-spacing: -0.03em;
  margin-top: 10px; transition: color 0.25s;
}
.contact-band .big-link:hover { color: #d98a63; }
.contact-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-cols .kv { border-top: 1px solid var(--line-light); padding: 18px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.contact-cols .kv span:first-child { color: rgba(244,239,231,0.55); letter-spacing: 0.1em; text-transform: uppercase; font-size: 11.5px; padding-top: 2px; }
footer.site {
  background: var(--ink); color: rgba(244,239,231,0.55);
  border-top: 1px solid var(--line-light);
  padding: 34px 0; font-size: 12.5px;
}
footer.site .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site a:hover { color: var(--bone); }

/* page hero (interior pages) */
.page-hero { padding: 190px 0 clamp(48px, 8vw, 90px); }
.page-hero h1 { max-width: 16ch; margin-top: 16px; }
.page-hero .lede { max-width: 58ch; margin-top: 24px; }

/* reveal animation */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.85s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.6, 0.2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .caps, .team-grid, .split, .contact-cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .markets { grid-template-columns: 1fr; }
  .market { aspect-ratio: 16 / 10; }
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  nav.primary {
    position: fixed; inset: 0; background: var(--ink); color: var(--bone);
    flex-direction: column; justify-content: center; gap: 30px;
    font-size: 20px; transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: 70;
  }
  nav.primary.open { transform: none; }
  nav.primary a { font-size: 22px; }
  .menu-toggle { display: block; z-index: 80; position: relative; }
  header.site.nav-open .menu-toggle { color: var(--bone); }
  header.site.nav-open { color: var(--bone) !important; }
  .ledger { font-size: 13px; }
  .ledger th, .ledger td { padding-right: 10px; }
  .hide-m { display: none; }
}
