.projects-page .work-copy {
  padding-top: clamp(38px, 4vw, 64px);
  padding-bottom: clamp(52px, 6vw, 96px);
  justify-content: flex-start;
  gap: 0;
}

.projects-page .work-copy > .eyebrow {
  margin-bottom: clamp(36px, 4vw, 60px);
}

.projects-page .work-text-link + .work-lead {
  margin-top: clamp(34px, 3vw, 52px);
}

.projects-page .work-bottom {
  margin-top: auto;
  padding-top: clamp(60px, 6vw, 96px);
}

.projects-page .observatory-slideshow img {
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 2.2s ease-in-out, transform 7.2s ease-in-out;
}

.projects-page .observatory-media-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
}

.projects-page .observatory-media-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.projects-page .observatory-slideshow picture { display: contents; }

.projects-page .observatory-slideshow img.is-active {
  opacity: 1;
  transform: scale(1);
}

.logger-notation {
  position: relative;
  min-width: 0;
  padding: clamp(34px, 4vw, 64px);
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(200, 61, 47, .13), transparent 29%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    #10100f;
  background-size: auto, 44px 44px, 44px 44px, auto;
  color: #f8f7f4;
}

.logger-notation::after {
  content: "";
  position: absolute;
  width: min(62%, 520px);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(200, 61, 47, .22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 38px rgba(200, 61, 47, .035), 0 0 0 92px rgba(200, 61, 47, .022);
  pointer-events: none;
}

.logger-notation-head,
.logger-notation-axis,
.logger-notation-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--mono);
  font-size: clamp(10px, .75vw, 12px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.logger-notation-head { color: var(--red); }
.logger-notation-head span:first-child { text-shadow: 0 0 12px rgba(200, 61, 47, .28); }
.logger-notation-head span:last-child { color: rgba(248, 247, 244, .42); }
.logger-notation-axis {
  margin-top: clamp(50px, 7vw, 104px);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(248, 247, 244, .15);
  color: rgba(248, 247, 244, .94);
}
.logger-notation-axis span { width: 33.333%; text-align: center; }

.logger-notation-states {
  position: relative;
  z-index: 1;
  min-height: 300px;
}

.logger-notation-state {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  opacity: 0;
  transform: scale(.96);
  filter: blur(7px);
  transition: opacity .75s ease, transform .95s ease, filter .75s ease;
}

.logger-notation-state.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.logger-notation-state > span {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(76px, 9vw, 148px);
  font-weight: 400;
  line-height: .8;
  letter-spacing: -.05em;
  text-shadow: 0 0 30px rgba(200, 61, 47, .12);
}

.logger-notation-state small {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13%;
  color: rgba(248, 247, 244, .94);
  font-family: var(--mono);
  font-size: clamp(10px, .7vw, 12px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .15em;
  text-align: center;
  text-transform: uppercase;
}

.logger-trace {
  position: relative;
  z-index: 2;
  margin-bottom: clamp(30px, 4vw, 54px);
}

.logger-trace-label {
  display: block;
  margin-bottom: 16px;
  color: var(--red);
  font-family: var(--mono);
  font-size: clamp(9px, .65vw, 11px);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.logger-trace-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(8px, 1.4vw, 20px);
  overflow: hidden;
  scroll-behavior: smooth;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: clamp(15px, 1.5vw, 22px);
}

.logger-trace-step,
.logger-trace-arrow {
  flex: none;
  animation: loggerTraceEnter .72s ease both;
}

.logger-trace-arrow {
  color: var(--red);
  font-weight: 400;
}

.logger-notation-foot { color: rgba(248, 247, 244, .94); }
.logger-notation-foot i { height: 1px; flex: 1; background: var(--red); }

@keyframes loggerTraceEnter {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 560px) {
  .projects-page .work-copy {
    padding-top: 44px;
    padding-bottom: 64px;
  }

  .projects-page .work-copy > .eyebrow {
    margin-bottom: 36px;
  }

  .projects-page .work-text-link + .work-lead {
    margin-top: 30px;
  }

  .logger-notation {
    padding: 28px 20px;
  }

  .logger-notation-axis {
    margin-top: 46px;
  }

  .logger-notation-states {
    min-height: 220px;
  }

  .logger-notation-state > span {
    font-size: clamp(66px, 23vw, 104px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logger-notation-state { transition: none; }
  .logger-trace-step, .logger-trace-arrow { animation: none; }
}
