body.archive-body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #fcfcfc;
}

.archive-page {
  --archive-mark: 32px;
  height: 100vh;
  overflow: hidden;
  background: #fcfcfc;
}

.archive-page .hero {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 51px 0 0;
  overflow: visible;
  background: transparent;
  pointer-events: none;
}

.archive-page .hero-top {
  position: relative;
  top: auto;
  left: auto;
  width: min(1329px, calc(100% - 110px));
  margin: 0 auto;
}

.archive-page .brand,
.archive-page .nav,
.archive-page .archive-label {
  pointer-events: auto;
}

.archive-page .brand {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  width: auto;
  height: var(--archive-mark);
}

.archive-page .brand-name {
  width: auto;
  font-size: var(--archive-mark);
  line-height: 1;
  white-space: nowrap;
}

.archive-page .brand-icon {
  position: static;
  top: auto;
  left: auto;
  width: var(--archive-mark);
  height: var(--archive-mark);
  flex: none;
}

.archive-page .nav {
  left: 50%;
  top: -8px;
  width: max-content;
  /* same size as the About / Work nav pill */
  height: auto;
  padding: 11px 31px;
  gap: 36px;
  transform: translateX(-50%);
  background: rgba(252, 252, 252, 0.78);
  interpolate-size: allow-keywords;
  transition:
    width 0.45s cubic-bezier(0.22, 0.8, 0.24, 1),
    padding 0.45s cubic-bezier(0.22, 0.8, 0.24, 1),
    gap 0.45s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.archive-page .nav-link {
  font-size: 24px;
  line-height: 1.5;
  transition: opacity 0.22s ease;
}

.archive-page .nav.is-compact {
  width: 60px;
  height: 60px;
  padding-right: 0;
  padding-left: 0;
  gap: 0;
}

.archive-page .nav.is-compact .nav-link {
  opacity: 0;
  pointer-events: none;
}

.archive-page .brand,
.archive-page .archive-title,
.archive-note {
  transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.24, 1);
}

body.is-globe-moving .archive-page .brand {
  transform: translateX(-55vw);
  pointer-events: none;
}

body.is-globe-moving .archive-page .archive-title,
body.is-globe-moving .archive-note {
  transform: translateX(55vw);
  pointer-events: none;
}

body.is-globe-moving .archive-scroll {
  transform: translateX(-55vw);
}

.archive-label {
  position: relative;
  align-self: flex-start;
  width: min(380px, 40%);
  margin-left: auto;
  text-align: right;
}

.archive-title {
  font-size: var(--archive-mark);
  font-weight: 500;
  line-height: 1;
}

.archive-title .role-line {
  width: fit-content;
  margin-left: auto;
  line-height: 1;
}

.archive-note {
  position: fixed;
  z-index: 6;
  width: max-content;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: right;
  pointer-events: none;
  visibility: hidden;
}

.archive-note > span {
  display: block;
  white-space: nowrap;
}

.archive-note > span + span {
  margin-top: 9px;
}

.globe-fade {
  position: fixed;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  background: linear-gradient(#fcfcfc 0%, #fcfcfc 22%, rgba(252, 252, 252, 0) 100%);
  pointer-events: none;
  transition: height 0.5s cubic-bezier(0.22, 0.8, 0.24, 1);
}

body.is-globe-moving .globe-fade {
  height: 108px;
}

.globe-stage {
  position: fixed;
  z-index: 1;
  inset: 0;
  touch-action: none;
  user-select: none;
  background: #fcfcfc;
}

.globe-scene {
  position: absolute;
  inset: 0;
  perspective-origin: 50% 50%;
}

.globe {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.polaroid-shift {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.polaroid-shift .polaroid {
  pointer-events: auto;
}

.polaroid {
  position: absolute;
  display: flex;
  box-sizing: border-box;
  padding: 7px;
  border-radius: 28px 18px 24px 16px;
  background: #f1f1f1;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 0.8, 0.24, 1),
    box-shadow 0.35s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.polaroid.is-enlarged {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.polaroid.shape-b {
  border-radius: 16px 28px 18px 26px;
}

.polaroid.shape-c {
  border-radius: 24px 16px 30px 18px;
}

.polaroid.shape-d {
  border-radius: 18px 26px 16px 28px;
}

.polaroid-clip {
  flex: 1;
  min-width: 0;
  min-height: 0;
  border-radius: 20px 12px 16px 10px;
  overflow: hidden;
}

.polaroid.shape-b .polaroid-clip {
  border-radius: 10px 20px 12px 18px;
}

.polaroid.shape-c .polaroid-clip {
  border-radius: 16px 10px 22px 12px;
}

.polaroid.shape-d .polaroid-clip {
  border-radius: 12px 18px 10px 20px;
}

.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .polaroid,
  .archive-page .brand,
  .archive-page .archive-title,
  .archive-note,
  .globe-fade {
    transition: none;
  }
}

@media (max-width: 1400px) {
  .archive-page .hero {
    padding: 32px 0 0;
  }

  .archive-page .hero-top {
    width: calc(100% - 2 * var(--page-gutter));
  }
}

@media (max-width: 800px) {
  .archive-page .hero {
    padding: 16px 0 0;
  }

  .archive-page .hero-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .archive-label {
    width: 100%;
    margin-top: 16px;
  }

  .archive-page {
    --archive-mark: 26px;
  }

  .archive-page .nav {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    padding: 0 12px;
    gap: 12px;
    order: -1;
    margin-bottom: 8px;
  }

  .archive-page .nav-link {
    font-size: 17px;
  }

  .archive-note {
    position: static;
    width: 100%;
    margin-top: 14px;
    font-size: 14px;
    text-align: right;
    visibility: visible;
  }

  .archive-note > span + span {
    margin-top: 8px;
  }

  .archive-scroll {
    display: none;
  }

  .archive-page .nav.is-compact {
    width: 46px;
    margin-inline: auto;
  }

  .globe-fade {
    height: 220px;
  }
}

/* Phones: caption reads as one short paragraph above the photos */
@media (max-width: 800px) {
  .archive-note-top {
    margin-top: 10px;
  }

  .archive-note-row {
    margin-top: 0;
  }

  .archive-note > span {
    display: inline;
    white-space: normal;
  }

  .archive-note > span + span {
    margin-top: 0;
  }

  .archive-note > span::after {
    content: " ";
  }

  .archive-note {
    line-height: 1.35;
  }

  .globe-fade {
    background: linear-gradient(#fcfcfc 0%, #fcfcfc 82%, rgba(252, 252, 252, 0) 100%);
  }
}

/* Phones: while the globe spins the title and caption fully fade away
   (sliding alone left part of the wide caption on screen). */
@media (max-width: 800px) {
  .archive-page .brand,
  .archive-page .archive-title,
  .archive-note {
    transition:
      transform 0.5s cubic-bezier(0.22, 0.8, 0.24, 1),
      opacity 0.35s ease;
  }

  body.is-globe-moving .archive-page .brand,
  body.is-globe-moving .archive-page .archive-title,
  body.is-globe-moving .archive-note {
    opacity: 0;
  }

  /* same compact centred pill as the About page nav */
  .archive-page .nav {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: max-content;
    height: auto;
    margin: 0;
    padding: 10px 16px;
    gap: 12px;
    justify-content: center;
  }

  .archive-page .nav-link {
    font-size: 18px;
    line-height: 1.5;
  }

  .archive-page .hero-top {
    padding-top: 61px;
  }

  .archive-page .nav.is-compact {
    width: 46px;
    height: 49px;
    padding-left: 0;
    padding-right: 0;
    gap: 0;
  }
}
