:root {
  --ink: #101915;
  --stone: #17251f;
  --stone-2: #21372f;
  --gold: #c5a36a;
  --gold-2: #d8bd7a;
  --cream: #f3ead3;
  --mist: #d8ccb3;
  --emerald: #70c1a0;
  --serif: "Cinzel", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #0c1511;
  color: var(--mist);
  font-family: var(--sans);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.archive-sheet {
  position: relative;
  width: min(100%, 1122px);
  margin: 0 auto;
  overflow: hidden;
  background:
    url("./assets/archive/hero/hero-sky-bg.webp") center top / 100% 810px no-repeat,
    linear-gradient(rgba(16,25,21,.78), rgba(16,25,21,.9)),
    url("./assets/archive/textures/texture-stone-overlay.webp") center / 760px repeat;
  box-shadow: 0 0 90px rgba(0,0,0,.45);
}

.archive-sheet::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: url("./assets/archive/sections/two-paths-cliff.webp") center top / 100% auto no-repeat;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 0;
  height: 520px;
  overflow: visible;
}

.hero::after {
  display: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 760px;
  object-fit: cover;
}

.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 270px 1fr 210px;
  align-items: center;
  gap: 20px;
  height: 64px;
  padding: 0 42px;
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .08em;
}

.sigil {
  width: 34px;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, var(--gold) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, var(--gold) 49% 51%, transparent 52%);
}

.topbar nav {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 14px;
}

.mini-btn,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 22px;
  border: 1px solid rgba(216,189,122,.72);
  background: rgba(20, 37, 31, .88);
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.45);
}

.hero-copy {
  position: absolute;
  left: 85px;
  top: 184px;
  z-index: 4;
  width: 455px;
  color: #16261f;
}

.hero-copy p {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: .045em;
}

.hero-copy span {
  display: block;
  margin: 14px 0 24px;
  color: rgba(22,38,31,.72);
  font-size: 17px;
}

.hero-relic {
  position: absolute;
  right: 55px;
  top: 62px;
  z-index: 2;
  width: 470px;
  height: 390px;
}

.relic {
  position: absolute;
  inset: -22px 0 auto 0;
  width: 100%;
  filter: drop-shadow(0 32px 32px rgba(0,0,0,.36));
  animation: float 7s ease-in-out infinite;
}

.diagram {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 305px;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: .9;
  animation: spin 54s linear infinite;
}

.frag {
  position: absolute;
  z-index: 3;
  width: 92px;
  opacity: .9;
}
.frag-a { right: -44px; bottom: 60px; }
.frag-b { left: -30px; top: 80px; width: 72px; }
.island {
  position: absolute;
  z-index: 1;
  opacity: .62;
  filter: saturate(.8);
}
.island-a { left: 485px; bottom: 22px; width: 150px; }
.island-b { right: 0; top: 150px; width: 145px; }

.stone-section {
  position: relative;
  padding-inline: 86px;
}

.paths {
  position: relative;
  z-index: 2;
  min-height: 292px;
  padding-top: 16px;
  background: transparent;
}

.paths h2,
.gallery h2 {
  position: relative;
  z-index: 1;
  margin: 0 auto 16px;
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.paths h2::before,
.paths h2::after {
  position: absolute;
  top: 50%;
  width: min(32vw, 260px);
  border-top: 1px solid rgba(216,189,122,.42);
  content: "";
}

.paths h2::before {
  right: calc(50% + 150px);
}

.paths h2::after {
  left: calc(50% + 150px);
}

.path-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
}

.path-card {
  position: relative;
  aspect-ratio: 1642 / 958;
  height: auto;
  padding: 0;
}

.path-card > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.32));
}

.path-card > div {
  position: absolute;
  left: 25%;
  top: 25%;
  width: 57%;
  z-index: 1;
  display: block;
}

.path-card:nth-child(2) > div {
  left: 24%;
  top: 24%;
  width: 58%;
}

.round-mark {
  position: absolute;
  left: -21%;
  top: -2%;
  width: 58px;
  aspect-ratio: 1;
  border: 1px solid rgba(216,189,122,.65);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 10px, rgba(216,189,122,.26) 11px 12px);
}
.round-mark--gem { border-radius: 12px 50%; }

.path-card p,
.project p,
.section-kicker {
  margin: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.path-card h3 {
  margin: 0 0 8px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.path-card small {
  display: block;
  max-width: 100%;
  color: rgba(243,234,211,.78);
  font-size: 12px;
  line-height: 1.45;
}

.path-card a,
.project a {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.quest {
  position: relative;
  z-index: 2;
  min-height: 250px;
  padding-top: 8px;
}

.quest h2 {
  margin: 3px 0 22px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.section-kicker { text-align: center; }

.quest-orbit {
  position: absolute;
  left: 65px;
  right: 65px;
  top: 70px;
  height: 110px;
  border: 1px solid rgba(216,189,122,.16);
  border-radius: 50%;
  pointer-events: none;
}

.quest-orbit::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(216,189,122,.36);
  content: "";
}

.steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
}

.steps article {
  display: grid;
  justify-items: center;
  text-align: center;
}

.steps img {
  width: 76px;
  aspect-ratio: 1;
  object-fit: contain;
}

.steps b {
  margin-top: 7px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 11px;
}

.steps h3 {
  margin: 2px 0 4px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.steps p {
  max-width: 112px;
  margin: 0;
  color: rgba(243,234,211,.72);
  font-size: 11px;
  line-height: 1.35;
}

.gallery {
  position: relative;
  z-index: 2;
  min-height: 330px;
  padding-top: 4px;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.project {
  position: relative;
  aspect-ratio: 1086 / 1448;
  min-height: 0;
  border: 1px solid rgba(216,189,122,.38);
  background: rgba(13,22,18,.8);
  box-shadow: inset 0 0 0 3px rgba(197,163,106,.08);
  overflow: hidden;
}

.project::after {
  position: absolute;
  inset: 0;
  border: 8px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(216,189,122,.22);
  content: "";
  pointer-events: none;
}

.project img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.project div {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 54px 10px 10px;
  background: linear-gradient(transparent, rgba(13,22,18,.96) 44%);
}

.project h3 {
  margin: 3px 0 9px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.05;
}

.cta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 230px 1fr 260px;
  align-items: center;
  gap: 34px;
  min-height: 152px;
  margin: 0 90px 24px;
  padding: 10px 34px;
  border: 1px solid rgba(216,189,122,.35);
  background: rgba(20,35,30,.82);
}

.cta img {
  width: 170px;
  height: 118px;
  object-fit: contain;
  object-position: center;
}

.cta h2 {
  margin: 0 0 6px;
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.cta p {
  margin: 0;
  max-width: 350px;
  color: rgba(243,234,211,.8);
  font-size: 14px;
  line-height: 1.5;
}

@keyframes spin { to { rotate: 360deg; } }
@keyframes float { 50% { translate: 0 -10px; } }

@media (max-width: 900px) {
  .archive-sheet { width: 100%; }
  .archive-sheet::before { display: none; }
  .hero { height: auto; min-height: 760px; }
  .hero-bg {
    height: 100%;
  }
  .topbar {
    grid-template-columns: 1fr auto;
    height: auto;
    padding: 18px 20px;
  }
  .topbar nav,
  .top-actions a:first-child { display: none; }
  .brand { font-size: 12px; }
  .hero-copy {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    padding: 58px 24px 0;
  }
  .hero-copy h1 { font-size: clamp(42px, 12vw, 62px); }
  .hero-relic {
    position: relative;
    right: auto;
    top: auto;
    width: min(92vw, 470px);
    height: 390px;
    margin: 10px auto 0;
  }
  .island-a,
  .island-b,
  .frag { display: none; }
  .stone-section { padding-inline: 22px; }
  .paths {
    margin-top: 0;
    padding-top: 24px;
  }
  .path-grid,
  .steps,
  .gallery-row,
  .cta {
    grid-template-columns: 1fr;
  }
  .path-grid { gap: 18px; }
  .path-card {
    height: auto;
    padding: 0;
  }
  .path-card > div {
    left: 29%;
    top: 20%;
    width: 52%;
  }
  .path-card:nth-child(2) > div {
    left: 29%;
    top: 20%;
    width: 52%;
  }
  .round-mark {
    left: -24%;
    top: 0;
    width: 42px;
  }
  .path-card p {
    font-size: 8px;
  }
  .path-card h3 {
    margin-bottom: 5px;
    font-size: 19px;
  }
  .path-card small {
    font-size: 10px;
    line-height: 1.25;
  }
  .path-card a {
    margin-top: 6px;
    font-size: 9px;
  }
  .quest { padding-top: 34px; }
  .quest-orbit {
    left: 58px;
    top: 105px;
    bottom: 80px;
    right: auto;
    width: 1px;
    height: auto;
    border-width: 0 0 0 1px;
    border-radius: 0;
  }
  .quest-orbit::before { display: none; }
  .steps { gap: 20px; }
  .steps article {
    grid-template-columns: 92px 1fr;
    justify-items: start;
    text-align: left;
  }
  .steps img { grid-row: span 4; }
  .steps p { max-width: 230px; }
  .gallery-row {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 0 20px 20px;
    margin-inline: -22px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-row::-webkit-scrollbar {
    display: none;
  }
  .project {
    flex: 0 0 min(76vw, 250px);
    scroll-snap-align: start;
  }
  .cta {
    margin: 20px 22px 28px;
    text-align: center;
  }
  .cta img { justify-self: center; }
  .cta .primary-btn { justify-self: center; }
}

.subpage {
  width: min(100%, 1122px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(rgba(16,25,21,.84), rgba(16,25,21,.94)),
    url("./assets/archive/textures/texture-stone-overlay.webp") center / 760px repeat;
  box-shadow: 0 0 90px rgba(0,0,0,.45);
}

.subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 0 clamp(22px, 5vw, 58px);
  border-bottom: 1px solid rgba(197,163,106,.18);
  background: rgba(13,22,18,.72);
}

.subnav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 2.8vw, 28px);
  color: rgba(243,234,211,.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.subhero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 58px);
  padding: clamp(36px, 6vw, 66px) clamp(22px, 6vw, 70px);
  border-bottom: 1px solid rgba(197,163,106,.18);
}

.subhero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid rgba(197,163,106,.35);
  background: rgba(13,22,18,.72);
}

.subhero p,
.journal-list p {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.subhero h1 {
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.subhero span {
  display: block;
  max-width: 430px;
  margin-top: 18px;
  color: rgba(243,234,211,.76);
  font-size: 17px;
  line-height: 1.65;
}

.page-grid,
.archive-page-grid,
.process-list,
.journal-list,
.text-led {
  padding: clamp(34px, 6vw, 68px) clamp(22px, 6vw, 70px);
}

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

.page-grid article,
.text-led,
.journal-list article {
  border: 1px solid rgba(197,163,106,.26);
  background: rgba(13,22,18,.58);
  padding: 28px;
}

.page-grid img {
  width: 100%;
  aspect-ratio: 1642 / 958;
  object-fit: contain;
}

.page-grid h2,
.archive-page-grid h2,
.process-list h2,
.text-led h2,
.journal-list h2 {
  margin: 18px 0 10px;
  color: var(--cream);
  font-family: var(--serif);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.page-grid p,
.archive-page-grid p,
.process-list p,
.text-led p,
.journal-list span {
  color: rgba(243,234,211,.75);
  line-height: 1.65;
}

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

.process-list article {
  border-top: 1px solid rgba(197,163,106,.28);
  padding-top: 20px;
}

.process-list img {
  width: 86px;
  aspect-ratio: 1;
  object-fit: contain;
}

.archive-page-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.archive-page-grid article {
  border: 1px solid rgba(197,163,106,.3);
  background: rgba(13,22,18,.64);
  padding: 12px;
}

.archive-page-grid img {
  width: 100%;
  aspect-ratio: 1086 / 1448;
  object-fit: contain;
}

.archive-page-grid h2 {
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.archive-page-grid p {
  font-size: 15px;
}

.text-led {
  max-width: 880px;
  margin: 56px auto;
}

.text-led div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  border-top: 1px solid rgba(197,163,106,.22);
  padding-top: 18px;
  margin-top: 18px;
}

.text-led b {
  color: var(--gold);
  font-family: var(--serif);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.journal-list {
  display: grid;
  gap: 18px;
}

.journal-list article {
  display: grid;
  grid-template-columns: 170px 1fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.journal-list h2 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .subnav {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 18px;
  }
  .subnav nav {
    justify-content: flex-start;
  }
  .subhero,
  .page-grid--two,
  .process-list,
  .archive-page-grid,
  .journal-list article,
  .text-led div {
    grid-template-columns: 1fr;
  }
  .subhero img {
    order: 2;
  }
  .archive-page-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .archive-page-grid article {
    flex: 0 0 240px;
    scroll-snap-align: start;
  }
  .process-list {
    gap: 28px;
  }
}
