:root {
  --bg: #0c0b0a;
  --bg-2: #141311;
  --paper: #f4efe7;
  --paper-2: #ebe4d8;
  --ink: #161412;
  --ink-soft: rgba(22, 20, 18, 0.72);
  --muted: #8a8378;
  --line: rgba(244, 239, 231, 0.12);
  --line-dark: rgba(22, 20, 18, 0.12);
  --brass: #b08a5a;
  --brass-2: #c9a36e;
  --white: #f7f3ec;
  --max: 1180px;
  --nav-h: 64px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--white);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; top: 12px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 100; }

.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(12, 11, 10, 0.82);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
}
.brand em { font-style: normal; color: var(--brass-2); font-family: var(--serif); font-size: 22px; letter-spacing: 0.08em; font-weight: 600; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 13px; color: rgba(247,243,236,.78); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-cta {
  background: var(--brass);
  color: #1a140c;
  padding: 8px 14px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--brass-2); }
.burger {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  width: 44px;
  height: 44px;
}

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 92px 0; }
.kicker {
  color: var(--brass-2);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 7vw, 88px); line-height: 0.96; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; }
h3 { font-size: 28px; line-height: 1.15; }
.lede { font-size: 18px; color: rgba(247,243,236,.78); max-width: 42ch; }

.hero {
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--bg);
}
.hero-copy {
  padding: 72px 48px 64px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-right: 1px solid var(--line);
}
.hero-copy p { color: rgba(247,243,236,.74); font-size: 18px; max-width: 38ch; margin: 22px 0 32px; }
.hero-media {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; min-height: 70vh; }
.hero-caption {
  position: absolute; left: 20px; bottom: 18px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(247,243,236,.8);
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 980px;
  border: 1px solid transparent; font-size: 14px; font-weight: 500;
}
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: rgba(247,243,236,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-brass { background: var(--brass); color: #1a140c; }
.btn-brass:hover { background: var(--brass-2); }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 78vh;
}
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split img { width: 100%; height: 100%; object-fit: cover; min-height: 520px; }
.split-copy { padding: 72px 56px; display: flex; flex-direction: column; justify-content: center; }
.split-copy p { color: rgba(247,243,236,.74); max-width: 44ch; }

.paper { background: var(--paper); color: var(--ink); }
.paper .kicker { color: #8a6434; }
.paper p, .paper .muted { color: var(--ink-soft); }
.paper .btn-ghost { border-color: rgba(22,20,18,.25); color: var(--ink); }

.finish-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 10px;
}
.finish {
  background: #1b1916;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.finish img { width: 100%; height: 240px; object-fit: cover; }
.finish span {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 13px; letter-spacing: 0.04em;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.compare article { background: var(--paper); padding: 40px 36px; }
.compare article.featured { background: #1a1714; color: var(--white); }
.compare article.featured p { color: rgba(247,243,236,.72); }
.price { font-family: var(--serif); font-size: 48px; line-height: 1; margin: 12px 0 18px; }
.list { list-style: none; padding: 0; margin: 0 0 28px; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.compare article.featured .list li { border-bottom-color: var(--line); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step .n { display: block; font-family: var(--serif); color: var(--brass-2); font-size: 28px; margin-bottom: 8px; }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: rgba(247,243,236,.7); margin: 0; font-size: 15px; }

.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 10px;
}
.mosaic a, .mosaic figure { margin: 0; position: relative; overflow: hidden; background: #1a1815; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .wide { grid-row: 1 / span 2; }
.mosaic figcaption {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}

.page-hero {
  padding: 84px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero p { max-width: 48ch; color: rgba(247,243,236,.74); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { min-height: 320px; position: relative; overflow: hidden; background: #171512; }
.tile img { width: 100%; height: 320px; object-fit: cover; }
.tile span { position: absolute; left: 14px; bottom: 14px; }

.builder-stage {
  border: 1px solid var(--line);
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 24px;
  background:
    linear-gradient(180deg, rgba(12,11,10,.35), rgba(12,11,10,.72)),
    url("../images/rooms/system.png") center/cover;
}
.builder-stage h2 { margin-bottom: 12px; }
.builder-stage p { max-width: 46ch; margin: 0 auto 24px; color: rgba(247,243,236,.78); }

.form {
  display: grid; gap: 14px; max-width: 560px;
}
.form label { font-size: 13px; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%; background: #1a1815; color: var(--white);
  border: 1px solid var(--line); padding: 12px 14px; min-height: 44px;
}
.form textarea { min-height: 140px; resize: vertical; }
.note { font-size: 13px; color: var(--muted); }

footer {
  border-top: 1px solid var(--line);
  padding: 36px 28px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}
footer a:hover { color: var(--white); }
.fine { font-size: 12px; color: #6d675e; max-width: 52ch; }

@media (max-width: 980px) {
  .hero, .split, .split.reverse, .compare, .timeline, .mosaic, .grid-3, footer, .finish-rail {
    grid-template-columns: 1fr;
  }
  .mosaic { grid-template-rows: none; }
  .mosaic .wide { grid-row: auto; min-height: 360px; }
  .hero-copy, .split-copy { padding: 40px 24px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #0c0b0a; padding: 18px 24px 24px; border-bottom: 1px solid var(--line); align-items: flex-start;
  }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
