:root {
  --black: #030303;
  --cream: #ffe4ad;
  --muted: #c9ad75;
  --gold: #f6bd67;
  --line: rgba(255, 228, 173, 0.16);
}

@font-face {
  font-family: "Jupiter";
  src: url("assets/fonts/Jupiter-Pro.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Jupiter Small Caps";
  src: url("assets/fonts/Jupiter-Small-Caps.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 28%, rgba(143, 20, 23, 0.16), transparent 26rem),
    radial-gradient(circle at 84% 18%, rgba(112, 202, 190, 0.08), transparent 28rem),
    var(--black);
  color: var(--cream);
  font-family: Spectral, Georgia, serif;
}

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

.site-nav {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0;
  transform: translateX(-50%);
  color: var(--muted);
  pointer-events: none;
}

.nav-reveal {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: auto;
  transition: transform 520ms cubic-bezier(.18,.86,.24,1);
}

.nav-reveal.is-open {
  transform: none;
}

.artifact-toggle {
  position: relative;
  display: block;
  width: 3.85rem;
  height: 6.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.artifact-toggle img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0.65rem 0.8rem rgba(0, 0, 0, 0.65));
  transition:
    opacity 220ms ease,
    transform 360ms cubic-bezier(.2,.8,.2,1),
    filter 220ms ease;
}

.open-state {
  opacity: 0;
  transform: translateY(0) scale(0.98);
}

.closed-state {
  opacity: 1;
  transform-origin: 50% 24%;
}

.nav-reveal.is-open .closed-state,
.nav-reveal:focus-within .closed-state,
.nav-reveal:hover .closed-state {
  opacity: 0;
  transform: translateY(-0.35rem) rotate(-12deg) scale(0.96);
}

.nav-reveal.is-open .open-state,
.nav-reveal:focus-within .open-state,
.nav-reveal:hover .open-state {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-nav nav {
  display: flex;
  gap: clamp(0.8rem, 2.5vw, 1.8rem);
  max-width: 0;
  overflow: hidden;
  padding: 0.72rem 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  font-family: "Jupiter", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 400;
  opacity: 0;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    max-width 320ms ease,
    opacity 220ms ease,
    padding 320ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.nav-reveal.is-open nav,
.nav-reveal:focus-within nav,
.nav-reveal:hover nav {
  max-width: 30rem;
  padding-right: 1.15rem;
  padding-left: 1.15rem;
  border-color: rgba(246, 189, 103, 0.44);
  background:
    linear-gradient(145deg, rgba(246, 189, 103, 0.1), transparent 48%),
    rgba(8, 7, 6, 0.86);
  opacity: 1;
  backdrop-filter: blur(20px);
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 10rem) 0;
  padding-top: clamp(11rem, 18vw, 15rem);
  border-top: 1px solid var(--line);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  color: var(--gold);
  font-family: "Jupiter Small Caps", Georgia, serif;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.kicker::before,
.kicker::after {
  display: block;
  width: 1.8rem;
  height: 1px;
  background: rgba(246, 189, 103, 0.44);
  content: "";
}

.kicker::before {
  width: 0.7rem;
}

.site-nav nav {
  letter-spacing: 0;
}

.site-nav nav a {
  font-weight: 400;
}

.site-nav nav a,
.keeper-card span {
  font-weight: 900;
}

h1 {
  max-width: 10ch;
  margin: 0 0 1.2rem;
  font-family: "Jupiter Small Caps", Georgia, serif;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 400;
  line-height: 0.95;
}

.lede {
  max-width: 44rem;
  margin: 0;
  color: #d8bd85;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.page-intro {
  margin-bottom: clamp(2.2rem, 5vw, 4rem);
}

.page-intro .kicker {
  display: none;
}

.title-rule {
  position: relative;
  width: min(28rem, 68vw);
  height: 1px;
  margin: 1.65rem 0 2.1rem;
  background: rgba(246, 189, 103, 0.82);
  box-shadow: 0 0 0.65rem rgba(246, 189, 103, 0.18);
}

.title-rule::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid rgba(246, 189, 103, 0.88);
  background: #050403;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.page-intro .lede,
.page-intro + .lede {
  max-width: 58rem;
  font-family: "Jupiter", Georgia, serif;
  font-size: clamp(1.35rem, 2.55vw, 2.65rem);
  line-height: 1.18;
}

.contact-options {
  display: grid;
  max-width: 42rem;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.contact-summon,
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  width: fit-content;
  min-height: 3.1rem;
  padding: 0.82rem 1.15rem;
  border: 1px solid rgba(246, 189, 103, 0.46);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(246, 189, 103, 0.12), transparent 55%),
    rgba(8, 7, 6, 0.72);
  color: var(--gold);
  font-family: "Jupiter Small Caps", Georgia, serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 228, 173, 0.06),
    0 1rem 2.4rem rgba(0, 0, 0, 0.22);
}

.dispatch-icon {
  width: 2.15rem;
  height: 2.65rem;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0.18rem 0.35rem rgba(0, 0, 0, 0.45));
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: min(35rem, 100%);
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid rgba(246, 189, 103, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, rgba(143, 20, 23, 0.24), transparent 14rem),
    rgba(8, 7, 6, 0.96);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.62);
  transform: translateY(0.6rem) scale(0.98);
  transition: transform 220ms ease;
}

.contact-modal.is-open .contact-modal-panel {
  transform: translateY(0) scale(1);
}

.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: Spectral, Georgia, serif;
  font-weight: 800;
  cursor: pointer;
}

.contact-modal-panel h2 {
  max-width: 10ch;
  margin: 0 0 0.75rem;
  font-family: "Jupiter Small Caps", Georgia, serif;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 0.95;
}

.modal-note {
  max-width: 30rem;
  margin: 0 0 1.2rem;
  color: #d8bd85;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.stamp-watermark {
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 20rem;
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

.contact-modal-panel form,
.contact-modal-panel label {
  display: grid;
}

.contact-modal-panel form {
  gap: 0.95rem;
}

.contact-modal-panel label {
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-modal-panel input,
.contact-modal-panel select,
.contact-modal-panel textarea {
  width: 100%;
  border: 1px solid rgba(246, 189, 103, 0.28);
  border-radius: 6px;
  background: rgba(255, 228, 173, 0.06);
  color: var(--cream);
  font: 600 1rem/1.35 Spectral, Georgia, serif;
  padding: 0.75rem 0.85rem;
}

.contact-modal-panel select {
  background-color: #15100b;
  color-scheme: dark;
}

.contact-modal-panel option {
  background-color: #15100b;
  color: var(--cream);
}

.contact-modal-panel textarea {
  resize: vertical;
}

.contact-submit {
  margin-top: 0.3rem;
}

.cabinet-page {
  position: relative;
}

.section-heading {
  display: block;
  margin-bottom: 2rem;
}

.section-heading h1 {
  max-width: 12ch;
}

.artifact-grid {
  columns: 3 15rem;
  column-gap: 1rem;
}

.artifact {
  position: relative;
  display: inline-block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  margin: 0 0 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 9, 8, 0.84);
  isolation: isolate;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 320ms cubic-bezier(.18,.86,.24,1);
}

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

.artifact::before {
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at 16% 14%, rgba(246, 189, 103, 0.24), transparent 24rem);
  z-index: -1;
}

.artifact::after {
  right: -3rem;
  bottom: -3rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(246, 189, 103, 0.13);
  border-radius: 50%;
  z-index: 1;
}

.artifact video,
.artifact > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transform: scale(1.04);
  transition:
    opacity 360ms ease,
    transform 900ms ease,
    filter 360ms ease;
  z-index: -2;
}

.artifact > img {
  object-fit: contain;
  padding: 1.45rem;
  opacity: 0.42;
  filter: saturate(0.92) contrast(1.05);
}

.artifact-main-specimen {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 50% 38%, rgba(112, 202, 190, 0.13), transparent 16rem),
    linear-gradient(145deg, rgba(143, 20, 23, 0.18), transparent 52%),
    rgba(7, 6, 5, 0.9);
}

.artifact-main-specimen span {
  color: var(--gold);
}

.artifact-main-specimen h3 {
  max-width: 11ch;
}

.artifact:hover,
.artifact:focus-within {
  border-color: rgba(246, 189, 103, 0.42);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.38);
  transform: translateY(-0.25rem) scale(1.08);
  z-index: 3;
}

.artifact:nth-child(2),
.artifact:nth-child(5),
.artifact:nth-child(6) {
  aspect-ratio: 4 / 3;
}

.artifact:nth-child(4),
.artifact:nth-child(8) {
  aspect-ratio: 3 / 4;
}

.artifact:nth-child(7) {
  aspect-ratio: 16 / 10;
}

.artifact:hover video,
.artifact:focus-within video,
.artifact:hover > img,
.artifact:focus-within > img {
  opacity: 0.86;
  transform: scale(1.1);
  filter: saturate(1.08) contrast(1.04);
}

.artifact-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
}

.artifact span {
  display: block;
  margin-bottom: auto;
  color: #70cabe;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.artifact h3 {
  max-width: 10ch;
  margin-bottom: 0.55rem;
  font-family: "Jupiter Small Caps", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  font-weight: 400;
  line-height: 0.98;
  text-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.75);
}

.artifact p {
  max-width: 24rem;
  max-height: 0;
  overflow: hidden;
  margin-bottom: 0;
  color: #d9be86;
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.86;
  text-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.72);
  transform: translateY(0.35rem);
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    max-height 260ms ease;
}

.artifact:hover p,
.artifact:focus-within p {
  max-height: 9rem;
  opacity: 1;
  transform: translateY(0);
}

.specimen-shell {
  min-height: 100vh;
}

.specimen-gate {
  position: relative;
  display: grid;
  width: min(42rem, 100%);
  min-height: 34rem;
  align-content: center;
  margin-top: clamp(3rem, 8vw, 6rem);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(246, 189, 103, 0.28);
  background:
    radial-gradient(circle at 50% 14%, rgba(112, 202, 190, 0.1), transparent 18rem),
    linear-gradient(145deg, rgba(143, 20, 23, 0.13), transparent 54%),
    rgba(5, 4, 4, 0.84);
  overflow: hidden;
}

.specimen-seal {
  position: absolute;
  right: clamp(-4rem, -6vw, -2rem);
  bottom: -7.5rem;
  width: min(19rem, 56vw);
  opacity: 0.18;
  pointer-events: none;
}

.specimen-seal img {
  display: block;
  width: 100%;
  filter: saturate(0.86) contrast(1.02) drop-shadow(0 1rem 1.8rem rgba(0, 0, 0, 0.72));
}

.specimen-gate h1 {
  max-width: 8ch;
  margin-bottom: 1rem;
}

.specimen-gate p:not(.kicker):not(.specimen-error):not(.lede) {
  max-width: 30rem;
  color: #d9be86;
  font-size: 1.08rem;
  line-height: 1.65;
}

.specimen-password-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
  width: min(100%, 28rem);
  margin-top: 1.6rem;
}

.specimen-password-form label {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.specimen-password-row {
  display: flex;
  gap: 0.65rem;
}

.specimen-password-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(246, 189, 103, 0.28);
  background: rgba(0, 0, 0, 0.42);
  color: var(--cream);
  font: inherit;
  padding: 0.85rem 0.95rem;
}

.specimen-password-row button {
  border: 1px solid rgba(246, 189, 103, 0.45);
  background: rgba(246, 189, 103, 0.1);
  color: var(--cream);
  cursor: pointer;
  font-family: "Jupiter Small Caps", Georgia, serif;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
}

.specimen-error {
  min-height: 1.4rem;
  margin: 0;
  color: #f6bd67;
}

.specimen-gallery[hidden],
.specimen-gate[hidden] {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.gallery-item {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(8, 7, 6, 0.72);
}

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 37rem;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
  opacity: 0.78;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 58%);
}

.gallery-item div {
  position: absolute;
  right: 1.25rem;
  bottom: 1.15rem;
  left: 1.25rem;
  z-index: 1;
}

.gallery-item span {
  display: block;
  color: #70cabe;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-item h3 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.4rem, 2vw, 2.15rem);
}

.keeper-grid {
  display: grid;
  grid-template-columns: minmax(0, 26rem);
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.keeper-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 11rem;
  padding: 1.25rem;
  border: 1px solid rgba(246, 189, 103, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(246, 189, 103, 0.11), transparent 42%),
    rgba(10, 9, 8, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 228, 173, 0.08),
    inset 0 0 0 0.45rem rgba(246, 189, 103, 0.03);
  cursor: pointer;
  transition:
    width 360ms ease,
    min-height 360ms ease,
    aspect-ratio 360ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.keeper-card.is-open {
  width: min(100vw - 2rem, 760px);
  min-height: auto;
  aspect-ratio: 3 / 2;
  border-color: rgba(255, 255, 255, 0);
  background: transparent;
  box-shadow: none;
}

.keeper-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.keeper-card.is-open .keeper-frame {
  opacity: 1;
}

.keeper-card span {
  display: block;
  margin-bottom: 3rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.keeper-card-toggle {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.keeper-card h2 {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 0 1rem;
  font-family: "Jupiter Small Caps", Georgia, serif;
  font-size: clamp(1.85rem, 3.3vw, 3rem);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: anywhere;
}

.keeper-card.is-open .keeper-card-toggle {
  display: grid;
  height: 100%;
  align-content: center;
  justify-items: start;
  padding: clamp(4.1rem, 8vw, 5.7rem) clamp(4rem, 8vw, 6.2rem);
  text-align: left;
}

.keeper-card.is-open span {
  margin-bottom: 0.7rem;
}

.keeper-card.is-open h2 {
  max-width: 13ch;
  margin-bottom: 0.95rem;
  font-size: clamp(1.9rem, 4.5vw, 3.35rem);
}

.keeper-card p {
  max-width: 24rem;
  margin: 0;
  color: #d8bd85;
  font-family: Spectral, Georgia, serif;
  font-size: clamp(0.9rem, 1.45vw, 1.02rem);
  font-weight: 600;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(0.55rem);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.keeper-card.is-open p {
  opacity: 1;
  transform: translateY(0);
}

.keeper-card:not(.is-open) p {
  max-height: 0;
  overflow: hidden;
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    left: 50%;
    width: min(1180px, calc(100% - 2rem));
    transform: translateX(-50%);
  }

  .nav-reveal.is-open {
    transform: none;
  }

  .site-nav nav {
    flex-wrap: wrap;
  }

  .artifact-toggle {
    width: 3.45rem;
    height: 6.15rem;
  }

  .artifact-grid {
    columns: 1;
  }

  .artifact,
  .artifact:nth-child(n) {
    aspect-ratio: 1;
  }

  .artifact:hover,
  .artifact:focus-within {
    transform: none;
  }

  .artifact p {
    max-height: none;
  }

  .keeper-card.is-open .keeper-card-toggle {
    padding: 3.7rem 2.6rem;
  }

  .specimen-gate {
    min-height: auto;
    padding: 7.5rem 1.25rem 2rem;
  }

  .specimen-password-row {
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item-large {
    grid-column: auto;
    grid-row: auto;
    min-height: 19rem;
  }
}
