/* 2023 Grand Wagoneer Series III — private sale site */
:root {
  --bg: #0e0c0a;
  --surface: #17130f;
  --surface-2: #201a14;
  --ink: #f2ede4;
  --ink-2: #b9ae9d;
  --ink-3: #8a8071;
  --accent: #c98a4b;
  --accent-bright: #e4b36f;
  --line: rgba(226, 203, 166, 0.14);
  --line-strong: rgba(226, 203, 166, 0.28);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-bright); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, .display { font-family: var(--serif); font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head p.lead { color: var(--ink-2); margin-top: 16px; font-size: 1.08rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(14, 12, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand .b1 {
  font-family: var(--serif); font-weight: 600; font-size: 1.06rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink);
}
.brand .b2 {
  font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--accent);
}
.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.cta {
  color: #14100b; background: var(--accent); padding: 9px 18px; border-radius: 3px;
  font-weight: 600;
}
.nav-links a.cta:hover { background: var(--accent-bright); color: #14100b; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--ink); border-radius: 4px; padding: 8px 12px; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  padding: 110px 0 9vh; overflow: hidden;
}
.hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 62%;
}
.hero .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(14,12,10,0.78) 0%, rgba(14,12,10,0.38) 42%, rgba(14,12,10,0) 68%),
    linear-gradient(to top, rgba(14,12,10,0.96) 0%, rgba(14,12,10,0.45) 38%, rgba(14,12,10,0.18) 62%, rgba(14,12,10,0.55) 100%);
}
.hero .wrap { position: relative; width: 100%; }
.hero h1, .hero .sub, .hero .eyebrow, .hero .price-line { text-shadow: 0 1px 12px rgba(10, 8, 6, 0.55); }
.hero .eyebrow { display: block; margin-bottom: 18px; }
.hero p.sub { color: var(--ink-2); max-width: 620px; margin-top: 20px; font-size: 1.12rem; }
.hero .price-line { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px; }
.hero .price { font-family: var(--serif); font-size: 2.5rem; font-weight: 600; color: var(--accent-bright); }
.hero .was { color: var(--ink-3); font-size: 1rem; }
.hero .actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block; padding: 14px 30px; border-radius: 3px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.btn-solid { background: var(--accent); color: #14100b; }
.btn-solid:hover { background: var(--accent-bright); color: #14100b; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); }

/* ---------- Stat band ---------- */
.stat-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 0; }
.stats {
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.stat {
  padding: 30px 18px; text-align: center; border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat .v { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); }
.stat .k { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 24px 24px 28px; }
.card h3 { margin-bottom: 10px; color: var(--ink); }
.card p { color: var(--ink-2); font-size: 0.95rem; }
.card .more { display: inline-block; margin-top: 14px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 92px; }
.split:last-child { margin-bottom: 0; }
.split.rev .media { order: 2; }
.split .media img { border-radius: 6px; border: 1px solid var(--line); }
.split h2 { margin-bottom: 16px; }
.split p { color: var(--ink-2); margin-bottom: 14px; }
.split ul { list-style: none; margin-top: 10px; }
.split li { padding: 9px 0 9px 26px; position: relative; color: var(--ink-2); border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.split li:last-child { border-bottom: none; }
.split li::before { content: ""; position: absolute; left: 0; top: 17px; width: 12px; height: 1px; background: var(--accent); }
.split li strong { color: var(--ink); font-weight: 600; }

/* ---------- Table ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); }
th { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); background: var(--surface); font-weight: 600; }
td { color: var(--ink-2); }
td:first-child { color: var(--ink); white-space: nowrap; }
tr:last-child td { border-bottom: none; }

/* ---------- Gallery ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid a.ph { display: block; overflow: hidden; border-radius: 5px; border: 1px solid var(--line); position: relative; aspect-ratio: 4 / 3; }
.grid a.ph.tall { aspect-ratio: 3 / 4; grid-row: span 2; }
.grid a.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.grid a.ph:hover img { transform: scale(1.05); }

dialog.lightbox {
  border: none; background: rgba(10, 8, 6, 0.94); padding: 0;
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  display: none; align-items: center; justify-content: center;
}
dialog.lightbox[open] { display: flex; }
dialog.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
dialog.lightbox .close {
  position: fixed; top: 20px; right: 26px; font-size: 2rem; color: var(--ink-2);
  background: none; border: none; cursor: pointer;
}
dialog.lightbox .close:hover { color: var(--ink); }

/* ---------- Callout / panels ---------- */
.panel {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 44px;
}
.panel.accent { border-color: rgba(201, 138, 75, 0.55); }
.price-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; }
.big-num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; color: var(--accent-bright); line-height: 1; }
.strike { text-decoration: line-through; color: var(--ink-3); }

.note { font-size: 0.82rem; color: var(--ink-3); margin-top: 18px; }

/* ---------- Timeline chart ---------- */
.viz-root { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 34px 30px 24px; }
.viz-root .viz-title { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.viz-root .viz-sub { font-size: 0.82rem; color: var(--ink-3); margin-bottom: 22px; }
.viz-scroll { overflow-x: auto; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .big a { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); color: var(--ink); }
.contact .big a:hover { color: var(--accent-bright); }
.contact .row { margin-top: 8px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--ink-3); font-size: 0.82rem; }
footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer .fine { margin-top: 26px; max-width: 860px; line-height: 1.7; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; padding: 150px 0 70px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; opacity: 0.35; }
.page-hero .scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(14,12,10,0.55), rgba(14,12,10,0.97)); }
.page-hero .wrap { position: relative; }
.page-hero p.lead { color: var(--ink-2); max-width: 700px; margin-top: 18px; font-size: 1.1rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: none; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+3) { border-top: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.rev .media { order: 0; }
  .price-panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  section { padding: 60px 0; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(14,12,10,0.97); flex-direction: column; padding: 18px 24px 26px;
    border-bottom: 1px solid var(--line); gap: 18px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .panel { padding: 28px 22px; }
  .hero { min-height: 86vh; }
}
