:root {
  --bg: #0e0f13;
  --ink: #f4f5f7;
  --muted: #a6adba;
  --faint: #727a89;
  --line: #262a34;
  --panel: #16181f;
  --panel-2: #1c1f28;
  --card: #171a21;
  --accent: #5b9dff;
  --accent-soft: rgba(91, 157, 255, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -24px rgba(0, 0, 0, 0.7);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
.eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.brand-link { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.brand-link:hover { color: var(--ink); }
.brand-logo { height: 22px; width: auto; vertical-align: middle; opacity: 0.7; }
.brand-logo-sm { height: 16px; width: auto; vertical-align: middle; opacity: 0.5; margin-right: 4px; }
.brand-link:hover .brand-logo, .brand-link:hover .brand-logo-sm { opacity: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Listing page ─────────────────────────────────────── */

.lib-head {
  border-bottom: 1px solid var(--line);
  background: rgba(14, 15, 19, 0.75);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.lib-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 0; }
.lib-head .count { color: var(--muted); font-size: 13px; font-weight: 600; }

.search { max-width: 320px; }
.search .form-control { background: var(--panel); border-color: var(--line); color: var(--ink); }
.search .form-control::placeholder { color: var(--faint); }
.search .form-control:focus { background: var(--panel); color: var(--ink); border-color: var(--accent); box-shadow: 0 0 0 0.2rem rgba(91, 157, 255, 0.18); }

.filters .btn {
  --bs-btn-color: var(--muted);
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: #39404e;
  --bs-btn-hover-bg: transparent;
  --bs-btn-active-bg: var(--accent);
  --bs-btn-active-border-color: var(--accent);
  --bs-btn-active-color: #06122b;
  border-radius: 999px; font-size: 13px; font-weight: 600; padding: 5px 14px;
}

/* Job card */
.job-card { display: block; text-decoration: none; color: inherit; margin-bottom: 26px; cursor: pointer; }
.job-dealer { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); }
.job-brand { font-size: 12px; color: var(--faint); font-weight: 600; margin: 2px 0 10px; }
.job-thumb {
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.75);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  aspect-ratio: 615 / 840;
}
.job-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.job-card:hover .job-thumb { transform: translateY(-4px); box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.85); }
.job-card:hover .job-dealer { color: #fff; }

/* ─── Showcase page ────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 15, 19, 0.72);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 58px; }
.nav a.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.nav a.back svg { width: 16px; height: 16px; }
.nav a.back:hover { color: var(--ink); }
.nav .spacer { flex: 1; }

.pager { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.pager button {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.pager button:hover { border-color: #39404e; }
.pager svg { width: 15px; height: 15px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: saturate(108%); transform: scale(1.06);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,15,19,.92) 0%, rgba(14,15,19,.72) 34%, rgba(14,15,19,.30) 62%, rgba(14,15,19,.55) 100%);
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px;
  align-items: center; min-height: 440px; padding-top: 44px; padding-bottom: 44px;
}
.hero-copy h1 { font-size: 44px; line-height: 1.04; letter-spacing: -0.025em; margin: 14px 0 0; font-weight: 800; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border-radius: 999px; font-weight: 650; font-size: 13.5px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--ink);
}
.chip.denom { background: #fff; color: #0e0f13; border-color: #fff; font-weight: 850; letter-spacing: 0.01em; }

.cover-card {
  justify-self: center; width: 100%; max-width: 360px; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(1.4deg); background: #fff;
}
.cover-card img { display: block; width: 100%; height: auto; }

/* Gallery grid */
section { padding: 56px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sec-head h2 { font-size: 22px; margin: 8px 0 0; letter-spacing: -0.02em; font-weight: 750; }
.sec-head p { color: var(--muted); font-size: 14px; margin: 6px 0 0; white-space: nowrap; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.piece {
  grid-column: span 6; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 34px -22px rgba(0, 0, 0, 0.8);
}
.piece.small { grid-column: span 3; }
.piece.cardpair { grid-column: span 12; }
.piece .frame { position: relative; background: #0b0c10; padding: 20px; display: grid; place-items: center; }
.piece .frame img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8); }
.piece .foldline { position: absolute; top: 20px; bottom: 20px; left: 50%; border-left: 1px dashed rgba(255, 255, 255, 0.22); }
.frame-pair { grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.frame-pair figure { margin: 0; width: 100%; }
.frame-pair figure img { width: 100%; }
.frame-pair figcaption { margin-top: 9px; text-align: center; font-size: 11.5px; font-weight: 650; color: var(--faint); }
.piece .cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.piece .cap .t { font-weight: 700; font-size: 14px; }
.piece .cap .s { color: var(--faint); font-size: 12.5px; font-weight: 600; }
@media (max-width: 820px) { .piece, .piece.small { grid-column: span 12; } }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); color: #cdd3dd; cursor: default;
}
.tag:hover { border-color: #39404e; color: #fff; }
.tag.lead { background: var(--accent-soft); border-color: transparent; color: #bcd6ff; }

footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--faint); font-size: 13px; }

/* ─── Tour landing ─────────────────────────────────────── */

.tour-landing {
  min-height: 100vh; display: grid; place-items: center;
}
.tour-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px; text-align: center; max-width: 440px;
}
.tour-card h1 { font-size: 32px; font-weight: 800; margin: 12px 0 16px; }
.tour-card p { color: var(--muted); font-size: 15px; }

/* ─── Responsive ───────────────────────────────────────── */

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .cover-card { max-width: 300px; margin-top: 8px; transform: none; }
  .hero-copy h1 { font-size: 34px; }
}
