:root {
  --bg: #0f1216;
  --bg-alt: #161b22;
  --surface: #1b212b;
  --ink: #f3f0e8;
  --muted: #a6adb8;
  --accent: #d8b97c;
  --accent-ink: #12151a;
  --line: rgba(243, 240, 232, 0.12);
  --radius: 14px;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 1.5rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15, 18, 22, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-weight: 700; letter-spacing: .16em; font-size: .92rem;
}
.brand-mark { color: var(--accent); font-size: 1.15rem; }
nav { display: flex; align-items: center; gap: 1.4rem; font-size: .9rem; color: var(--muted); }
nav a { text-decoration: none; transition: color .15s; }
nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent); color: var(--accent-ink);
  padding: .48rem .95rem; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { filter: brightness(1.06); color: var(--accent-ink); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
  color: var(--accent); margin: 0 0 .65rem; font-weight: 600;
}
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }

.hero { padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 56ch; margin: 0 0 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.4rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .94rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, filter .15s, border-color .15s;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--accent); }

.trust-bar {
  list-style: none; padding: 1.2rem 0 0; margin: 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.trust-bar strong { display: block; font-size: .88rem; color: var(--ink); }
.trust-bar span { font-size: .8rem; color: var(--muted); }

.hero-showcase { position: relative; }
.hero-card {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .48);
}
.hero-card figcaption {
  background: var(--surface); color: var(--muted);
  padding: .65rem 1rem; font-size: .82rem; border-top: 1px solid var(--line);
}
.sub-card {
  position: absolute; width: 44%; right: -1rem; bottom: -1.5rem;
  border: 2px solid var(--bg);
}

.section { padding: 4.5rem 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.25rem; margin-bottom: 2rem;
}
.section-intro { color: var(--muted); max-width: 66ch; margin: -1rem 0 2.2rem; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn {
  background: var(--surface); color: var(--muted); border: 1px solid var(--line);
  padding: .46rem .9rem; border-radius: 999px; font-size: .84rem; cursor: pointer;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.6rem;
}
.map-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s, border-color .18s;
  cursor: pointer; text-align: left; padding: 0; color: inherit;
}
.map-card:hover { transform: translateY(-3px); border-color: rgba(216, 185, 124, .55); }
.card-thumb {
  aspect-ratio: 3 / 2; width: 100%; overflow: hidden; background: #0a0c10; position: relative;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.map-card:hover .card-thumb img { transform: scale(1.03); }
.card-badge {
  position: absolute; top: .75rem; left: .75rem;
  background: rgba(15, 18, 22, .82); color: var(--accent);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--line);
}
.card-body { padding: 1.15rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.card-sub { color: var(--muted); font-size: .88rem; margin: 0 0 1rem; flex: 1; }
.card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: .8rem; border-top: 1px solid var(--line); font-size: .86rem;
}
.card-price { color: var(--accent); font-weight: 600; }
.card-cta { color: var(--muted); }

.size-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.size-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.45rem;
}
.featured-size { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(216, 185, 124, .25); }
.ratio-pill {
  display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); margin-bottom: .6rem; font-weight: 600;
}
.size-card h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.size-card .price { font-size: 1.25rem; font-weight: 700; margin: 0 0 .7rem; color: var(--ink); }
.size-card .price span { font-size: .82rem; font-weight: 400; color: var(--muted); }
.size-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.craft-grid { display: grid; grid-template-columns: 1.2fr .85fr; gap: 3rem; align-items: start; }
.craft-grid p { color: var(--muted); margin: 1rem 0 0; }
.craft-facts {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.craft-facts dl { margin: 0; display: grid; gap: 1rem; }
.craft-facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.craft-facts dd { margin: .2rem 0 0; color: var(--ink); font-size: .94rem; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .86rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* Modal */
dialog.modal {
  padding: 0; border: 1px solid var(--line); border-radius: 18px;
  background: var(--bg-alt); color: var(--ink);
  width: min(1080px, 94vw); max-height: 92vh; overflow: auto;
}
dialog.modal::backdrop { background: rgba(6, 8, 12, .82); backdrop-filter: blur(6px); }
.modal-shell { display: grid; grid-template-columns: 1.25fr 1fr; position: relative; }
.modal-close {
  position: absolute; top: .85rem; right: .85rem; z-index: 5;
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(15, 18, 22, .85); color: var(--ink); font-size: 1.4rem; cursor: pointer;
}
.modal-media {
  background: #0a0c10; padding: 1.25rem; display: flex; flex-direction: column;
  justify-content: center; gap: .9rem; border-right: 1px solid var(--line);
}
.modal-media img { border-radius: 8px; max-height: 68vh; object-fit: contain; margin: 0 auto; }
.view-toggle { display: flex; justify-content: center; gap: .5rem; }
.toggle-btn {
  background: var(--surface); color: var(--muted); border: 1px solid var(--line);
  padding: .4rem .85rem; border-radius: 999px; font-size: .8rem; cursor: pointer;
}
.toggle-btn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

.modal-info { padding: 1.8rem; display: flex; flex-direction: column; gap: 1.1rem; }
.modal-sub { color: var(--muted); margin: 0; font-size: .95rem; }
.picker-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .55rem; }
.size-pills { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.size-pill {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: .6rem .75rem; text-align: left; cursor: pointer; font-size: .84rem;
}
.size-pill span { display: block; color: var(--muted); font-size: .75rem; }
.size-pill.active { border-color: var(--accent); background: rgba(216, 185, 124, .12); }

.price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.modal-price { display: block; font-size: 1.7rem; font-weight: 700; font-family: var(--font-serif); color: var(--accent); }
.modal-ship { font-size: .76rem; color: var(--muted); }
.spec-box { font-size: .82rem; color: var(--muted); display: grid; gap: .45rem; }
.spec-box p { margin: 0; }
.spec-box strong { color: var(--ink); }

@media (max-width: 880px) {
  .hero-grid, .craft-grid, .modal-shell { grid-template-columns: 1fr; }
  .sub-card { display: none; }
  .trust-bar { grid-template-columns: 1fr; }
  .modal-media { border-right: none; border-bottom: 1px solid var(--line); }
  nav a:not(.nav-cta) { display: none; }
}
