/* The Aliens project homepage. Shared tokens come from styles.css. */

html:has(> body.project-body) { overflow-x: clip; }

.project-body {
  overflow-x: clip;
  background:
    radial-gradient(ellipse at 77% 18%, rgba(0, 93, 129, .15), transparent 35%),
    radial-gradient(ellipse at 20% 64%, rgba(0, 44, 69, .18), transparent 38%),
    linear-gradient(180deg, #05080d 0%, #070b11 54%, #05080d 100%);
}

.project-body .site-header,
.project-body .site-footer {
  width: min(100% - 72px, 1456px);
}

.project-body .site-header { min-height: 84px; }
.project-body .wordmark { font-size: 11px; }
.project-body .header-nav { gap: clamp(16px, 2.1vw, 30px); }

.project-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.project-nav-links a,
.project-nav-bot {
  color: #94a9b6;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.project-nav-links a:hover,
.project-nav-bot:hover { color: var(--cyan); }

.project-nav-bot {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(82, 221, 255, .32);
  color: var(--cyan);
}

.project-nav-bot span { margin-left: 8px; font-size: 13px; }

.project-main {
  position: relative;
  z-index: 1;
  width: min(100% - 72px, 1240px);
  margin-inline: auto;
}

.project-hero {
  position: relative;
  isolation: isolate;
  min-height: min(700px, calc(100svh - 84px));
  padding: clamp(54px, 7vw, 92px) 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, .78fr);
  align-items: center;
  gap: clamp(26px, 3.6vw, 50px);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 981px) {
  .project-hero {
    min-height: min(660px, calc(100svh - 84px));
    padding: clamp(40px, 4.5vw, 62px) 0 38px;
  }
}

.project-kicker,
.project-section-kicker,
.project-art-meta,
.collection-meta,
.collection-stat,
.prov-label,
.prov-index,
.provenance-details summary,
.project-footer-note,
.project-stat-label,
.project-note {
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-kicker,
.project-section-kicker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--cyan);
  font-size: 9px;
}

.project-kicker::before,
.project-section-kicker::before {
  width: 24px;
  height: 1px;
  display: inline-block;
  background: var(--cyan);
  content: "";
}

.project-hero h1 {
  margin: 30px 0 22px;
  color: var(--text);
  font-size: clamp(68px, 9vw, 118px);
  font-weight: 720;
  letter-spacing: -.078em;
  line-height: .88;
}

.project-hero h1 span { color: var(--cyan); }
.project-hero h1 .hero-title-prefix {
  color: var(--text);
  font-size: .68em;
  font-weight: 580;
  letter-spacing: .01em;
}
.project-hero h1 b { color: var(--cyan); font-weight: 500; }

.project-hero-tagline {
  margin: 0;
  color: #d4e1e8;
  font-size: clamp(20px, 2.1vw, 27px);
  letter-spacing: -.025em;
}

.project-hero-description {
  max-width: 510px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.project-hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.project-secondary-link {
  min-height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  color: #a8bbc6;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .11em;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.project-secondary-link:hover {
  border-color: var(--line-bright);
  color: var(--cyan);
  background: rgba(82, 221, 255, .035);
}

.project-secondary-link span { color: var(--cyan); font-size: 14px; }

.project-hero-copy,
.project-hero-art {
  position: relative;
  z-index: 1;
}

.project-hero-art {
  min-width: 0;
  min-height: clamp(460px, 42vw, 550px);
  margin: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.project-hero-atmosphere {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  overflow: hidden;
  pointer-events: none;
}

.project-hero-portal {
  position: absolute;
  top: 50%;
  left: calc(50% + 391px);
  display: block;
  width: max(106vw, 1380px);
  max-width: none;
  height: auto;
  opacity: .2;
  transform: translate(-63.5%, -52%);
  filter: brightness(.58) saturate(.8);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 72%, transparent 100%);
  pointer-events: none;
  user-select: none;
}

.hero-art-illustration {
  position: relative;
  z-index: 1;
  display: block;
  width: min(128%, 600px);
  max-width: 100%;
  max-height: clamp(420px, 35vw, 500px);
  object-fit: contain;
  object-position: center;
  transform: translateX(-4%);
  pointer-events: none;
  filter: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, rgba(0, 0, 0, .92) 82%, rgba(0, 0, 0, .56) 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 74%, rgba(0, 0, 0, .92) 82%, rgba(0, 0, 0, .56) 92%, transparent 100%);
  animation: none;
}

.project-stats {
  min-height: 88px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.project-stat {
  min-width: 0;
  padding: 21px 22px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-right: 1px solid var(--line);
}

.project-stat:first-child { padding-left: 0; }
.project-stat:last-child { border-right: 0; }
.project-stat-number { color: var(--cyan); font-size: 23px; letter-spacing: -.04em; }
.project-stat-label { color: #7f929f; font-size: 8px; line-height: 1.6; }

.project-section {
  padding: clamp(78px, 10vw, 128px) 0;
  border-bottom: 1px solid var(--line);
}

.project-section-heading {
  max-width: 710px;
  margin-bottom: 40px;
}

.project-section-heading h2 {
  margin: 19px 0 12px;
  color: var(--text);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 560;
  letter-spacing: -.065em;
  line-height: 1;
}

.project-section-heading h2 span { color: var(--cyan); }

#project .project-section-heading h2 { margin-bottom: 18px; }

.project-section-heading > p:last-child,
.project-section-heading > p.project-intro-copy {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

#project .project-section-heading > p.project-intro-copy {
  max-width: 610px;
  color: #a2b1ba;
  font-size: clamp(14px, 1.05vw, 15px);
  line-height: 1.8;
}

#project .project-section-heading > p.project-intro-copy--secondary {
  margin-top: clamp(14px, 1.5vw, 20px);
  color: #b3c1c9;
}

.project-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr);
  align-items: stretch;
  gap: clamp(38px, 7vw, 105px);
}

.project-intro-layout .project-section-heading { margin: 0; }

.project-values {
  align-self: stretch;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.project-value {
  min-height: 0;
  padding: clamp(18px, 2.2vw, 30px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(145, 184, 209, .13);
  color: #c5d3db;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.5;
  text-align: center;
}

.project-value::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(82, 221, 255, .65);
  content: "";
}

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

.collection-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(145, 184, 209, .18);
  background: linear-gradient(140deg, rgba(10, 17, 25, .96), rgba(6, 11, 17, .96));
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.collection-card:hover {
  transform: translateY(-3px);
  border-color: rgba(82, 221, 255, .42);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .25);
}

.collection-art-link {
  display: flex;
  color: inherit;
  text-decoration: none;
}

.collection-art-link:focus-visible,
.collection-title-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.collection-title-link {
  color: inherit;
  text-decoration: none;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.collection-title-link:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.collection-art {
  position: relative;
  height: clamp(280px, 30vw, 360px);
  overflow: hidden;
  border-bottom: 1px solid rgba(145, 184, 209, .16);
  background:
    linear-gradient(rgba(82, 221, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 221, 255, .045) 1px, transparent 1px),
    #080e15;
  background-size: 24px 24px;
}

.collection-art--pipe {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.collection-art--pipe img {
  width: min(100%, 340px);
  height: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  image-rendering: auto;
}

.collection-art--aof {
  display: grid;
  place-items: center;
}

.collection-art--aof img {
  width: min(100%, 340px);
  height: min(100%, 340px);
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: saturate(.76);
  transition: filter .3s ease;
}

.collection-card:hover .collection-art--aof img { filter: saturate(.9); }

.collection-art::before,
.collection-art::after {
  position: absolute;
  z-index: 1;
  width: 15px;
  height: 15px;
  border-color: var(--cyan);
  border-style: solid;
  content: "";
  pointer-events: none;
}

.collection-art::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.collection-art::after { right: 0; bottom: 0; border-width: 0 1px 1px 0; }

.collection-art-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 9px;
  border: 1px solid rgba(145, 184, 209, .22);
  color: #d1e1e9;
  background: rgba(5, 9, 14, .82);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .11em;
}

.collection-content { padding: 25px clamp(20px, 2.7vw, 32px) 26px; }

.collection-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #7f94a2;
  font-size: 8px;
}

.collection-meta span:first-child { color: var(--cyan); }
.collection-content h3 {
  margin: 20px 0 9px;
  color: var(--text);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 540;
  letter-spacing: -.055em;
}

.collection-content p {
  min-height: 54px;
  margin: 0;
  color: #9aaab5;
  font-size: 13px;
  line-height: 1.7;
}

.collection-stats {
  margin-top: 19px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.collection-stat {
  padding: 7px 9px;
  border: 1px solid rgba(145, 184, 209, .14);
  color: #8498a5;
  font-size: 7px;
}

.collection-link {
  min-height: 44px;
  margin-top: 20px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(82, 221, 255, .38);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.collection-link:hover { background: rgba(82, 221, 255, .08); border-color: var(--cyan); }
.collection-link span { font-size: 13px; }

.provenance-section { padding-top: clamp(78px, 9vw, 116px); }

.provenance-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr minmax(270px, .68fr);
  align-items: end;
  gap: 40px;
}

.provenance-heading > p:last-child { justify-self: end; }

.provenance-panel {
  position: relative;
  overflow: visible;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid rgba(82, 221, 255, .23);
  background:
    radial-gradient(ellipse at 50% 15%, rgba(0, 96, 133, .15), transparent 54%),
    rgba(6, 11, 17, .88);
}

.provenance-panel::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(105, 164, 190, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 164, 190, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

.provenance-panel > * { position: relative; z-index: 1; }

.provenance-topline {
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  color: #7f95a2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .13em;
}

.provenance-topline span:first-child { color: var(--cyan); }

.prov-parent {
  position: relative;
  z-index: 5;
  width: min(100%, 460px);
  min-height: 110px;
  margin: 26px auto 0;
  padding: 19px 22px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  border: 1px solid rgba(82, 221, 255, .56);
  background: linear-gradient(120deg, rgba(16, 38, 50, .92), rgba(8, 16, 23, .92));
  box-shadow: 0 0 34px rgba(82, 221, 255, .08);
}

.prov-label {
  grid-column: 1 / -1;
  color: var(--cyan);
  font-size: 8px;
}

.prov-parent h3,
.prov-child h3 { margin: 0; color: var(--text); font-weight: 550; letter-spacing: -.04em; }
.prov-parent h3 { font-size: 25px; }
.prov-child h3 { margin-top: 14px; font-size: 21px; }

.prov-number {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: #a6bdc8;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .09em;
}

.prov-parent .prov-number { color: var(--cyan); }

.prov-preview-wrap {
  position: relative;
  z-index: 1;
  width: fit-content;
}

.prov-preview-wrap:hover,
.prov-preview-wrap:focus-within { z-index: 20; }

.prov-preview-trigger {
  cursor: help;
  appearance: none;
  -webkit-appearance: none;
}

.prov-preview-trigger:focus-visible {
  outline: 1px solid var(--cyan-bright);
  outline-offset: 4px;
}

.prov-hovercard {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 30;
  width: min(292px, calc(100vw - 64px));
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  border: 1px solid rgba(82, 221, 255, .44);
  background: rgba(5, 12, 19, .98);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 24px rgba(82, 221, 255, .08);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.prov-hovercard--art {
  width: min(360px, calc(100vw - 52px));
  grid-template-columns: 1fr;
}
.prov-hovercard--parent {
  right: 0;
  left: auto;
  width: min(460px, calc(100vw - 52px));
  padding: 16px;
  gap: 10px;
}
.prov-branch--aof .prov-hovercard { right: 0; left: auto; }

.prov-hovercard img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  border: 1px solid rgba(82, 221, 255, .24);
  background: #080e14;
}

.prov-hovercard strong { font-size: 13px; font-weight: 550; line-height: 1.3; }
.prov-preview-copy { min-width: 0; display: grid; gap: 5px; }
.prov-preview-kicker { color: var(--cyan); font-family: var(--mono); font-size: 7px; letter-spacing: .12em; }
.prov-preview-detail { color: #91a4af; font-family: var(--mono); font-size: 7px; letter-spacing: .045em; line-height: 1.5; }
.prov-parent-inscription {
  max-height: 54vh;
  margin: 0;
  overflow: auto;
  color: #c6d3da;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prov-preview-wrap:hover .prov-hovercard,
.prov-preview-wrap:focus-within .prov-hovercard {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.prov-trunk {
  width: 1px;
  height: 36px;
  margin-inline: auto;
  background: linear-gradient(var(--cyan), rgba(82, 221, 255, .22));
}

.prov-children {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 28px;
}

.prov-children::before {
  position: absolute;
  top: 0;
  right: 24.5%;
  left: 24.5%;
  height: 1px;
  background: rgba(82, 221, 255, .4);
  content: "";
}

.prov-branch {
  position: relative;
  min-width: 0;
}

.prov-branch::before {
  position: absolute;
  top: -28px;
  left: 50%;
  width: 1px;
  height: 28px;
  background: rgba(82, 221, 255, .4);
  content: "";
}

.prov-child {
  position: relative;
  min-height: 175px;
  padding: 24px 24px 20px;
  border: 1px solid rgba(145, 184, 209, .19);
  background: rgba(7, 13, 20, .9);
}

.prov-child--rare,
.prov-child--cyan { border-color: rgba(82, 221, 255, .37); }
.prov-child .prov-label { color: #8ca3af; }
.prov-child--rare .prov-label,
.prov-child--cyan .prov-label { color: var(--cyan); }

.prov-child-meta {
  margin-top: 10px;
  color: #7f929f;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  line-height: 1.7;
}

.prov-child a {
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-decoration: none;
}

.prov-child a:hover { color: var(--cyan-bright); }

.bible-feature {
  margin-top: 0;
  padding: 17px;
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(145, 184, 209, .14);
  background: rgba(5, 9, 14, .62);
}

.prov-bible-connector {
  width: 1px;
  height: 22px;
  margin-inline: auto;
  background: rgba(82, 221, 255, .38);
}

.bible-thumbnail {
  position: relative;
  display: block;
  width: min(100%, 230px);
  aspect-ratio: 1;
  justify-self: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(82, 221, 255, .28);
  background: #d0d2d8;
  color: inherit;
  cursor: zoom-in;
  appearance: none;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.bible-thumbnail:hover,
.bible-thumbnail:focus-visible {
  z-index: 2;
  border-color: var(--cyan-bright);
  box-shadow: 0 0 35px rgba(82, 221, 255, .18);
}

.bible-thumbnail:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 4px;
}

.bible-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.bible-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  min-height: 34px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 9, 15, .88);
  color: var(--cyan-bright);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  opacity: 1;
}

.bible-feature h3 { margin: 8px 0 5px; color: var(--text); font-size: 20px; font-weight: 540; }
.bible-feature p { max-width: 620px; margin: 0; color: #899ba7; font-size: 13px; line-height: 1.75; }
.bible-feature .project-kicker { font-size: 7px; }
.bible-feature .project-kicker::before { width: 15px; }
.bible-feature .prov-child-meta { margin-top: 14px; }

@media (max-width: 1100px) {
  .bible-feature { grid-template-columns: 1fr; }
  .bible-thumbnail { width: min(100%, 260px); }
}

.bible-cta {
  width: fit-content;
  min-height: 41px;
  margin-top: 19px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(82, 221, 255, .34);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .1em;
  text-decoration: none;
}

.bible-cta:hover { background: rgba(82, 221, 255, .07); }

.bible-reader {
  position: fixed;
  inset: 50% auto auto 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  width: min(96vw, 1500px);
  max-width: none;
  height: min(94vh, 1120px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(82, 221, 255, .38);
  background: #070c12;
  color: var(--text);
  box-shadow: 0 24px 100px rgba(0, 0, 0, .65), 0 0 55px rgba(0, 158, 207, .12);
}

.bible-reader::backdrop { background: rgba(1, 4, 8, .9); backdrop-filter: blur(7px); }

.bible-reader-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.bible-reader-header {
  min-height: 78px;
  padding: 15px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(145, 184, 209, .15);
  background: #080e15;
}

.bible-reader-kicker {
  margin: 0 0 6px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
}

.bible-reader-header h2 { margin: 0; color: var(--text); font-size: 19px; font-weight: 520; }
.bible-reader-actions { display: flex; align-items: center; gap: 8px; }
.bible-zoom-controls { display: inline-flex; align-items: center; border: 1px solid rgba(145, 184, 209, .2); }
.bible-zoom-controls button,
.bible-reader-close,
.bible-reader-link {
  min-height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #a9bbc6;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-decoration: none;
}

.bible-zoom-controls button { min-width: 34px; color: var(--cyan-bright); cursor: pointer; font-size: 16px; }
.bible-zoom-controls button:hover,
.bible-reader-close:hover,
.bible-reader-link:hover { background: rgba(82, 221, 255, .08); color: var(--cyan-bright); }
.bible-zoom-controls span { min-width: 46px; color: #8296a3; text-align: center; font-family: var(--mono); font-size: 8px; }
.bible-reader-close { border: 1px solid rgba(145, 184, 209, .2); cursor: pointer; }
.bible-reader-close span { color: var(--cyan); font-size: 15px; }
.bible-reader-link { border: 1px solid rgba(82, 221, 255, .25); color: var(--cyan); }

.bible-reader-stage {
  min-height: 0;
  overflow: auto;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overscroll-behavior: contain;
  background:
    linear-gradient(rgba(105, 164, 190, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 164, 190, .025) 1px, transparent 1px),
    #05090e;
  background-size: 30px 30px;
}

.bible-reader-image {
  width: min(100%, 1120px);
  height: auto;
  flex: none;
  display: block;
  background: #d0d2d8;
  box-shadow: 0 12px 55px rgba(0, 0, 0, .5);
}

.bible-reader-hint {
  margin: 0;
  padding: 9px 19px 11px;
  border-top: 1px solid rgba(145, 184, 209, .12);
  color: #708491;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .1em;
  text-align: right;
}

.provenance-details {
  margin-top: 14px;
  border-top: 1px solid rgba(145, 184, 209, .13);
}

.provenance-details summary {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #90a5b1;
  cursor: pointer;
  font-size: 8px;
  list-style: none;
}

.provenance-details summary::-webkit-details-marker { display: none; }
.provenance-details summary::after { color: var(--cyan); content: "+"; font-size: 16px; }
.provenance-details[open] summary::after { content: "−"; }

.provenance-data {
  padding: 5px 0 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.provenance-data article {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(145, 184, 209, .12);
  background: rgba(4, 8, 13, .5);
}

.provenance-data h4 {
  margin: 0 0 10px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.provenance-data p {
  margin: 6px 0 0;
  color: #8295a1;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.provenance-data strong { color: #d0dce2; font-weight: 500; }

.ecosystem-section {
  padding: clamp(82px, 9vw, 124px) 0;
  border-bottom: 1px solid var(--line);
}

.ecosystem-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ecosystem-heading > span,
.ecosystem-copy-kicker,
.ecosystem-art-coordinate,
.ecosystem-art figcaption,
.ecosystem-product-meta,
.ecosystem-product-link {
  font-family: var(--mono);
  letter-spacing: .1em;
}

.ecosystem-heading > span {
  color: #718593;
  font-size: 8px;
}

.ecosystem-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(82, 221, 255, .34);
  background: linear-gradient(135deg, rgba(9, 18, 27, .98), rgba(5, 10, 16, .98));
  box-shadow: 0 18px 70px rgba(0, 0, 0, .16);
}

.ecosystem-panel::before {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(94, 153, 179, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 153, 179, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
}

.ecosystem-showcase,
.ecosystem-offerings { position: relative; z-index: 1; }

.ecosystem-showcase {
  min-height: 400px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  align-items: stretch;
  border-bottom: 1px solid rgba(145, 184, 209, .16);
}

.ecosystem-copy {
  max-width: 760px;
  padding: clamp(34px, 5vw, 70px);
  align-self: center;
}

.ecosystem-copy-kicker {
  margin: 0;
  color: var(--cyan);
  font-size: 8px;
  line-height: 1.5;
}

.ecosystem-panel h2 {
  margin: 20px 0 18px;
  color: var(--text);
  font-size: clamp(43px, 5.25vw, 70px);
  font-weight: 540;
  line-height: .99;
  letter-spacing: -.065em;
}

.ecosystem-panel h2 span { color: var(--cyan); }

.ecosystem-copy > p:not(.ecosystem-copy-kicker) {
  max-width: 610px;
  margin: 0;
  color: #96a8b3;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.75;
}

.ecosystem-action { margin-top: 27px; }

.ecosystem-art {
  min-height: 400px;
  margin: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(145, 184, 209, .13);
  background: radial-gradient(ellipse at 50% 54%, rgba(0, 126, 185, .17), transparent 58%);
}

.ecosystem-art::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 12, 19, .04), rgba(6, 12, 19, .12));
  content: "";
  pointer-events: none;
}

.ecosystem-art-ring {
  position: absolute;
  top: 51%;
  left: 50%;
  width: min(72%, 300px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(82, 221, 255, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(82, 221, 255, .025), 0 0 0 54px rgba(82, 221, 255, .02);
}

.ecosystem-art img {
  position: relative;
  z-index: 1;
  width: min(96%, 440px);
  max-height: 390px;
  align-self: end;
  object-fit: contain;
  filter: drop-shadow(0 12px 46px rgba(0, 139, 220, .23));
}

.ecosystem-art-coordinate,
.ecosystem-art figcaption {
  position: absolute;
  z-index: 2;
  color: #7d94a1;
  font-size: 7px;
}

.ecosystem-art-coordinate--top { top: 22px; right: 24px; }

.ecosystem-art figcaption {
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.ecosystem-art figcaption i,
.ecosystem-product-meta i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(82, 221, 255, .6);
}

.ecosystem-offerings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ecosystem-product {
  min-width: 0;
  padding: clamp(24px, 3.5vw, 42px);
  background: rgba(5, 10, 16, .35);
}

.ecosystem-product + .ecosystem-product { border-left: 1px solid rgba(145, 184, 209, .16); }
.ecosystem-product--available .ecosystem-product-meta i { background: #4fe3ad; box-shadow: 0 0 10px rgba(79, 227, 173, .55); }

.ecosystem-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8094a1;
  font-size: 7px;
  line-height: 1.5;
}

.ecosystem-product-meta > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.ecosystem-product--scanner .ecosystem-product-meta i { background: #4fe3ad; box-shadow: 0 0 10px rgba(79, 227, 173, .55); }

.ecosystem-product h3 {
  margin: 24px 0 10px;
  color: var(--text);
  font-size: clamp(23px, 2.5vw, 30px);
  font-weight: 540;
  letter-spacing: -.045em;
}

.ecosystem-product > p {
  min-height: 48px;
  max-width: 520px;
  margin: 0;
  color: #91a3af;
  font-size: 13px;
  line-height: 1.7;
}

.ecosystem-product-link {
  width: fit-content;
  min-height: 38px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-size: 8px;
  text-decoration: none;
}

a.ecosystem-product-link:hover { color: var(--cyan-bright); }
.ecosystem-product-link span { font-size: 13px; }
.ecosystem-product-link--inactive { color: #748693; }

.community-footer {
  padding: 36px 0 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
}

.community-footer h2 { margin: 0; color: #d6e1e7; font-size: 17px; font-weight: 500; }
.community-footer p { margin: 6px 0 0; color: #71838f; font-size: 11px; }
.community-link {
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(145, 184, 209, .18);
  color: #a8bbc6;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-decoration: none;
}

.community-link:hover { border-color: var(--line-bright); color: var(--cyan); }
.community-link span { color: var(--cyan); font-size: 12px; }

.project-footer-note { font-size: 7px; }
.project-body .site-footer { min-height: 70px; margin-top: 38px; }
.project-body .footer-center { display: inline-flex; align-items: center; }

@media (min-width: 761px) and (max-width: 1311px) {
  .project-hero-portal { left: calc(81.5vw - 22.68px); }
}

@media (max-width: 980px) {
  .project-body .header-nav { gap: 14px; }
  .project-nav-links { gap: 14px; }
  .project-nav-links a { font-size: 8px; }
  .project-hero { grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 28px; }
  .project-hero-art { min-height: 400px; }
  .hero-art-illustration { width: min(128%, 520px); max-height: 430px; }
  .project-section { padding-block: 82px; }
  .ecosystem-showcase { min-height: 360px; grid-template-columns: minmax(0, 1.08fr) minmax(250px, .92fr); }
  .ecosystem-copy { padding: 34px; }
  .ecosystem-panel h2 { font-size: clamp(42px, 5.4vw, 56px); }
  .ecosystem-art { min-height: 360px; }
  .ecosystem-product { padding: 27px; }
  .ecosystem-offerings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecosystem-product--available { grid-column: 1 / -1; border-top: 1px solid rgba(145, 184, 209, .16); border-left: 0; }
}

@media (max-width: 760px) {
  .project-body .site-header,
  .project-body .site-footer { width: calc(100% - 40px); }
  .project-body .site-header { min-height: 72px; }
  .project-body .header-nav { gap: 10px; }
  .project-nav-links { display: none; }
  .project-nav-bot { min-height: 31px; padding-inline: 10px; font-size: 8px; }
  .project-main { width: calc(100% - 40px); }
  .project-hero {
    min-height: auto;
    padding: 58px 0 30px;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .project-hero h1 { margin-top: 23px; font-size: clamp(76px, 18vw, 120px); }
  .project-hero-description { max-width: 560px; }
  .project-hero-art { width: min(100%, 500px); min-height: min(90vw, 400px); margin-inline: auto; }
  .project-hero-portal { top: 76%; left: 50%; width: 136vw; }
  .hero-art-illustration { width: min(116%, 500px); max-height: min(90vw, 400px); transform: none; }
  .hero-coordinate { font-size: 6px; }
  .hero-inscription-core { width: clamp(215px, 60%, 292px); }
  .project-stats { grid-template-columns: repeat(2, 1fr); }
  .project-stat { min-height: 67px; padding: 13px; border-bottom: 1px solid var(--line); }
  .project-stat:first-child { padding-left: 13px; }
  .project-stat:nth-child(2) { border-right: 0; }
  .project-stat:nth-child(n+3) { border-bottom: 0; }
  .project-intro-layout { grid-template-columns: 1fr; gap: 28px; }
  .project-section { padding-block: 68px; }
  .project-section-heading { margin-bottom: 30px; }
  .project-intro-layout .project-section-heading { margin-bottom: 0; }
  .collection-grid { grid-template-columns: 1fr; gap: 14px; }
  .collection-art { height: min(78vw, 380px); }
  .provenance-heading { grid-template-columns: 1fr; gap: 12px; }
  .provenance-heading > p:last-child { justify-self: start; }
  .provenance-panel { padding: 20px; }
  .bible-feature { grid-template-columns: 1fr; gap: 20px; }
  .bible-thumbnail { width: min(100%, 360px); grid-row: auto; }
  .prov-children { grid-template-columns: 1fr; gap: 14px; padding-top: 0; }
  .prov-children::before,
  .prov-branch::before { display: none; }
  .prov-trunk { height: 26px; }
  .bible-copy { width: 100%; }
  .bible-cta { justify-self: start; }
  .provenance-data { grid-template-columns: 1fr; }
  .ecosystem-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ecosystem-showcase { min-height: 0; grid-template-columns: 1fr; }
  .ecosystem-copy { padding: 33px 28px 8px; }
  .ecosystem-panel h2 { font-size: clamp(42px, 8vw, 58px); }
  .ecosystem-art { min-height: 290px; border-left: 0; }
  .ecosystem-art img { width: min(76%, 340px); max-height: 300px; }
  .ecosystem-offerings { grid-template-columns: 1fr; }
  .ecosystem-product + .ecosystem-product { border-top: 1px solid rgba(145, 184, 209, .16); border-left: 0; }
  .ecosystem-product { padding: 26px 28px; }
  .ecosystem-product > p { min-height: 0; }
  .community-footer { grid-template-columns: 1fr 1fr; gap: 12px; }
  .community-footer > div { grid-column: 1 / -1; }
  .community-link { justify-content: center; }
  .project-body .site-footer { margin-top: 28px; }
}

@media (max-width: 480px) {
  .project-body .site-header,
  .project-body .site-footer,
  .project-main { width: calc(100% - 32px); }
  .project-body .wordmark { font-size: 8px; }
  .project-body .header-actions { gap: 7px; }
  .project-body .social-link { width: 25px; height: 25px; }
  .project-nav-bot { min-height: 28px; padding-inline: 7px; font-size: 7px; }
  .project-hero { padding-top: 46px; }
  .project-kicker,
  .project-section-kicker { font-size: 8px; }
  .project-hero h1 { font-size: clamp(68px, 18vw, 92px); }
  .project-hero-tagline { font-size: 20px; }
  .project-hero-description { font-size: 13px; }
  .project-hero-actions { align-items: stretch; }
  .project-hero-actions .button,
  .project-secondary-link { min-height: 46px; }
  .project-secondary-link { justify-content: center; }
  .project-hero-art { min-height: 310px; }
  .hero-art-illustration { width: min(116%, 430px); max-height: 340px; }
  .hero-coordinate--side { right: 2px; font-size: 5px; }
  .hero-core-kicker { font-size: 7px; }
  .hero-core-mark { width: 61px; height: 50px; margin: 14px 0 11px; }
  .hero-core-caption { font-size: 5px; }
  .project-stat { gap: 8px; padding: 10px; }
  .project-stat-number { font-size: 19px; }
  .project-stat-label { font-size: 6px; }
  .project-section-heading h2 { font-size: 39px; }
  .project-section-heading > p:last-child,
  .project-section-heading > p.project-intro-copy { font-size: 13px; }
  #project .project-section-heading > p.project-intro-copy { font-size: 14px; line-height: 1.72; }
  #project .project-section-heading > p.project-intro-copy--secondary { margin-top: 14px; }
  .project-values { grid-template-rows: repeat(2, minmax(70px, auto)); gap: 7px; }
  .project-value { min-height: 62px; padding: 12px 9px; font-size: 8px; }
  .collection-content { padding: 21px 18px 22px; }
  .collection-meta { font-size: 7px; }
  .collection-content p { min-height: 0; }
  .provenance-panel { padding: 15px 12px; }
  .provenance-topline { font-size: 6px; }
  .prov-parent { min-height: 96px; padding: 15px; }
  .prov-parent h3 { font-size: 22px; }
  .prov-hovercard { width: min(360px, calc(100vw - 52px)); }
  .prov-hovercard--parent { width: min(460px, calc(100vw - 52px)); }
  .prov-child { min-height: 147px; padding: 19px 17px; }
  .bible-feature { gap: 17px; padding: 14px; }
  .bible-feature h3 { font-size: 17px; }
  .bible-feature p { font-size: 11px; }
  .bible-cta { min-height: 38px; font-size: 7px; }
  .bible-reader { width: 97vw; height: 94vh; height: 94dvh; }
  .bible-reader-header { align-items: flex-start; flex-direction: column; gap: 12px; padding: 13px; }
  .bible-reader-actions { width: 100%; flex-wrap: wrap; }
  .bible-reader-stage { padding: 10px; }
  .bible-reader-hint { padding-inline: 12px; font-size: 6px; }
  .ecosystem-section { padding-block: 64px; }
  .ecosystem-copy { padding: 27px 18px 5px; }
  .ecosystem-copy-kicker { font-size: 7px; }
  .ecosystem-panel h2 { margin-block: 16px; font-size: clamp(30px, 8.6vw, 40px); }
  .ecosystem-copy > p:not(.ecosystem-copy-kicker) { font-size: 13px; }
  .ecosystem-art { min-height: 250px; }
  .ecosystem-art img { width: min(78%, 300px); max-height: 270px; }
  .ecosystem-art-coordinate { top: 15px; right: 15px; font-size: 6px; }
  .ecosystem-art figcaption { right: 15px; bottom: 14px; left: 15px; font-size: 6px; }
  .ecosystem-product { padding: 23px 18px; }
  .ecosystem-product-meta { align-items: flex-start; font-size: 6px; }
  .ecosystem-product h3 { margin-top: 19px; font-size: 24px; }
  .ecosystem-product > p { font-size: 12px; }
  .community-footer h2 { font-size: 15px; }
  .community-link { padding-inline: 7px; font-size: 7px; }
  .project-body .site-footer { min-height: 58px; font-size: 6px; }
  .project-body .footer-center { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .collection-card,
  .collection-art--aof img,
  .bible-thumbnail,
  .bible-zoom-hint { transition: none !important; }
  .hero-art-illustration { animation: none !important; }
  .collection-card:hover { transform: none; }
  .bible-thumbnail:hover,
  .bible-thumbnail:focus-visible { transform: none; }
}

/* Shared project, provenance, and collection metadata scale. */
.project-nav-links a,
.project-nav-bot,
.project-kicker,
.project-section-kicker,
.project-secondary-link,
.project-stat-label,
.project-promise-detail,
.collection-art-label,
.collection-meta,
.collection-stat,
.collection-link,
.provenance-topline,
.prov-label,
.prov-number,
.prov-preview-kicker,
.prov-preview-detail,
.prov-parent-inscription,
.prov-child-meta,
.prov-child a,
.bible-zoom-hint,
.bible-feature .project-kicker,
.bible-cta,
.bible-reader-kicker,
.bible-zoom-controls button,
.bible-reader-close,
.bible-reader-link,
.bible-zoom-controls span,
.bible-reader-hint,
.provenance-details summary,
.provenance-data h4,
.provenance-data p,
.ecosystem-heading > span,
.ecosystem-copy-kicker,
.ecosystem-art-coordinate,
.ecosystem-art figcaption,
.ecosystem-product-meta,
.ecosystem-product-link,
.community-link,
.project-footer-note {
  font-size: 10px;
}

.hero-coordinate,
.hero-core-kicker,
.hero-core-caption { font-size: 10px; }

@media (max-width: 760px) {
  .project-body .wordmark,
  .project-nav-bot,
  .project-kicker,
  .project-section-kicker,
  .project-secondary-link,
  .project-stat-label,
  .project-promise-detail,
  .collection-art-label,
  .collection-meta,
  .collection-stat,
  .collection-link,
  .provenance-topline,
  .prov-label,
  .prov-number,
  .prov-preview-kicker,
  .prov-preview-detail,
  .prov-parent-inscription,
  .prov-child-meta,
  .prov-child a,
  .bible-zoom-hint,
  .bible-feature .project-kicker,
  .bible-cta,
  .bible-reader-kicker,
  .bible-zoom-controls button,
  .bible-reader-close,
  .bible-reader-link,
  .bible-zoom-controls span,
  .bible-reader-hint,
  .provenance-details summary,
  .provenance-data h4,
  .provenance-data p,
  .ecosystem-heading > span,
  .ecosystem-copy-kicker,
  .ecosystem-art-coordinate,
  .ecosystem-art figcaption,
  .ecosystem-product-meta,
  .ecosystem-product-link,
  .community-link,
  .project-footer-note,
  .project-body .site-footer,
  .hero-coordinate,
  .hero-coordinate--side,
  .hero-core-kicker,
  .hero-core-caption,
  .project-value {
    font-size: 9px;
  }
}

/* Match the project page header to the stronger shared navigation scale. */
.project-body .wordmark { gap: 14px; font-size: 15px; }
.project-nav-links a,
.project-nav-bot { font-size: 12px; }
.project-nav-bot { min-height: 38px; padding-inline: 15px; }

@media (max-width: 760px) {
  .project-body .wordmark { gap: 10px; font-size: 12px; }
  .project-nav-bot { min-height: 35px; padding-inline: 11px; font-size: 11px; }
  .project-body .social-link { width: 29px; height: 29px; }
  .project-body .social-link svg { width: 13px; height: 13px; }
}

@media (max-width: 480px) {
  .project-body .wordmark { gap: 9px; font-size: 11px; }
  .project-body .wordmark-logo { width: 31px; }
  .project-nav-bot { min-height: 32px; padding-inline: 9px; font-size: 10px; }
  .project-body .social-link { width: 29px; height: 29px; }
}
