/* Explore (the reference's library layout): a centred starfield hero with a vine strip, filter tabs
   and a search box, a strip of totals, then a grid of coin cards. Each card shows what its company is
   making: a still of its town, a findings board or a page under construction. All sample data. */

.ex {
  background: var(--page);
  color: var(--text);
}

/* Hero */
.ex-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: 152px;
  padding-bottom: 56px;
  background: #000;
  text-align: center;
}
@media (min-width: 1024px) {
  .ex-hero { padding-top: 176px; }
}
.ex-stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #000 url(../assets/6154246d314fea2001bff264427e012d.png) center top / max(100%, 1100px) auto no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
}
.ex-hero-in {
  display: grid;
  justify-items: center;
  gap: 24px;
}
.ex-title {
  display: flex;
  flex-direction: column;
  margin: 0;
  text-wrap: balance;
}
.ex-title-2 {
  color: var(--text-3);
}
.ex-lede {
  max-width: 620px;
  margin: 0;
  color: var(--text-2);
  text-wrap: pretty;
}
.ex-note {
  display: inline-flex;
  padding: 4px 12px;
  background: var(--surface-2);
  color: var(--copper-400);
  text-transform: uppercase;
  clip-path: var(--px-notch);
}
.ex-vine {
  width: 100%;
  height: 56px;
  margin-top: 16px;
  background: var(--accent);
  -webkit-mask-image: url(../assets/dc10a65a8b296c044968ab9adb3db380.png);
  mask-image: url(../assets/dc10a65a8b296c044968ab9adb3db380.png);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Tabs and search */
.ex-bar {
  position: relative;
  z-index: 45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  border-bottom: 1px solid var(--surface-2);
}
.ex-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ex-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: var(--px-notch);
}
.ex-tab:hover {
  color: #fff;
}
.ex-tab[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}
.ex-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ex-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 300px);
  padding: 0 14px;
  background: var(--surface);
  clip-path: var(--px-notch);
}
.ex-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  outline: 0;
}
.ex-search input::placeholder {
  color: var(--text-3);
}
.ex-search:focus-within {
  box-shadow: inset 0 0 0 2px var(--accent);
}

/* Totals */
.ex-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding-block: 24px 8px;
}
.ex-total {
  display: grid;
  gap: 4px;
}
.ex-total b {
  font-weight: 400;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ex-total span {
  color: var(--text-3);
  text-transform: uppercase;
}

/* Grid of cards */
.ex-grid-sec {
  padding-block: 24px 96px;
}
.ex-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
@media (min-width: 720px) {
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .ex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ex-empty {
  margin: 0;
  padding: 48px 0;
  color: var(--text-3);
  text-align: center;
}
.ex-card {
  position: relative;
  z-index: 45;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 12px;
}
.ex-card > .pframe {
  color: var(--surface-2);
}
.ex-card:hover > .pframe,
.ex-card:focus-within > .pframe {
  color: var(--accent);
}
.ex-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0b0a09;
}
.ex-media > *,
.ex-media .bv {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  min-height: 0;
}
.ex-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  background: rgba(11, 10, 9, 0.88);
  color: #fff;
  text-transform: uppercase;
  clip-path: var(--px-notch);
}
.ex-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  animation: cs-pulse 1.2s steps(2, end) infinite;
}
.ex-dot.is-new {
  background: #fff;
}
.ex-dot.is-off {
  background: var(--stone-500);
  animation: none;
}
.ex-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px 20px 22px;
  background: var(--surface);
}
.ex-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.ex-tick {
  margin: 0;
  color: var(--accent);
}
.ex-kind {
  padding: 2px 8px;
  background: var(--surface-2);
  color: var(--text-2);
  text-transform: uppercase;
  clip-path: var(--px-notch);
}
.ex-sub {
  margin: 0;
  color: var(--text-3);
}
.ex-mission {
  margin: 0;
  color: #fff;
  text-wrap: pretty;
}
.ex-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--surface-2);
}
.ex-stats div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: var(--surface);
}
.ex-stats dt {
  color: var(--text-3);
  text-transform: uppercase;
}
.ex-stats dd {
  margin: 0;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ex-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* Thumbnail: a research company's findings board (starts below the status badge) */
.ex-research {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 44px 16px 0;
  background: #0b0a09;
}
.ex-mini-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-3);
  text-transform: uppercase;
}
.ex-research ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ex-research li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
}
.ex-research li span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ex-flag {
  justify-self: start;
  padding: 1px 6px;
  background: var(--surface-2);
  color: #fff;
  text-transform: uppercase;
  clip-path: var(--px-notch);
}
.ex-flag.is-hot {
  background: var(--accent);
}
.ex-flag.is-work {
  animation: ex-work 1.4s steps(2, end) infinite;
}
@keyframes ex-work {
  50% { background: var(--accent); }
}

/* Thumbnail: a site company's page under construction (starts below the status badge) */
.ex-site {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  padding: 44px 14px 14px;
  background: #0b0a09;
}
.ex-site-url {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
}
.ex-site-url i {
  width: 6px;
  height: 6px;
  background: var(--surface-2);
}
.ex-site-hero {
  position: relative;
  height: 64px;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 4px), var(--accent);
}
/* the hero's headline and button, so the block reads as a page */
.ex-site-hero::before,
.ex-site-hero::after {
  content: '';
  position: absolute;
  left: 12px;
}
.ex-site-hero::before {
  top: 12px;
  width: 52%;
  height: 10px;
  background: #fff;
  box-shadow: 0 14px 0 -2px rgba(255, 255, 255, 0.55);
}
.ex-site-hero::after {
  bottom: 10px;
  width: 22%;
  height: 12px;
  background: #0b0a09;
  clip-path: var(--px-notch);
}
.ex-site-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ex-site-row span:not(.bot) {
  background: var(--surface);
}
.ex-site-row span.is-todo {
  background: transparent;
  outline: 1px dashed var(--stone-600);
  outline-offset: -1px;
}
.ex-site-row span.is-now {
  animation: ex-build 2.6s steps(4, end) infinite;
}
@keyframes ex-build {
  0% { background: transparent; }
  100% { background: var(--surface); }
}
.ex-site-bot {
  position: absolute;
  right: 4px;
  bottom: 0;
}

/* Bottom call to action reuses the vine wreath (cta.css) */

@media (prefers-reduced-motion: reduce) {
  .ex-dot,
  .ex-flag.is-work,
  .ex-site-row span.is-now {
    animation: none;
  }
}

/* the coin's own colour: a small square before its ticker */
.ex-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  vertical-align: 0.12em;
  clip-path: var(--px-notch);
}

/* the Atlas: the sample worlds as islands, joined by their links */
.ex-atlas {
  display: grid;
  gap: 24px;
  padding-block: 32px 64px;
}
.ex-atlas-head {
  display: grid;
  gap: 12px;
  max-width: 70ch;
}
.ex-atlas-head h2,
.ex-atlas-head p {
  margin: 0;
}
.ex-atlas-head h2 {
  color: #fff;
}
.ex-atlas-map {
  position: relative;
  overflow: hidden;
  background: #0b0a09;
  clip-path: var(--px-notch);
}
.ex-atlas-map img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.ex-atlas-pin {
  position: absolute;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background: rgba(11, 10, 9, 0.88);
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  clip-path: var(--px-notch);
}
.ex-atlas-pin i {
  width: 8px;
  height: 8px;
}
.ex-atlas-pin:hover,
.ex-atlas-pin:focus-visible {
  background: var(--accent);
}
@media (min-width: 900px) {
  .ex-atlas-pin { display: inline-flex; }
}
.ex-atlas-tag {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 2px 8px;
  background: var(--surface-2);
  color: var(--text-3);
  text-transform: uppercase;
}
.ex-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .ex-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ex-links li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: var(--surface);
  clip-path: var(--px-notch);
}
.ex-links-pair {
  display: flex;
  gap: 8px;
  color: var(--text-3);
  text-transform: uppercase;
}
.ex-links-pair a {
  color: var(--copper-400);
}
.ex-links-pair a:hover {
  color: #fff;
}
.ex-links b {
  font-weight: 400;
  color: #fff;
}
.ex-links li > span:last-child {
  color: var(--text-2);
}

/* Interlinked's own company, read live from the engine (not a sample), above the sample coins */
.ex-house {
  position: relative;
  z-index: 45;
  display: block;
  margin-bottom: 28px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}
.ex-house > .pframe {
  color: var(--accent);
}
.ex-house-in {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  background: var(--surface);
}
.ex-house-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--copper-400);
  text-transform: uppercase;
}
.ex-house-title {
  color: #fff;
}
.ex-house-text {
  max-width: 720px;
  color: var(--text-2);
}
.ex-house-go {
  color: var(--accent);
  text-transform: uppercase;
}
.ex-house:hover .ex-house-go,
.ex-house:focus-visible .ex-house-go {
  color: #fff;
}
