:root {
  --bg: #050507;
  --panel: rgba(12, 13, 18, 0.94);
  --border: rgba(212, 175, 55, 0.26);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --ink: #f3f0e8;
  --muted: #969289;
  --gold: #d4af37;
  --gold-bright: #f7e39c;
  --cyan: #38bdf8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
}
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* DISTINCT TOP NAVIGATION BAR + HAMBURGER BUTTON */
header.site-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  background: rgba(6, 7, 10, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: max(0.62rem, env(safe-area-inset-top, 0.62rem)) max(1rem, env(safe-area-inset-right, 1rem)) 0.62rem max(1rem, env(safe-area-inset-left, 1rem));
}
.topbar-main {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 0.74rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.hamburger-btn:hover,
.hamburger-btn[aria-expanded="true"] {
  background: var(--gold);
  color: #050507;
  font-weight: 600;
}
.hamburger-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.hamburger-bars i {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger-btn[aria-expanded="true"] .hamburger-bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] .hamburger-bars i:nth-child(2) {
  opacity: 0;
}
.hamburger-btn[aria-expanded="true"] .hamburger-bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.brand-minimal {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.2vmin, 1.22rem);
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.brand-minimal span {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.top-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.top-nav-btns::-webkit-scrollbar { display: none; }

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.46rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(16, 18, 26, 0.9);
  color: var(--ink);
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-btn:hover,
.nav-btn.active {
  color: #050507;
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  font-weight: 600;
}
.nav-btn.founders-nav-pill {
  display: none;
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.16);
}
body.founders-unlocked .nav-btn.founders-nav-pill {
  display: inline-flex;
}

/* SLIDE-OUT HAMBURGER DRAWER (EVERY BUTTON IS A DEDICATED PAGE LINK; BOTTOM 2 REFLECT CURRENT PRODUCT) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(3, 4, 7, 0.74);
  backdrop-filter: blur(8px);
  display: none;
}
.drawer-backdrop.open { display: block; }

.nav-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(350px, 88vw);
  z-index: 100;
  background: #0b0c11;
  border-right: 1px solid var(--border);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.88);
  padding: max(1.1rem, env(safe-area-inset-top, 1.1rem)) 1.25rem max(1.4rem, env(safe-area-inset-bottom, 1.4rem));
  transform: translateX(-104%);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

.drawer-top-group {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}
.drawer-head strong {
  font-family: var(--serif);
  letter-spacing: 0.18em;
  font-size: 1.02rem;
  color: var(--gold-bright);
}
.drawer-close {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.64rem;
  padding: 0.32rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
}
.drawer-section-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.drawer-page-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.drawer-page-btn:hover,
.drawer-page-btn.active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.11);
  color: var(--gold-bright);
}
.drawer-page-btn small {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* BOTTOM TWO HAMBURGER BUTTONS: EDITIONS & AUDIO (REFLECTING CURRENT PRODUCT PAGE) */
.drawer-bottom-group {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.drawer-context-btn {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.78rem 0.9rem;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.18s ease;
}
.drawer-context-btn:hover,
.drawer-context-btn.active {
  border-color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.16);
}
.drawer-context-kicker {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.drawer-context-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.25;
}
.drawer-context-sub {
  font-size: 0.74rem;
  color: var(--muted);
}

/* PAGE CONTAINERS & TRADITIONAL CATALOGUE GRID */
.page-shell {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(5.8rem, 12dvh, 7.2rem) clamp(1rem, 4vw, 2.2rem) 3.5rem;
  flex: 1;
}
.page-kicker {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.6vmin, 3rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 0.85rem;
}
.page-lead {
  max-width: 660px;
  font-size: clamp(0.9rem, 1.9vmin, 1.02rem);
  line-height: 1.68;
  color: var(--muted);
  margin-bottom: 2rem;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.catalogue-card {
  display: flex;
  flex-direction: column;
  background: rgba(12, 13, 18, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.catalogue-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.72);
}
.catalogue-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  background: radial-gradient(circle at 50% 42%, rgba(212, 175, 55, 0.18), rgba(56, 189, 248, 0.08) 52%, #06070b 92%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  padding: 1.4rem;
}
.catalogue-thumb img {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
}
.catalogue-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.52rem;
  background: rgba(5, 5, 7, 0.82);
  border: 1px solid var(--border);
  color: var(--gold-bright);
  border-radius: 3px;
}
.catalogue-body {
  padding: 1.15rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.catalogue-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.catalogue-card-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.catalogue-card-desc {
  font-size: 0.84rem;
  line-height: 1.56;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.catalogue-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--gold-bright);
}

/* FOOTER & FOUNDERS EASTER EGG */
footer.minimal-footer {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 1.6rem clamp(1rem, 4vw, 2.2rem) 2.8rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.founders-hallmark {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(212, 175, 55, 0.34);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  padding: 0.22rem 0.48rem;
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
}
.founders-hallmark:hover,
.founders-hallmark.arming {
  color: var(--gold-bright);
  border-color: rgba(212, 175, 55, 0.35);
}

.founders-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(3, 4, 7, 0.82);
  backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(0.85rem, 3vw, 2rem);
  overflow-y: auto;
}
.founders-modal-backdrop.open { display: flex; }
.founders-vault-card {
  width: 100%;
  max-width: 660px;
  background: linear-gradient(165deg, rgba(14, 15, 21, 0.97) 0%, rgba(8, 9, 13, 0.99) 100%);
  border: 1px solid rgba(212, 175, 55, 0.52);
  border-radius: 4px;
  padding: clamp(1.25rem, 3.5vw, 2rem);
  color: var(--ink);
}
.founders-vault-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.founders-vault-kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.founders-close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
  cursor: pointer;
}
.founders-vault-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vmin, 2.2rem);
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.14;
  margin-bottom: 0.6rem;
}
.founders-vault-lead {
  font-size: 0.88rem;
  line-height: 1.66;
  color: #cbc6bc;
  margin-bottom: 1.1rem;
}
.founders-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}
.founders-spec-box {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 3px;
  padding: 0.75rem 0.85rem;
}
.founders-spec-box h4 {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.28rem;
}
.founders-spec-box p { font-size: 0.78rem; line-height: 1.5; color: var(--muted); }
.founders-cipher-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: rgba(5, 5, 7, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 3px;
  margin-bottom: 1rem;
}
.founders-cipher-code {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}
.founders-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.founders-btn {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.48rem 0.85rem;
  border-radius: 3px;
  border: 1px solid var(--gold);
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-bright);
  cursor: pointer;
  text-decoration: none;
}
.founders-btn:hover { background: var(--gold); color: #050507; font-weight: 600; }
.founders-btn.secondary {
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

@media (max-width: 760px) {
  .brand-minimal span { display: none; }
  .topbar-main { flex-wrap: wrap; }
  .top-nav-btns {
    width: 100%;
    padding-top: 0.38rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-btn { padding: 0.38rem 0.66rem; font-size: 0.58rem; }
  .page-shell { padding-top: 6.9rem; }
  .founders-spec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .hamburger-label { display: none; }
}
