.grand-market-site { background: #060504; }

.grand-market-main {
  background: radial-gradient(circle at 50% 36%, rgba(136, 74, 31, .055), transparent 30%), #060504;
}

.grand-market-hero {
  min-height: clamp(350px, 44svh, 460px);
  display: grid;
  place-items: center;
  padding: 108px 24px 52px;
  background: linear-gradient(180deg, rgba(2, 2, 2, .08), rgba(3, 2, 1, .78)), radial-gradient(ellipse at 50% 62%, rgba(154, 86, 35, .15), transparent 45%), linear-gradient(145deg, #050403, #100c08 54%, #050403);
}

.grand-market-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1120px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(208, 167, 101, .34), transparent);
}

.grand-market-hero-copy {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  text-align: center;
}

.market-eyebrow {
  margin: 0;
  color: #aa8a63;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  line-height: 1.5;
  text-transform: uppercase;
}

.grand-market-hero h1 {
  margin: 0;
  font-size: clamp(58px, 7.2vw, 90px);
  line-height: .86;
}

.market-intro {
  max-width: 800px;
  margin: 26px auto 0;
  color: #e0d2bf;
  font-family: var(--display);
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.08;
}

.market-collection-nav {
  padding: 24px 0 22px;
  border-bottom: 1px solid rgba(208, 167, 101, .2);
}

.market-collection-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(20px, 3vw, 42px);
}

.market-collection-controls button {
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #9b8f80;
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1;
  cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}

.market-collection-controls button:hover,
.market-collection-controls button:focus-visible,
.market-collection-controls button[aria-pressed="true"] {
  border-color: rgba(216, 173, 105, .58);
  color: #ead5b4;
}

.market-ledger {
  padding: clamp(28px, 4vw, 44px) 0 clamp(56px, 7vw, 88px);
}

.market-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  padding: 0;
}

.market-product-grid[data-view="hoard"] {
  grid-template-columns: minmax(280px, 380px);
}

.market-selection {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(208, 167, 101, .22);
  background: linear-gradient(135deg, transparent 0 48%, rgba(208, 167, 101, .035) 48% 48.4%, transparent 48.4% 100%), linear-gradient(150deg, rgba(25, 20, 15, .72), rgba(8, 7, 6, .96));
  transition: border-color .35s ease, background .35s ease, transform .35s ease;
}

.market-selection:hover,
.market-selection:focus-within {
  border-color: rgba(225, 183, 115, .48);
  background: linear-gradient(135deg, transparent 0 48%, rgba(225, 183, 115, .06) 48% 48.4%, transparent 48.4% 100%), linear-gradient(150deg, rgba(37, 27, 18, .78), rgba(9, 8, 7, .98));
  transform: translateY(-3px);
}

.market-selection[hidden] { display: none; }

.market-selection-mark {
  position: relative;
  min-height: 156px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(208, 167, 101, .16);
  background: repeating-linear-gradient(90deg, transparent 0 34px, rgba(208, 167, 101, .028) 34px 35px), repeating-linear-gradient(0deg, transparent 0 34px, rgba(208, 167, 101, .028) 34px 35px), radial-gradient(circle, rgba(139, 99, 54, .12), transparent 60%), #0a0806;
}

.market-selection-mark::before,
.market-selection-mark::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(208, 167, 101, .13);
  transform: rotate(45deg);
}

.market-selection-mark::after {
  width: 64px;
  height: 64px;
  border-color: rgba(208, 167, 101, .08);
}

.market-selection-mark span {
  position: relative;
  z-index: 1;
  color: rgba(226, 198, 153, .7);
  font-family: var(--roman);
  font-size: 13px;
  letter-spacing: .24em;
}

.market-selection-mark img {
  width: 100%;
  height: 156px;
  display: block;
  object-fit: cover;
}

.market-selection-mark.has-image::before,
.market-selection-mark.has-image::after,
.market-selection-mark.has-image > span {
  display: none;
}

@media (min-width: 701px) {
  .grand-market-hero h1 { white-space: nowrap; }
}

.market-selection-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
}

.market-selection-meta { min-height: 38px; }

.market-product-kicker,
.market-hoard-mark {
  margin: 0;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.market-product-kicker { color: #8d795f; }

.market-hoard-mark {
  margin-top: 8px;
  color: #c6a16a;
  font-family: var(--roman);
  letter-spacing: .12em;
}

.market-selection h3 {
  margin: 18px 0 0;
  color: #d8cbb8;
  font-size: clamp(30px, 3vw, 40px);
  line-height: .96;
  text-transform: uppercase;
}

.market-selection-copy > p:not(.market-product-kicker):not(.market-hoard-mark) {
  margin: 18px 0 0;
  color: #979087;
  font-size: 15px;
  line-height: 1.65;
}

.market-selection-copy > a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  border-bottom: 1px solid rgba(208, 167, 101, .32);
  color: var(--bright-gold);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .25s ease, border-color .25s ease;
}

.market-selection-copy > a:hover,
.market-selection-copy > a:focus-visible {
  border-color: rgba(240, 207, 145, .72);
  color: #fff0ce;
}

.market-empty-state {
  min-height: 280px;
  margin-top: 42px;
  display: grid;
  place-content: center;
  padding: 48px 24px;
  border: 1px solid rgba(208, 167, 101, .16);
  background: linear-gradient(150deg, rgba(18, 15, 12, .52), rgba(8, 7, 6, .72));
  text-align: center;
}

.market-empty-state[hidden] { display: none; }

.market-empty-title {
  margin: 0;
  color: #bdad96;
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 42px);
}

.market-empty-copy {
  max-width: 520px;
  margin: 12px auto 0;
  color: #817a71;
  font-size: 15px;
  line-height: 1.65;
}

.market-disclosure {
  padding: 30px 0;
  border-top: 1px solid rgba(208, 167, 101, .16);
  border-bottom: 1px solid rgba(208, 167, 101, .16);
}

.market-disclosure p {
  max-width: 880px;
  margin: 0 auto;
  color: #736d65;
  font-size: 12px;
  letter-spacing: .045em;
  line-height: 1.7;
  text-align: center;
}

.market-disclosure p + p { margin-top: 3px; }

@media (max-width: 900px) {
  .grand-market-hero {
    min-height: 400px;
    padding: 106px 24px 54px;
  }

  .market-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-selection:last-child { grid-column: 1 / -1; }
  .market-selection:last-child .market-selection-mark { min-height: 132px; }
}

@media (max-width: 600px) {
  .grand-market-hero {
    min-height: auto;
    padding: 102px 18px 46px;
  }

  .grand-market-hero h1 {
    margin-top: 0;
    font-size: clamp(52px, 16vw, 72px);
  }

  .market-intro {
    margin-top: 24px;
    font-size: clamp(27px, 8.3vw, 34px);
  }

  .market-collection-nav { padding: 22px 0 20px; }

  .market-collection-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 20px;
  }

  .market-collection-controls button { font-size: 20px; }
  .market-ledger { padding: 28px 0 62px; }

  .market-product-grid {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .market-product-grid[data-view="hoard"] { grid-template-columns: 1fr; }

  .market-selection,
  .market-selection:last-child {
    min-height: 430px;
    grid-column: auto;
  }

  .market-selection-mark,
  .market-selection:last-child .market-selection-mark { min-height: 124px; }
  .market-selection-mark img { height: 124px; }
  .market-selection-copy { padding: 26px 22px 24px; }
  .market-disclosure p { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .market-selection { transition: none; }

  .market-selection:hover,
  .market-selection:focus-within { transform: none; }
}
