:root {
  color-scheme: dark;
  --bg: #070707;
  --panel: #141313;
  --panel-2: #1e1d1b;
  --text: #f4f0e8;
  --muted: #aaa39a;
  --line: rgba(244, 240, 232, 0.14);
  --red: #b92d28;
  --bone: #d9d0be;
  --green: #2ee66b;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(7, 7, 7, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-lockup img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  font-size: 0.9rem;
  color: var(--muted);
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(22px, 5vw, 72px) 88px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.95), rgba(7, 7, 7, 0.72) 44%, rgba(7, 7, 7, 0.98)),
    url("/assets/skinny-preview.png") center right 12% / min(72vw, 980px) no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  z-index: -1;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-mark {
  position: absolute;
  top: 92px;
  right: clamp(18px, 5vw, 74px);
  width: min(20vw, 180px);
  opacity: 0.62;
  filter: drop-shadow(0 20px 38px var(--shadow));
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(4.6rem, 16vw, 12rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--bone);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.viewer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.tab {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--text);
  background: rgba(244, 240, 232, 0.08);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.button.primary {
  background: var(--text);
  color: var(--bg);
}

.button.secondary:hover,
.tab:hover,
.tab.is-active {
  border-color: rgba(244, 240, 232, 0.34);
  background: rgba(244, 240, 232, 0.14);
}

.button.full {
  width: 100%;
}

.hero-status {
  position: absolute;
  left: clamp(22px, 5vw, 72px);
  right: clamp(22px, 5vw, 72px);
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-status span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(7, 7, 7, 0.56);
}

section {
  padding: clamp(54px, 9vw, 110px) clamp(22px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2.1rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.claim-section p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.artifact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
}

.viewer-shell,
.artifact-details,
.collection-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px var(--shadow);
}

.viewer-shell {
  padding: 12px;
}

.viewer-tabs {
  margin-bottom: 12px;
}

.tab {
  min-width: 108px;
}

.viewer-stage,
.metadata-panel {
  min-height: 540px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #000;
  overflow: hidden;
}

.viewer-stage img {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: contain;
}

model-viewer {
  width: 100%;
  height: 540px;
  background: #000;
}

.model-fallback {
  position: absolute;
  left: -9999px;
}

.metadata-panel {
  margin: 0;
  padding: 18px;
  place-items: start;
  white-space: pre-wrap;
  overflow: auto;
  color: var(--bone);
  font-size: 0.85rem;
}

.is-hidden {
  display: none;
}

.artifact-details {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.artifact-details > div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-label {
  color: var(--muted);
  font-size: 0.76rem;
}

.artifact-details strong {
  line-height: 1.25;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.collection-card {
  overflow: hidden;
}

.collection-card img,
.empty-art {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  object-fit: contain;
  background: #000;
}

.empty-art {
  color: var(--muted);
  font-size: 4rem;
  font-weight: 900;
}

.collection-card div:not(.empty-art) {
  padding: 16px;
}

.collection-card h3 {
  margin-bottom: 8px;
}

.collection-card p {
  color: var(--muted);
  line-height: 1.55;
}

.collection-card.muted {
  opacity: 0.76;
}

.claim-section {
  max-width: 940px;
}

.claim-section h2 {
  max-width: 850px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding-top: 72px;
    padding-bottom: 44px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 7, 7, 0.62), rgba(7, 7, 7, 0.96) 58%, var(--bg)),
      url("/assets/skinny-preview.png") top 18% center / 118vw no-repeat;
  }

  .hero-mark {
    top: 82px;
    width: 118px;
  }

  .hero-status {
    position: static;
    margin-top: 28px;
  }

  .artifact-layout,
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .viewer-stage,
  .metadata-panel,
  model-viewer {
    min-height: 360px;
    height: 360px;
  }

  footer {
    flex-direction: column;
  }
}
