* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px Georgia, 'Times New Roman', serif; color: #402b1d; background: #e4d9c9; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #164e66; outline-offset: 4px; }
.market-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  background: #dce8f2;
}
.market-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.market-header {
  position: absolute;
  z-index: 3;
  top: 3.6%;
  right: 2.2%;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 30px);
  font: 500 clamp(14px, 1.05vw, 21px) system-ui, sans-serif;
}
.market-brand { display: block; line-height: 0; width: clamp(110px, 8.6vw, 164px); }
.market-brand img { width: 100%; height: auto; }
.market-nav { display: flex; gap: clamp(14px, 2.7vw, 45px); padding-left: 1.7vw; border-left: 1px solid #ffffff8c; }
.market-nav a:hover, .market-footer a:hover, .market-detail-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.market-intro { position: absolute; z-index: 2; top: 7.5%; left: 6.1%; width: min(42%, 720px); }
.market-intro h1 {
  margin: 0;
  font: italic 400 clamp(39px, 3.45vw, 76px)/1.03 Georgia, serif;
  letter-spacing: -.04em;
}
.market-intro p { margin: 8px 0 15px; font-size: clamp(17px, 1.28vw, 26px); font-style: italic; }
.market-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 27vw);
  min-height: 40px;
  padding: 4px 14px;
  border: 1px solid #fff9;
  border-radius: 24px;
  background: #fcfdfff0;
}
.market-search svg { flex: 0 0 21px; width: 21px; height: 21px; fill: none; stroke: #645547; stroke-width: 1.7; }
.market-search input { width: 100%; padding: 5px 0; border: 0; background: none; font-style: italic; }
.market-search input::placeholder { color: #544336; opacity: 1; }
.market-filters { display: flex; flex-wrap: wrap; gap: 2px clamp(8px, 1vw, 22px); margin-top: 5px; }
.market-filters button { padding: 5px 5px; border: 0; border-bottom: 1px solid transparent; background: transparent; }
.market-filters button[aria-pressed=true] { border-bottom-color: #705234; }
.market-filters button:hover { color: #17516a; }
.market-hologram {
  position: absolute;
  z-index: 3;
  top: 10%;
  right: 11%;
  width: clamp(75px, 10vw, 190px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px #ffffff70);
}
.market-hologram img {
  position: absolute;
  top: -50%;
  left: -752.35%;
  width: 982.94%;
  max-width: none;
  pointer-events: none;
}
.market-hologram:hover { filter: drop-shadow(0 0 14px #fff); }
.market-categories { position: absolute; inset: 0; pointer-events: none; }
.market-category {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--frontage);
  min-height: clamp(110px, 12vw, 215px);
  translate: -50% -64%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  pointer-events: auto;
}
.market-category::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 64%;
  width: 11px;
  height: 11px;
  translate: -50% -50%;
  border: 2px solid #75e4ff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #45a5c8;
}
.market-category::after {
  content: '';
  position: absolute;
  top: calc(64% + 6px);
  bottom: 7%;
  left: 50%;
  width: 1px;
  background: #fff;
  box-shadow: 0 0 3px #4c2c1e60;
}
.market-label {
  position: absolute;
  z-index: 1;
  top: 93%;
  left: 50%;
  translate: -50%;
  display: grid;
  place-items: center;
  width: max-content;
  max-width: 11ch;
  min-height: 39px;
  padding: 5px 10px;
  border: 1px solid #fff9;
  border-radius: 19px;
  color: #312317;
  background: #fbf4e9ee;
  box-shadow: 0 2px 8px #50382926;
  font-size: clamp(13px, 1vw, 20px);
  line-height: 1.05;
  text-wrap: balance;
}
.market-category[data-id=agriculture] .market-label { max-width: none; border-color: #fff; background: #fff0c9; }
.market-category[data-id=technology] .market-label, .market-category[data-id=materials] .market-label { max-width: 15ch; }
.market-category[data-id=global] .market-label { left: calc(50% - 20px); }
.market-category[data-id=technology] .market-label { left: calc(50% + 20px); }
.market-category[data-id=global] .market-label, .market-category[data-id=craft] .market-label { max-width: none; }
.market-category:hover, .market-category:focus-visible { outline: 2px solid #fff3c7; outline-offset: 2px; box-shadow: 0 0 18px #fff2b790, inset 0 0 20px #fff2b748; }
.market-category:hover .market-label, .market-category:focus-visible .market-label { background: #fff7dc; border-color: #fff; }
.market-category[hidden], .market-empty[hidden] { display: none; }
.market-empty { position: absolute; z-index: 4; top: 41%; left: 6.1%; margin: 0; padding: 12px 16px; border-radius: 12px; background: #fffaf2; }
.market-empty button { border: 0; background: none; color: #124e6c; text-decoration: underline; }
.market-footer {
  position: absolute;
  bottom: 3.1%;
  left: 2%;
  right: 2%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.market-footer a {
  padding: 10px 16px;
  min-height: 42px;
  border: 1px solid #fff8;
  border-radius: 25px;
  background: #faf0dff2;
  box-shadow: 0 1px 5px #57382540;
}
#market-detail {
  width: min(520px, 90vw);
  max-height: 85svh;
  padding: 34px;
  border: 1px solid #e3d9c8;
  border-radius: 18px;
  background: #fffaf4;
  color: #402b1d;
  box-shadow: 0 20px 65px #243b4d30;
}
#market-detail::backdrop { background: #20354570; }
.market-close { position: absolute; top: 9px; right: 14px; border: 0; background: none; font-size: 28px; }
.market-eyebrow { color: #695549; font: 12px system-ui, sans-serif; letter-spacing: .11em; text-transform: uppercase; }
#market-detail h2 { margin: 12px 0; font-weight: 400; font-size: 32px; line-height: 1.1; }
#market-detail-description { font-size: 19px; line-height: 1.5; }
.market-detail-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; color: #185471; }
@media (max-width: 980px) {
  .market-stage { display: flex; flex-direction: column; aspect-ratio: auto; min-height: 100svh; background: #f4eddf; }
  .market-backdrop { position: static; order: 2; aspect-ratio: 16/9; height: auto; object-fit: cover; }
  .market-header { position: static; order: 0; justify-content: space-between; padding: 15px 5%; font-size: 13px; }
  .market-nav { gap: 12px; padding-left: 0; border-left: 0; }
  .market-intro { position: static; order: 1; width: 100%; padding: 8px 5% 18px; }
  .market-intro h1 { max-width: calc(100% - 52px); font-size: clamp(34px, 7.5vw, 54px); }
  .market-hologram { top: 57px; right: 5%; width: 44px; }
  .market-search { width: min(100%, 490px); }
  .market-categories { position: static; order: 3; padding: 16px 5%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .market-category { position: relative; inset: auto; width: 100%; translate: none; min-height: 48px; }
  .market-category::before, .market-category::after { display: none; }
  .market-label { position: static; translate: none; width: 100%; max-width: none; min-height: 48px; font-size: 15px; border-radius: 9px; }
  .market-category[data-id] .market-label { max-width: none; }
  .market-category:hover, .market-category:focus-visible { outline-color: #164e66; }
  .market-empty { position: static; order: 4; margin: 0 5%; }
  .market-footer { position: static; order: 5; padding: 10px 5% 20px; margin-top: auto; font-size: 14px; }
}

.market-intro h1{font-family:Didot, 'Bodoni MT', 'Hoefler Text', Baskerville, Palatino, 'Times New Roman', serif;font-size:clamp(3rem, 4.65vw, 5rem);line-height:.95}
@media (max-width: 820px) {.market-intro h1{font-size:clamp(2.15rem, 6.8vw, 3.55rem)}}
@media (max-width: 480px) {.market-intro h1{font-size:clamp(1.85rem, 7.1vw, 2.15rem)}}
a.market-category{text-align:center;color:inherit;text-decoration:none}

.market-category[data-id="agriculture"]{cursor:default}
