/* =========================================================
   PROJETH — ARCHIVE SAMPLE PAGE
   Organized structure / v1 cleanup
========================================================= */

/* =========================================================
   01. BASE
========================================================= */

.archive-sample-page {
  margin: 0;
  background: #111;
  color: #fff;
}

.archive-sample {
  background: #111;
  color: #fff;
}


/* =========================================================
   02. ARCHIVE HEADER
========================================================= */

.archive-header {
  position: relative;
  min-height: auto;
  overflow: hidden;
  background: #111;
}

.archive-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(
      to bottom,
      rgba(17,17,17,0.10) 0%,
      rgba(17,17,17,0.35) 45%,
      rgba(17,17,17,1) 100%
    ),
    url("../images/archive/project-header.webp");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0.40;
  pointer-events: none;
}


/* =========================================================
   03. ARCHIVE HEADER NAVIGATION
========================================================= */

.archive-header-nav {
  position: absolute;
  top: 7vh;
  left: 50%;
  z-index: 10;
  width: min(90vw, 1800px);
  transform: translateX(-50%);
  pointer-events: none;
}

.archive-return-tab {
  pointer-events: auto;
}

.archive-contact-panel {
  pointer-events: none;
}

.archive-return-tab {
  position: absolute;
  top: 0;
  left: 0;
  width: 132px;
  min-width: 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  background: transparent;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-family: "ibm-plex-mono", monospace;
  font-size: 0.88rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.archive-return-tab:hover {
  color: #fff;
}

.archive-return-tab img {
  height: 0.58rem;
  width: auto;
  flex-shrink: 0;
  position: relative;
  top: 1px;
}

.archive-contact-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  font-family: "ibm-plex-mono", monospace;
  color: #000;
}

.archive-contact-tab,
.archive-contact-close {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.archive-contact-tab {
  width: 132px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  background: #fff;
  border-right: 4px solid #005487;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.archive-contact-reveal {
  width: 100%;
  overflow: hidden;
}

.archive-contact-content {
  background: #fff;
  padding: 1.65rem 1.15rem 1rem 1.15rem;
  font-size: 0.74rem;
  line-height: 1.58;
  text-align: left;
  box-shadow: inset -4px 0 0 #005487;
  transform: translateX(100%);
  transition: transform 420ms cubic-bezier(0.65, 0, 0.2, 1);
}

.archive-contact-panel.is-open .archive-contact-content {
  transform: translateX(0);
}

.archive-contact-content p + p {
  margin-top: 1rem;
}

.archive-contact-content a {
  color: #005487;
  text-decoration: none;
}

.archive-contact-close {
  display: block;
  margin-top: 1.35rem;
  margin-left: auto;
  opacity: 0.78;
  font-size: 0.72rem;
}

.archive-contact-tab,
.archive-contact-content,
.archive-contact-close {
  pointer-events: auto;
}


/* =========================================================
   ACCESSIBILITY
   Keyboard Focus
========================================================= */

:where(a, button):focus-visible {
  outline: 1px solid rgba(255,255,255,.75);
  outline-offset: 4px;
}


/* =========================================================
   04. ARCHIVE HEADER CONTENT
========================================================= */


.archive-header-content {
  position: relative;
  z-index: 5;
  width: min(90vw, 1800px);
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(7rem, 13vh, 10rem);
  padding-bottom: clamp(1.75rem, 2.5vw, 3rem);
  color: #fff;
}

.archive-header-content > * {
  max-width: 680px;
  pointer-events: none;
}

.archive-kicker {
  margin: 0 0 0.7rem;
  font-family: "ibm-plex-mono", monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}

.archive-header-content h1 {
  margin: 0;
  font-family: "neue-frutiger-world", sans-serif;
  font-size: clamp(1.45rem, 2.3vw, 2.9rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.96);
}

.archive-location {
  margin: 0.7rem 0 0;
  font-family: "ibm-plex-mono", monospace;
  font-size: 0.76rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
}

.archive-intro {
  margin: 1rem 0 0;
  font-family: "ibm-plex-mono", monospace;
  font-size: 0.88rem;
  line-height: 1.58;
  color: rgba(255,255,255,0.68);
}


/* =========================================================
   05. SHARED SECTION / IMAGE RULES
========================================================= */

.archive-section {
  width: min(90vw, 1800px);
  margin-left: auto;
  margin-right: auto;
}

.archive-section-label {
  margin: 0 0 2vw;
  font-family: "ibm-plex-mono", monospace;
  font-size: .85rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.archive-figure {
  margin: 0;
}

.archive-figure img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================================================
   06. TECHNICAL DRAWINGS
========================================================= */

.archive-section--drawings {
  padding: 0 0 4vw;
}

.archive-figure--wide {
  margin-bottom: 5vw;
}

.archive-detail-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 4vw;
  align-items: stretch;
}

.archive-detail-stack {
  display: grid;
  gap: 4vw;
}


/* =========================================================
   07. DOCUMENTATION
========================================================= */

.archive-section--documentation {
  padding: 2vw 0 5vw;
}

.archive-supporting-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2vw;
  align-items: start;
}


/* =========================================================
   08. PHOTOGRAPHY
========================================================= */

.archive-section--photography {
  padding: 1vw 0 8vw;
}

.archive-photo-pair {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 3vw;
  align-items: stretch;
}

.archive-photo img {
  height: 100%;
  object-fit: cover;
}


/* =========================================================
   09. FOOTER
========================================================= */

.archive-sample-page .projeth-footer {
  background: #050505;
}


/* =========================================================
   10. RESPONSIVE
========================================================= */

@media (max-width: 760px) {

  .archive-section {
    width: 88vw;
  }

  .archive-section--drawings {
    padding-top: 0;
  }

  .archive-section-label {
    margin-bottom: 5vw;
  }

  .archive-detail-layout,
  .archive-photo-pair {
    grid-template-columns: 1fr;
    gap: 6vw;
  }

  .archive-supporting-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4vw;
  }

  .archive-figure--wide {
    margin-bottom: 6vw;
  }

  .archive-section--documentation,
  .archive-section--photography {
    padding-top: 6vw;
  }

  .archive-contact-panel {
    width: min(320px, 88vw);
  }

}

@media (max-width: 560px) {

  .archive-supporting-grid {
    grid-template-columns: 1fr;
    gap: 7vw;
  }

}
