:root {
  color-scheme: dark;
  --bg: #0d0d10;
  --panel: #15151a;
  --panel-2: #1b1b21;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #ece7db;
  --muted: #9b958a;
  --accent: #c9a45c;
  --accent-ink: #1a1712;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(13, 13, 16, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(45deg, transparent 0 2px, rgba(0, 0, 0, 0.25) 2px 3px),
    linear-gradient(135deg, #c9a45c, #8c4a32 55%, #2c3b57);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13.5px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.nav .cta {
  color: var(--accent-ink);
  background: var(--accent);
  padding: 9px 15px;
  border-radius: 8px;
  font-weight: 600;
}

/* ---------------------------------------------------------------- home */

.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 16, 0.15) 0%, rgba(13, 13, 16, 0.55) 55%, #0d0d10 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 0 76px;
  max-width: 760px;
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.page-head .lede {
  margin-top: 14px;
}

.lede {
  color: #cbc4b6;
  font-size: 17px;
  max-width: 56ch;
  margin: 0 0 30px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

.button.primary:hover {
  background: #d8b46b;
}

.section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
  font-size: 14px;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.family {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

.family img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 300ms ease, transform 500ms ease;
}

.family:hover img {
  opacity: 0.7;
  transform: scale(1.03);
}

.family span,
.family strong {
  position: relative;
}

.family strong {
  font-size: 17px;
  font-weight: 600;
}

.family span {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease;
}

.card:hover {
  border-color: rgba(201, 164, 92, 0.45);
  transform: translateY(-2px);
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #000;
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 600;
}

.card-meta {
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card-price {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- catalog */

.page-head {
  padding: 64px 0 30px;
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0 0;
}

.chip {
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.chip.active,
.chip:hover {
  color: var(--ink);
  border-color: rgba(201, 164, 92, 0.55);
}

.catalog-grid {
  padding: 34px 0 90px;
}

/* ---------------------------------------------------------------- design page */

.design {
  padding: 40px 0 90px;
}

.design-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 42px;
  align-items: start;
}

.viewer {
  position: sticky;
  top: 92px;
}

.viewer-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #101014;
  aspect-ratio: 4 / 3;
}

.viewer-stage canvas {
  width: 100%;
  height: 100%;
}

.viewer-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  justify-items: center;
  color: var(--muted);
  font-size: 12.5px;
  background: rgba(13, 13, 16, 0.75);
  transition: opacity 250ms ease;
}

.viewer-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.viewer-ui {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 2px 0;
  flex-wrap: wrap;
}

.viewer-ui .grow {
  flex: 1;
  min-width: 160px;
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  background: transparent;
  cursor: pointer;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(201, 164, 92, 0.9), rgba(255, 255, 255, 0.14));
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--accent);
}

.viewer-buttons {
  display: flex;
  gap: 6px;
}

.viewer-buttons button {
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  cursor: pointer;
}

.viewer-buttons button.active {
  color: var(--accent);
  border-color: rgba(201, 164, 92, 0.6);
}

.specs {
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
}

.specs div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.specs dt {
  color: var(--muted);
}

.specs dd {
  margin: 0;
  text-align: right;
}

.price {
  font-family: var(--serif);
  font-size: 34px;
  margin: 8px 0 2px;
}

.disclosure {
  color: var(--muted);
  font-size: 12.5px;
  margin: 10px 0 0;
}

/* ---------------------------------------------------------------- form */

.lead {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--panel);
}

.lead h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.lead p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12.5px;
}

.lead label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.lead input,
.lead textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.lead input:focus,
.lead textarea:focus {
  outline: none;
  border-color: rgba(201, 164, 92, 0.6);
}

.lead button {
  width: 100%;
}

.lead-status {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--accent);
}

.lead-status a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------------------------------------------------------------- licence */

.licence {
  padding: 80px 0 120px;
}

.licence-card {
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 28px;
}

.licence-code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 28px;
  letter-spacing: 0.04em;
  margin: 6px 0 4px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(201, 164, 92, 0.5);
  color: var(--accent);
}

.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--muted);
  word-break: break-all;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0 54px;
  color: var(--muted);
  font-size: 12.5px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .family-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .design-grid {
    grid-template-columns: 1fr;
  }
  .viewer {
    position: static;
  }
  .nav {
    gap: 16px;
  }
  .nav a:not(.cta) {
    display: none;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100vw - 32px);
  }
  .family-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding-bottom: 54px;
  }
}

