.archive-page .nav {
  position: sticky;
}

.archive-main {
  min-height: calc(100vh - 160px);
}

.archive-hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.archive-back {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.archive-back:hover {
  color: var(--accent);
}

.archive-back::before {
  content: "←";
  color: var(--accent);
}

.archive-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, .65fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
}

.archive-kicker {
  color: var(--accent);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.archive-title {
  margin: .75rem 0 1.2rem;
  font-size: clamp(3.7rem, 11vw, 8.6rem);
  line-height: .85;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(57,207,255,.9);
  text-shadow: 0 0 24px rgba(57,207,255,.15);
}

.archive-title2{
  margin: .75rem 0 1.2rem;
  font-size: clamp(1.85rem, 5.5vw, 4.3rem);
  line-height: .85;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(57,207,255,.9);
  text-shadow: 0 0 24px rgba(57,207,255,.15);
}

.archive-lede {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.85;
}

.archive-meta {
  display: grid;
  gap: .8rem;
}

.archive-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.archive-meta-row strong {
  color: var(--text);
  font-weight: 600;
}

.archive-gallery-section {
  padding-top: 1rem;
}

.archive-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.archive-entry {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.archive-entry:hover {
  transform: translateY(-3px);
  border-color: rgba(57,207,255,.25);
  box-shadow: var(--glow);
}

.archive-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 22px;
  isolation: isolate;
  background:
    radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(var(--tone, 57,207,255),.24), transparent 24%),
    linear-gradient(var(--angle, 135deg), rgba(var(--tone, 57,207,255),.08), transparent 62%),
    #090c12;
}

button.archive-art {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.archive-art::before,
.archive-art::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.archive-art::before {
  width: var(--size, 42%);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--tone, 57,207,255),.65);
  border-radius: var(--shape, 50%);
  transform: rotate(var(--turn, 0deg));
  box-shadow:
    0 0 20px rgba(var(--tone, 57,207,255),.18),
    inset 0 0 20px rgba(var(--tone, 57,207,255),.08);
}

.archive-art::after {
  inset: 0;
  opacity: .35;
  background:
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(255,255,255,.045) 16px),
    linear-gradient(90deg, transparent 49.7%, rgba(var(--tone, 57,207,255),.35) 50%, transparent 50.3%);
}

.archive-glyph {
  position: relative;
  z-index: 2;
  color: rgba(238,243,255,.92);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 300;
  letter-spacing: .2em;
  text-indent: .2em;
  text-shadow: 0 0 16px rgba(var(--tone, 57,207,255),.7);
}

.archive-art.has-media {
  aspect-ratio: 1;
  background: #090c12;
}

.archive-art.has-media::before {
  content: "PREVIEW";
  z-index: 3;
  width: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  color: #39cfff;
  font-size: .78rem;
  letter-spacing: .18em;
  opacity: 0;
  transform: none;
  box-shadow: none;
  transition: opacity .3s ease;
}

.archive-art.has-media::after {
  z-index: 2;
  inset: 0;
  opacity: 0;
  background: rgba(0,0,0,.68);
  transition: opacity .3s ease;
}

.archive-art.has-media:hover::before,
.archive-art.has-media:hover::after,
.archive-art.has-media:focus-visible::before,
.archive-art.has-media:focus-visible::after {
  opacity: 1;
}

.archive-art.has-media img,
.archive-art.has-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #090c12;
  transition: transform .35s ease;
}

.archive-art.has-media:hover img,
.archive-art.has-media:hover video {
  transform: scale(1.025);
}

.archive-art.has-media .archive-glyph {
  position: absolute;
  left: .8rem;
  bottom: .7rem;
  z-index: 4;
  padding: .32rem .42rem .28rem;
  border: 1px solid rgba(57,207,255,.28);
  border-radius: .35rem;
  background: rgba(9,12,18,.72);
  font-size: .85rem;
  letter-spacing: .12em;
  backdrop-filter: blur(5px);
}

.archive-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0,0,0,.9);
}

.archive-modal.active {
  display: flex;
}

.archive-modal-content {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.archive-modal-content img,
.archive-modal-content video {
  display: block;
  max-width: min(94vw, 1200px);
  max-height: 90vh;
  border-radius: 18px;
  background: #050609;
  box-shadow: 0 0 45px rgba(57,207,255,.25);
}

.archive-modal-content video {
  width: min(94vw, 1200px);
}

.archive-modal-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1.5rem;
  border: 0;
  background: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.archive-entry-copy {
  padding: 1.05rem 1.15rem 1.2rem;
}

.archive-entry-index {
  display: block;
  margin-bottom: .45rem;
  color: var(--accent);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.archive-entry h2 {
  margin: 0 0 .35rem;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.archive-entry p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.65;
}

.v2 { --x: 24%; --y: 68%; --angle: 25deg; --size: 50%; --turn: 45deg; --shape: 10%; }
.v3 { --x: 78%; --y: 32%; --angle: 210deg; --size: 34%; --turn: 18deg; }
.v4 { --x: 68%; --y: 78%; --angle: 315deg; --size: 58%; --turn: 64deg; --shape: 4%; }
.v5 { --x: 35%; --y: 25%; --angle: 170deg; --size: 28%; --turn: 30deg; }
.v6 { --x: 82%; --y: 65%; --angle: 55deg; --size: 46%; --turn: 78deg; --shape: 18%; }
.v7 { --x: 18%; --y: 38%; --angle: 245deg; --size: 62%; --turn: 12deg; }
.v8 { --x: 58%; --y: 42%; --angle: 120deg; --size: 38%; --turn: 54deg; --shape: 8%; }

.transmissions { --tone: 107,124,255; }
.afterimages { --tone: 255,79,216; }

@media (max-width: 900px) {
  .archive-intro {
    grid-template-columns: 1fr;
  }

  .archive-meta {
    grid-template-columns: repeat(3, 1fr);
  }

  .archive-meta-row {
    display: grid;
  }

  .archive-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .archive-meta,
  .archive-gallery {
    grid-template-columns: 1fr;
  }

  .archive-title {
    font-size: clamp(3rem, 17vw, 5rem);
  }
}
