.nav-links .is-current {
  opacity: 1;
}

.portfolio-hero {
  display: grid;
  align-content: center;
  min-height: 100svh;
}

.portfolio-head {
  width: min(100%, 106rem);
  margin-left: auto;
}

.portfolio-title {
  max-width: 100%;
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(4.4rem, 16vw, 21rem);
  font-weight: 900;
  line-height: 0.83;
}

.portfolio-subtitle {
  max-width: 44rem;
  margin: clamp(2.2rem, 5vw, 4.5rem) 0 0 auto;
  color: rgba(215, 209, 194, 0.78);
  font-size: clamp(1.25rem, 2.35vw, 2.65rem);
  line-height: 1.1;
  text-transform: none;
}

.project-record {
  min-height: auto;
}

.project-sheet {
  width: min(100%, 106rem);
  margin-left: auto;
}

.project-heading {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(20rem, 1.4fr) auto;
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: end;
  padding: 0 0 clamp(2.4rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.record-label {
  display: block;
  margin-bottom: 0.85rem;
  color: rgba(215, 209, 194, 0.42);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.project-client h2,
.project-title h3 {
  margin: 0;
  font-family: var(--title-font);
  font-weight: 900;
  line-height: 0.86;
}

.project-client h2 {
  font-size: clamp(2.6rem, 4.8vw, 6rem);
  text-transform: none;
}

.project-title h3 {
  font-size: clamp(2.2rem, 3.7vw, 4.6rem);
}

.project-date time {
  color: rgba(215, 209, 194, 0.76);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  white-space: nowrap;
}

.linked-name {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  max-width: 100%;
}

.attachment-link {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.22rem;
  height: 1.22rem;
  color: rgba(215, 209, 194, 0.42);
  opacity: 0.8;
  transition: color 400ms ease, opacity 400ms ease;
}

.attachment-link svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.attachment-link:hover,
.attachment-link:focus-visible {
  color: var(--mineral);
  opacity: 1;
}

.project-details {
  display: grid;
  grid-template-columns: minmax(18rem, 1.65fr) minmax(15rem, 0.8fr);
  gap: clamp(2.2rem, 6vw, 8rem);
  padding: clamp(3rem, 7vw, 6.5rem) 0;
}

.project-narrative {
  display: grid;
  gap: clamp(2.2rem, 4vw, 3.7rem);
}

.project-entry p,
.no-link {
  max-width: 62rem;
  margin: 0;
  color: rgba(215, 209, 194, 0.73);
  font-size: clamp(1.05rem, 1.38vw, 1.34rem);
  line-height: 1.45;
  text-transform: none;
}

.project-summary p {
  font-size: clamp(1.12rem, 1.6vw, 1.62rem);
  line-height: 1.38;
}

.project-technical {
  align-self: start;
  padding-top: 0.2rem;
}

.project-technical dl {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.project-technical dt {
  margin-top: 1rem;
  color: rgba(215, 209, 194, 0.42);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.project-technical dd {
  margin: 0;
  color: rgba(215, 209, 194, 0.76);
  font-size: clamp(1rem, 1.32vw, 1.3rem);
}

.project-technical-dense dd {
  font-size: clamp(0.9rem, 1.08vw, 1.08rem);
  line-height: 1.42;
  text-transform: none;
}

.public-links-label {
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

.public-links {
  display: grid;
  gap: 0.75rem;
}

.public-link {
  width: fit-content;
  color: rgba(215, 209, 194, 0.66);
  font-size: clamp(0.85rem, 1vw, 1rem);
  letter-spacing: 0.08em;
  transition: color 360ms ease;
}

.public-link:hover,
.public-link:focus-visible {
  color: var(--mineral);
}

.archive-scroll {
  --archive-progress: 0;
  --archive-travel: 0px;
  --archive-window: min(68svh, 36rem);
  position: relative;
  height: calc(var(--archive-window) + var(--archive-travel));
  margin-top: clamp(2rem, 4vw, 4rem);
}

.archive-sticky {
  position: sticky;
  top: clamp(5.4rem, 10vh, 7rem);
  display: grid;
  align-content: center;
  height: var(--archive-window);
  overflow: hidden;
}

.project-gallery {
  display: flex;
  gap: clamp(0.7rem, 1.25vw, 1.2rem);
  align-items: center;
  width: max-content;
  padding: 0 clamp(1rem, 5vw, 3.5rem);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.gallery-frame {
  position: relative;
  flex: 0 0 clamp(13.5rem, 20vw, 16.75rem);
  height: clamp(20rem, 55svh, 26rem);
  margin: 0;
  overflow: hidden;
  background: rgba(215, 209, 194, 0.035);
}

.gallery-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-video {
  flex-basis: calc(clamp(20rem, 55svh, 26rem) * 16 / 9);
}

.gallery-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-audio {
  display: grid;
  align-content: center;
  padding: clamp(0.8rem, 1.4vw, 1.2rem);
}

.gallery-audio iframe {
  display: block;
  width: 100%;
  height: 152px;
  margin-top: 2rem;
  border: 0;
  border-radius: 0.65rem;
}

.gallery-tag {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.45rem;
  background: rgba(1, 1, 1, 0.48);
  color: rgba(215, 209, 194, 0.7);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.media-placeholder {
  display: none;
}

.gallery-frame.media-unavailable .media-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 1.25rem;
  color: rgba(215, 209, 194, 0.42);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-align: center;
}

.archive-meter {
  width: min(24rem, 34vw);
  height: 1px;
  margin: clamp(1.4rem, 3vh, 2.4rem) clamp(1rem, 5vw, 3.5rem) 0;
  background: rgba(215, 209, 194, 0.16);
}

.archive-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(215, 209, 194, 0.64);
  transform: scaleX(var(--archive-progress));
  transform-origin: left center;
  transition: transform 160ms linear;
}

@media (max-width: 900px) {
  .portfolio-hero {
    min-height: 88svh;
  }

  .portfolio-title {
    font-size: clamp(3.5rem, 17vw, 8.2rem);
  }

  .portfolio-subtitle {
    margin-left: 0;
  }

  .project-heading,
  .project-details {
    grid-template-columns: 1fr;
  }

  .project-heading {
    gap: 2.5rem;
  }

  .project-date time {
    white-space: normal;
  }

  .archive-scroll {
    --archive-window: min(62svh, 29rem);
    margin-top: 3rem;
  }

  .archive-sticky {
    top: clamp(6.8rem, 15vh, 8.5rem);
  }

  .project-gallery {
    gap: 0.8rem;
    padding-inline: 1.2rem;
  }

  .gallery-frame {
    flex-basis: min(66vw, 16rem);
    height: min(50svh, 24rem);
  }

  .gallery-video {
    flex-basis: calc(min(50svh, 24rem) * 16 / 9);
  }

  .archive-meter {
    width: min(14rem, 60vw);
    margin-inline: 1.2rem;
  }
}

@media (max-width: 560px) {
  .portfolio-title {
    font-size: clamp(2.8rem, 17vw, 4.4rem);
  }

  .portfolio-subtitle {
    font-size: 1.2rem;
  }

  .project-client h2 {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
    line-height: 0.9;
    letter-spacing: -0.01em;
  }

  .project-title h3 {
    font-size: clamp(1.8rem, 8.8vw, 2.65rem);
    line-height: 0.9;
    letter-spacing: -0.01em;
  }

  .linked-name {
    gap: 0.45rem;
  }

  .archive-scroll {
    --archive-window: min(60svh, 25rem);
  }

  .archive-sticky {
    top: 7.25rem;
  }

  .gallery-frame {
    flex-basis: min(72vw, 14.5rem);
    height: min(46svh, 21.5rem);
  }

  .gallery-video {
    flex-basis: calc(min(46svh, 21.5rem) * 16 / 9);
  }
}
