/* ═══════════════════════════════════════════════
   THE MERCHANTS LAB — Global Stylesheet
   Palette: Obsidian · Copper · Gold · Cream · Ink
═══════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,600&family=Instrument+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap");

:root {
  --obsidian: #0b0907;
  --ink: #141008;
  --deep: #1c1610;
  --copper: #b87333;
  --copper-lt: #cc8f52;
  --gold: #d4a843;
  --gold-lt: #e8c06a;
  --cream: #f8f4ee;
  --sand: #ede5d6;
  --fog: #c8bfb0;
  --muted: #7a7060;
  --white: #ffffff;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 0.68, 0, 1.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--obsidian);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--obsidian);
}
::-webkit-scrollbar-thumb {
  background: var(--copper);
  border-radius: 3px;
}

/* ── Selection ── */
::selection {
  background: var(--copper);
  color: var(--cream);
}

/* ════════════════════════
   NAVIGATION
════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 56px;
  background: rgba(11, 9, 7, 0.88);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(184, 115, 51, 0.12);
  transition: background 0.3s;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav__mark {
  width: 38px;
  height: 38px;
}

.nav__wordmark {
  font-family: var(--font-display);
  line-height: 1;
}

.nav__wordmark-top {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
}

.nav__wordmark-main {
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
  display: block;
  margin-top: 1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin-left: auto;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--copper);
  transition: right 0.3s var(--ease);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--copper-lt);
}
.nav__links a:hover::after,
.nav__links a.active::after {
  right: 0;
}

.nav__cta {
  margin-left: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 24px;
  background: var(--copper);
  color: var(--cream);
  transition:
    background 0.2s,
    color 0.2s;
}

.nav__cta:hover {
  background: var(--gold);
  color: var(--ink);
}

/* Mobile hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
  margin-left: auto;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(11, 9, 7, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 800;
}

.nav__mobile.open {
  display: flex;
}
.nav__mobile a {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--cream);
  transition: color 0.2s;
}
.nav__mobile a:hover {
  color: var(--gold);
}

/* ════════════════════════
   PAGE HERO
════════════════════════ */
.page-hero {
  padding-top: var(--nav-h);
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 60% 30%,
    rgba(184, 115, 51, 0.1) 0%,
    transparent 65%
  );
}

.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
  width: 100%;
}

.page-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-hero__eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--copper);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 80px);
  font-weight: 700;
  line-height: 1;
  color: var(--cream);
}

.page-hero__title em {
  font-style: italic;
  color: var(--gold);
}

.page-hero__sub {
  margin-top: 20px;
  max-width: 540px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(248, 244, 238, 0.5);
}

/* ════════════════════════
   LAYOUT
════════════════════════ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}

.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--ink);
}
.section--cream {
  background: var(--cream);
}
.section--deep {
  background: var(--deep);
}

.section__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section__label::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--copper);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cream);
}

.section--cream .section__title {
  color: var(--ink);
}
.section--cream .section__label {
  color: var(--copper);
}

.section__sub {
  margin-top: 16px;
  max-width: 520px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(248, 244, 238, 0.45);
}

.section--cream .section__sub {
  color: var(--muted);
}

.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 115, 51, 0.2),
    transparent
  );
}

/* ════════════════════════
   BUTTONS
════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  transition: all 0.25s var(--ease);
  font-weight: 700;
}

.btn--primary {
  background: var(--copper);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--gold);
  color: var(--ink);
}

.btn--outline {
  border: 1px solid var(--copper);
  color: var(--copper);
}
.btn--outline:hover {
  background: var(--copper);
  color: var(--cream);
}

.btn--dark {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}
.btn--dark:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.btn--cream {
  background: var(--cream);
  color: var(--ink);
}
.btn--cream:hover {
  background: var(--gold);
}

/* Arrow */
.btn__arrow {
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ════════════════════════
   CARDS
════════════════════════ */
.card {
  border: 1px solid rgba(184, 115, 51, 0.15);
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.card:hover {
  border-color: rgba(184, 115, 51, 0.4);
  background: rgba(184, 115, 51, 0.04);
  transform: translateY(-4px);
}

.card:hover::before {
  transform: scaleX(1);
}

.card--cream {
  background: #fff;
  border-color: rgba(184, 115, 51, 0.12);
}
.card--cream:hover {
  background: #fff;
}

/* ════════════════════════
   TAGS / BADGES
════════════════════════ */
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(184, 115, 51, 0.35);
  color: var(--copper);
  display: inline-block;
}

.badge {
  background: var(--copper);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  display: inline-block;
}

/* ════════════════════════
   ANIMATIONS
════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes shimmer {
  from {
    background-position: 200% center;
  }
  to {
    background-position: -200% center;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════
   FOOTER
════════════════════════ */
.footer {
  background: #050403;
  border-top: 1px solid rgba(184, 115, 51, 0.12);
}

.footer__top {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer__brand-desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.3);
  max-width: 260px;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 24px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s;
}
.footer__links a:hover {
  color: var(--copper-lt);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.18);
}

.footer__socials {
  display: flex;
  gap: 20px;
}

.footer__socials a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s;
}

.footer__socials a:hover {
  color: var(--copper);
}

/* ════════════════════════
   RESPONSIVE
════════════════════════ */
@media (max-width: 1024px) {
  .container,
  .page-hero__inner {
    padding: 0 32px;
  }
  .nav {
    padding: 0 32px;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .container,
  .page-hero__inner {
    padding: 0 20px;
  }
  .nav {
    padding: 0 20px;
  }
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .section {
    padding: 64px 0;
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
