/* ===========================
   ARCHIVE DOMAIN GRID
   =========================== */

.archive-domains {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
}

/* Large Desktop: Larger thumbnails */
@media (min-width: 1700px) {
  .archive-domains {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.6rem;
  }
}

/* Extra Large Desktop: Even larger thumbnails */
@media (min-width: 2250px) {
  .archive-domains {
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: 1.6rem;
  }
}

/* ===========================
   ARCHIVE DOMAIN CARD
   =========================== */

.archive-domain {
  display: block;
  text-decoration: none;
  padding: .5rem;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  background-color: black;
  background-image: var(--tex-grid);
  background-attachment: fixed;
  background-size: 100vw auto;
  background-repeat: no-repeat;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.archive-domain:hover {
  border: 1px solid var(--ink-accent);
  background: linear-gradient(
    180deg,
    rgba(102,242,255,0.06),
    rgba(0,0,0,0.0)
  );
}

.archive-domain h2 {
  margin: 0;
  font-size: small;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}



.archive-domain p {
  margin-top: 0.75rem;
  margin-bottom: 0.35em;
  font-size: small;
  color: var(--ink-muted);
  max-width: 36ch;
}



@media (min-width: 1375px) {
   .archive-domain h2 {
    font-size: medium ;
  }
  .archive-domain p {
    font-size: medium ;
  }
}

@media (min-width: 2000px) {
  .archive-domain {
    padding: .7rem;
  }
  
  .archive-domain h2 {
    font-size: x-large;
  }
  
  .archive-domain p {
    font-size: large ;
  }
}

.archive-domain img {
  width: 100%;
  /* max-height: 120px; */
  /* margin-top: 1rem; */
  /* object-fit: cover; */
  border-radius: var(--radius-sm);
  /* filter: contrast(1.0) brightness(0.9); */
  padding-bottom: .5em;
}

 

@media (max-width: 680px) {
  .archive-domains {
    gap: 1.5rem;
  }

  /* .archive-domain {
    
  } */
}




.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.archive-card {
  background: var(--bg-archive);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
    padding: 1.5rem;
}

.archive-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(102,242,255,0.06),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.archive-card:hover::before {
  opacity: 1;
}

.archive-card h3 {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-card span {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}


.archive-card img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
  filter: contrast(1.0) brightness(0.9);
}

.archive-card img {
  background: #0b0d12;
  border: 1px solid var(--border-faint);
}


.archive-card.compact img {
  max-height: 110px;
  opacity: 0.9;
}


@media (max-width: 680px) {
  .archive-card img {
    max-height: 120px;
  }

  .item-row {
    grid-template-columns: 80px 1fr;
    gap: 1.25rem;
  }
}



/* =========================================================
   ARCHIVE DOMAIN INTRO
   ========================================================= */

.archive-domain-intro {
  max-width: 70ch;
  margin-bottom: 2.5rem;
}

.archive-domain-intro h2 {
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.archive-domain-intro p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
}


/* =========================================================
   ARCHIVE ITEM LIST (INTERACTION DOMAIN)
   ========================================================= */

.archive-item-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}



.archive-item {
  background: rgba(14, 18, 28, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  transition: border-color 0.25s ease;
}

.archive-item:hover {
  border-color: rgba(120, 255, 230, 0.4);
}



.archive-item-link {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
}



.archive-item-media {
  flex-shrink: 0;
  width: 160px;
  height: 120px;
  background: rgba(0,0,0,0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-item-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}



.archive-item-media {
  flex-shrink: 0;
  width: 160px;
  height: 120px;
  background: rgba(0,0,0,0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-item-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}



.archive-item-meta {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}



@media (max-width: 700px) {
  .archive-item-link {
    flex-direction: column;
  }

  .archive-item-media {
    width: 100%;
    height: 160px;
  }
}




/* =========================================================
   STRUCTURES DOMAIN — MEDIA REFINEMENT
   ========================================================= */

.archive-structures .archive-item-media {
  width: 180px;
  height: 140px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.03),
    rgba(0,0,0,0.45)
  );
}


.archive-structures .archive-item {
  background: rgba(10, 14, 22, 0.96);
  border-color: rgba(255,255,255,0.06);
}

.archive-structures .archive-item:hover {
  border-color: rgba(160, 200, 255, 0.35);
}



.archive-structures .archive-item-body h3 {
  color: #dfe9ff;
  letter-spacing: 0.16em;
}



/* =========================================================
   ARTIFACTS DOMAIN — MEDIA TONE
   ========================================================= */

.archive-artifacts .archive-item-media {
  width: 170px;
  height: 130px;
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.06),
    rgba(0,0,0,0.45)
  );
}
.archive-artifacts .archive-item {
  background: rgba(12, 16, 26, 0.94);
  border-color: rgba(255,255,255,0.09);
}

.archive-artifacts .archive-item:hover {
  border-color: rgba(180, 120, 255, 0.45);
}
.archive-artifacts .archive-item-body h3 {
  color: #f0e9ff;
  letter-spacing: 0.15em;
}



.archive-intro {
  margin-bottom: 2.5rem;
}

.archive-intro h2 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.8rem;
}

.archive-intro p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 60ch;
  color: rgba(220,230,240,0.85);
}



.collection-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.collection-entry {
  display: block;
  /* padding: 1.4rem 1.6rem; */
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease;

  background-color: black;
  background-image: var(--tex-grid);
  background-attachment: fixed;
  background-size: 100vw auto;
  background-repeat: no-repeat;

  border: 1px solid var(--border-glow);

}

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



.collection-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}


.collection-entry h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}




.collection-entry p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(210,220,230,0.75);
  max-width: 65ch;
}



.collection-entry:hover {
  border: 1px solid var(--ink-accent);
}

/* Parallax positioning for each entry */
/* .collection-entry:nth-child(1) {
  background-position: 50% 20%;
}

.collection-entry:nth-child(2) {
  background-position: 50% 40%;
}

.collection-entry:nth-child(3) {
  background-position: 50% 60%;
}

.collection-entry:nth-child(4) {
  background-position: 50% 80%;
} */




.collection-status {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  text-transform: uppercase;
}







.archive-intro {
  margin-bottom: 2.5rem;
}

.archive-intro h2 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.8rem;
}

.archive-intro p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 60ch;
  color: rgba(220,230,240,0.85);
}


.artifact-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}


.artifact-category {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
      padding: .5rem;
}


.artifact-category img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  opacity: 0.85;
  border-radius: calc(var(--radius-xl) - 4px);
  margin-bottom: 0.8rem;
}


.artifact-meta h3 {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.artifact-meta p {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(210,220,230,0.75);
}


.artifact-category:hover {
  transform: translateY(-2px);
  background: rgba(120,180,220,0.05);
}



.archive-detail .content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}


.artifact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.artifact-header h1 {
  font-family: 'Science Gothic', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.artifact-subtitle {
  font-family: 'Blinker', sans-serif;
  opacity: 0.75;
  max-width: 60ch;
  margin: 1rem auto 0;
}


.artifact-meta {
  /* display: grid; */
  /* gap: 1.5rem; */
  /* margin-bottom: 3rem; */
}

.meta-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  font-size: 0.85rem;
}

.meta-table dt {
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-table dd {
  margin: 0.25rem 0 0;
}


.artifact-media img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #05070a;
  border-radius: 8px;
}



.artifact-description,
.artifact-notes {
  /* margin-top: 2rem; */
  /* padding: 0.8em; */
}

.artifact-description h2,
.artifact-notes h2 {
  font-family: 'Science Gothic', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.artifact-notes ul {
  padding-left: 1.25rem;
}

.artifact-notes li {
  opacity: 0.85;
  margin-bottom: 0.5rem;
}



.artifact-schematic img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #06090f;
  border-radius: 6px;
}

.schematic-caption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
}


.artifact-reports details {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.75rem 0;
}

.artifact-reports summary {
  cursor: pointer;
  font-family: 'Science Gothic', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.artifact-reports p {
  margin-top: 0.75rem;
  opacity: 0.85;
  max-width: 70ch;
}



.artifact-containment.warning {
  border-left: 3px solid #c33;
  background: rgba(80, 10, 10, 0.15);
}

.protocol-list {
  padding-left: 1.25rem;
}

.protocol-list li {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

/* =========================================================
   ARTIFACT MEDIA STACK — CLEAN, AUTHORITATIVE VERSION
   ========================================================= */

.artifact-media {
  /* max-width: 900px; */
  /* margin: 0 auto 3rem; */
}

.media-stack {
  position: relative;
  display: block;
  background: #05070a;
  border-radius: 8px;
  overflow: hidden;
}

/* Base image defines height */
.media-layer.base {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Overlay layers */
.media-layer.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;

  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.35s ease;
}

/* Active overlay */
.media-layer.overlay.active {
  opacity: 0.85;
}

/* Overlay controls */
.overlay-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.overlay-controls button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: inherit;
  font-family: 'Science Gothic', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  opacity: 0.7;
}

.overlay-controls button.active {
  opacity: 1;
  border-color: #7fcaff;
}

@media (max-width: 500px) {
  .collection-meta {
    display: block;
  }
  
  .collection-entry h3 {
    margin-bottom: 0px;
  }
}

