:root {
  --shell-pad-x: 1.75rem;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.js body {
  opacity: 1;
}

.js body.page-ready {
  opacity: 1;
}

body.is-leaving {
  opacity: 0.985;
  transition: opacity 220ms ease;
}

body {
  margin: 0;
  font-family: "Afacad", sans-serif;
  background: #f5f4ef;
  color: #121212;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

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

/* PAGE WRAPPER */
.site-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(1.25rem, 2vw, 2rem) var(--shell-pad-x) clamp(2rem, 4vw, 3.5rem);
}

/* HEADER (FLEX) */
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, clamp(560px, 60vw, 820px)) minmax(0, 0.88fr);
  align-items: start;
  padding-bottom: clamp(1.9rem, 4.2vw, 4.05rem);
}

.site-title {
  font-family: "Afacad", sans-serif;
  font-size: clamp(1.0rem, 1.35vw, 1.35rem);
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 0.98;
  margin: 0;
  display: flex;
  grid-column: 1;
  flex-direction: column;
}

.site-title-link {
  position: relative;
  display: inline-block;
  transition:
    transform 4.6s cubic-bezier(0.2, 0.88, 0.28, 1),
    opacity 2.8s cubic-bezier(0.24, 0.86, 0.34, 1),
    color 2.02s cubic-bezier(0.28, 0.84, 0.42, 1);
}

.site-title-link:hover,
.site-title-link:focus-visible {
  color: rgba(18, 18, 18, 0.98);
  opacity: 0.38;
}

.site-title-link:active {
  color: rgba(18, 18, 18, 1);
  opacity: 0.2;
  transform: scale(0.86);
  transition:
    transform 4.6s cubic-bezier(0.2, 0.88, 0.28, 1),
    opacity 5.2s cubic-bezier(0.22, 0.9, 0.3, 1),
    color 4.6s cubic-bezier(0.2, 0.88, 0.28, 1);
}


.site-role-inline {
  font-family: "Afacad", sans-serif;
  font-weight: 340;
  font-size: 0.78em;
  opacity: 0.72;
  letter-spacing: 0.04em;
  margin-top: 9px;
}

.site-nav {
  font-family: "Afacad", sans-serif;
  display: flex;
  grid-column: 3;
  justify-self: end;
  gap: 1.7rem;
  align-items: center;
  margin-top: 6px;
  font-size: 0.84rem;
  font-weight: 200;
  letter-spacing: 0.015em;
  line-height: 1.2;
}

.site-nav a {
  font-family: "Afacad", sans-serif;
  font-weight: 200;
  letter-spacing: 0.015em;
  line-height: 1.2;
  color: rgba(18, 18, 18, 0.58);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
  display: inline-block;
  min-width: 4.5ch;
  transform-origin: left center;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: rgba(18, 18, 18, 0.98);
  opacity: 0.88;
  transform: scaleX(1.03);
}

.site-nav a:active {
  opacity: 0.72;
  transform: scaleX(1.015);
}


/* HAMBURGER */
.menu-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 0;
  position: relative;
  width: 30px;
  height: 20px;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 30px;
  height: 1px;
  background: rgba(18, 18, 18, 0.85);
  margin: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.menu-toggle span:nth-child(1) {
  top: 6px;
}

.menu-toggle span:nth-child(2) {
  top: 14px;
}

/* HAMBURGER ANIMATION (TO X) */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}


@media (max-width: 980px) {
  .site-shell {
    padding: 1.5rem 1rem 2.5rem;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .portfolio-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
  }

  .project-list {
    padding-left: 8px;
  }

  .project-list a {
    font-size: 0.82rem;
    white-space: normal;
  }

  .image-frame {
    grid-column: auto;
    width: 100%;
    max-width: 100%;
  }
}

/* MOBILE NAV */
@media (max-width: 768px) {
  .project-list a {
    font-size: 0.78rem;
  }
  .site-header {
    position: relative;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 2.25rem;
  }

  .site-title {
    font-size: calc(1.25 * 1em);
  }

  .site-role-inline {
    font-size: calc(1.25 * 0.78em);
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    margin-top: 0px;
    margin-left: auto;
    align-self: flex-start;
    transform: scale(1.15) translateY(-2px);
  }

  .menu-toggle span {
    margin: 0;
  }

  .site-nav {
    position: absolute;
    top: 2.25rem;
    right: 0;
    width: 136px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.72rem 0.85rem 0.72rem 0.85rem;
    margin-top: 0;

    background: #f4f2ee;
    border-radius: 8px;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.65rem;
    bottom: 0.65rem;
    width: 1px;
    background: rgba(18, 18, 18, 0.08);
  }

  .site-nav a {
    color: rgba(18, 18, 18, 0.58);
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
    display: inline-block;
    min-width: 4.5ch;
    transform-origin: left center;
    text-align: right;
    width: 100%;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-shell {
    padding: 1.5rem 1rem 2.5rem;
  }
}

/* HIDDEN SEO INTRO */
.intro {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* MAIN LAYOUT (GRID) */
.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, clamp(560px, 60vw, 820px)) minmax(0, 0.88fr);
  align-items: start;
  gap: clamp(0.75rem, 2vw, 2.75rem);
}



@media (min-width: 981px) and (max-width: 1199px) {
  .image-frame,
  .project-carousel {
    margin-left: 19px;
  }
}
@media (min-width: 1200px) {
  .site-title {
    font-size: 1.35rem;
  }

  .site-header {
    grid-template-columns: minmax(280px, 1.2fr) minmax(0, clamp(520px, 60vw, 820px)) minmax(0, 0.72fr);
  }

  .portfolio-layout {
    grid-template-columns: minmax(280px, 1.2fr) minmax(0, clamp(520px, 60vw, 820px)) minmax(0, 0.72fr);
  }


  .image-frame,
  .project-carousel {
    margin-left: 8px;
  }
}

/* LEFT COLUMN */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.44rem;
  position: relative;
  align-self: stretch;
  justify-self: start;
  max-width: 255px;
  width: auto;
  min-width: 0;
  padding-left: 0;
  min-height: 100%;
}

.project-list::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 1.6rem;
  width: 1px;
  background: rgba(18, 18, 18, 0.06);
}

.project-list a {
  font-family: "Afacad", sans-serif;
  font-weight: 200;
  letter-spacing: 0.015em;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  text-decoration: none;
  color: rgba(18, 18, 18, 0.58);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
  transform-origin: left center;
}

.project-list a:hover,
.project-list a:focus-visible {
  color: rgba(18, 18, 18, 0.98);
  opacity: 0.88;
  transform: scaleX(1.03);
}

.project-list a:active {
  opacity: 0.72;
  transform: scaleX(1.015);
}

.project-list-title {
  font-family: "Afacad", sans-serif;
  font-size: clamp(0.85rem, 1.13vw, 1.06rem);
  font-weight: 520;
  letter-spacing: 0.02em;
  line-height: 0.98;
  margin-top: 0.18rem;
  margin-bottom: 0;
  color: #121212;
}

.project-list-description {
  margin-top: 0;
  max-width: 23rem;
  font-family: "Afacad", sans-serif;
  font-size: clamp(0.68rem, 0.84vw, 0.76rem);
  font-weight: 200;
  letter-spacing: 0.015em;
  line-height: 1.28;
  color: rgba(18, 18, 18, 0.68);
}

.project-list-description p {
  margin: 0 0 0.21rem;
}

.project-list-description p:last-child {
  margin-bottom: 0;
}

.project-list-lede {
  font-style: italic;
  margin-bottom: 0;
  padding-bottom: 1.18rem;
}

.project-list-meta {
  margin-top: 1rem;
  padding-top: 0;
  padding-bottom: 0;
  max-width: 23rem;
  font-family: "Afacad", sans-serif;
  font-size: clamp(0.62rem, 0.78vw, 0.7rem);
  font-weight: 200;
  letter-spacing: 0.015em;
  line-height: 1.28;
  color: rgba(18, 18, 18, 0.68);
}

.project-list-meta p {
  margin: 0 0 0.24rem;
}

.project-list-meta p:first-child {
  margin-bottom: 0.08rem;
}

.project-list-meta p:last-child {
  margin-bottom: 0;
}

.project-list-meta strong {
  font-weight: 500;
  color: #121212;
}

.project-list .project-list-meta-link {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: #121212;
  display: inline-block;
  font-weight: 300;
  vertical-align: baseline;
  width: auto;
  max-width: none;
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
  transform-origin: left center;
}

.project-list .project-list-meta-link:hover,
.project-list .project-list-meta-link:focus-visible {
  color: rgba(18, 18, 18, 0.98);
  opacity: 0.88;
  transform: scaleX(1.03);
}

.project-list .project-list-meta-link:active {
  opacity: 0.72;
  transform: scaleX(1.015);
}

@media (max-width: 768px) {
  .project-list {
    align-self: start;
    min-height: 0;
  }

  .project-list-meta {
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    padding-bottom: 0;
  }

  .project-list::before {
    bottom: 0;
  }
}

/* RIGHT COLUMN */
.image-frame {
  position: relative;
  grid-column: 2;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e8e4dc;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.055);
  isolation: isolate;
  transform: translateZ(0);
  will-change: opacity, transform, filter;
  opacity: 0;
  animation: slideshowReveal 3.0s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(18, 18, 18, 0.05);
  pointer-events: none;
  z-index: 2;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 58%,
    rgba(0, 0, 0, 0.08) 100%
  );
  opacity: 0;
  animation: vignetteIn 1.6s ease forwards;
  pointer-events: none;
  z-index: 1;
}

@keyframes vignetteIn {
  to {
    opacity: 1;
  }
}

.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transform: translateX(2.1%);
  filter: none;
  transition:
    opacity 860ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 860ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
  backface-visibility: hidden;
  transform-origin: center center;
}

.image-frame img.is-before {
  transform: translateX(-2.1%);
}

.image-frame img.is-after {
  transform: translateX(2.1%);
}

.image-frame img.active {
  opacity: 1;
  transform: translateX(0);
  filter: saturate(1) contrast(1) brightness(1);
  z-index: 1;
}

.image-frame img.slide-1 {
  object-position: center top;
}

.image-frame img.slide-2 {
  object-position: center 42%;
}

.image-frame img.slide-3 {
  object-position: center 65%;
}

/* CAROUSEL ARROWS */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.18, 1.18, 0.32, 1), color 0.22s ease;
  font-size: 2.58rem;
  line-height: 1;
  padding: 0.24rem 0.42rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

body.page-ready .carousel-btn {
  animation: carouselArrowReveal 700ms ease 900ms forwards;
}

.carousel-btn.prev { left: 18px; }
.carousel-btn.next { right: 18px; }

.carousel-btn:hover,
.carousel-btn:focus-visible {
  transform: translateY(-50%) scale(1.06);
  opacity: 1;
  color: rgba(255, 255, 255, 1);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.76);
  opacity: 1;
  color: rgba(255, 255, 255, 0.82);
}

.carousel-btn.prev:active {
  transform: translateY(-50%) translateX(-5px) scale(0.76);
}

.carousel-btn.next:active {
  transform: translateY(-50%) translateX(5px) scale(0.76);
}

@keyframes carouselArrowReveal {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* THUMBNAILS */
.carousel-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}

.carousel-thumb {
  width: 60px;
  height: 45px;
  border: none;
  padding: 0;
  overflow: hidden;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-thumb:hover {
  opacity: 0.85;
}

.carousel-thumb.is-active {
  opacity: 1;
  transform: scale(1.05);
}

/* PILL INDICATORS */
.carousel-dots {
  position: absolute;
  left: 0;
  top: calc(100% + 9px);
  z-index: 3;
  display: flex;
  gap: 4.8px;
  margin-top: 0;
  justify-content: flex-start;
  align-items: center;
  background: transparent;
  padding-top: 0;
  transform: none;
}

.carousel-dot {
  appearance: none;
  width: 15.67px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.18);
  cursor: pointer;
  transition:
    background-color 0.28s ease,
    width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  background: rgba(18, 18, 18, 0.28);
}

.carousel-dot.is-active {
  width: 20.27px;
  background: rgba(18, 18, 18, 0.56);
  transform: translateY(-0.5px);
}

.carousel-visible-description {
  position: absolute;
  left: 0;
  top: calc(100% + 21px);
  max-width: 100%;
  margin-top: 0;
  font-family: "Afacad", sans-serif;
  font-size: clamp(0.72rem, 0.82vw, 0.82rem);
  font-weight: 220;
  line-height: 1.2;
  letter-spacing: 0.012em;
  color: rgba(18, 18, 18, 0.6);
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 140ms ease-in-out,
    transform 180ms ease-in-out;
}

.carousel-visible-description.is-exiting {
  opacity: 0;
  transform: translateY(0);
}

.carousel-visible-description.is-entering {
  opacity: 0;
  transform: translateY(5px);
}

/* PROJECT CAROUSEL */
.project-carousel {
  position: relative;
  grid-column: 2;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 3 / 2;
  padding-bottom: 0;
  background: transparent;
  transform: translateZ(0);
  will-change: opacity, transform;
  opacity: 0;
  animation: slideshowReveal 3.0s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.055);
  isolation: isolate;
}

.carousel-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 58%,
    rgba(0, 0, 0, 0.08) 100%
  );
  opacity: 0;
  animation: vignetteIn 1.6s ease forwards;
  pointer-events: none;
  z-index: 2;
}

.project-carousel.is-portrait-active .carousel-viewport::after {
  opacity: 0;
  animation: none;
}

.project-carousel.is-portrait-active .carousel-viewport {
  box-shadow: none;
}

.project-carousel.is-portrait-active .carousel-btn {
  color: rgba(18, 18, 18, 0.9);
  text-shadow: none;
}

.project-carousel.is-portrait-active .carousel-btn:hover,
.project-carousel.is-portrait-active .carousel-btn:focus-visible {
  color: rgba(18, 18, 18, 1);
}

.project-carousel.is-portrait-active .carousel-btn:active {
  color: rgba(18, 18, 18, 0.82);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(0);
  transition:
    opacity 860ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 860ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  pointer-events: none;
}

.carousel-slide.is-entering-from-left,
.carousel-slide.is-exiting-to-left {
  transform: translateX(-2.1%);
}

.carousel-slide.is-entering-from-right,
.carousel-slide.is-exiting-to-right {
  transform: translateX(2.1%);
}

.carousel-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  filter: none;
  backface-visibility: hidden;
  transform-origin: center center;
}

.carousel-slide img.carousel-image-portrait {
  object-fit: contain;
  object-position: center;
  transform: none;
  background: transparent;
}

.image-frame img.initial-slide {
  animation: heroFadeIn 2.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: scale(1.01);
    filter: saturate(0.99) contrast(1.008) brightness(0.996);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1) contrast(1) brightness(1);
  }
}

@keyframes slideshowReveal {
  0% {
    opacity: 0;
    transform: translateZ(0) translateY(8px) scale(0.985);
    filter: blur(1px) brightness(0.99);
  }
  60% {
    opacity: 1;
    transform: translateZ(0) translateY(-1px) scale(1.002);
    filter: blur(0.15px) brightness(0.999);
  }
  100% {
    opacity: 1;
    transform: translateZ(0) translateY(0px) scale(1);
    filter: blur(0px) brightness(1);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .portfolio-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .image-frame {
    aspect-ratio: 5 / 6;
    animation: slideshowReveal 2.3s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
  }
  .image-frame img {
    transform: scale(1.006);
    filter: saturate(0.997) contrast(1.006) brightness(0.999);
    transition:
      opacity 3.2s cubic-bezier(0.22, 1, 0.36, 1),
      transform 3.6s cubic-bezier(0.25, 1, 0.35, 1),
      filter 3.2s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .project-carousel {
    aspect-ratio: 5 / 6;
    padding-bottom: 0;
    animation: slideshowReveal 2.3s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
  }

  .carousel-visible-description {
    top: calc(100% + 20px);
    max-width: none;
  }
}

@media (max-height: 640px) {
  .site-shell {
    padding-top: 1rem;
    padding-bottom: 1.75rem;
  }

  .site-header {
    padding-bottom: 2rem;
  }

  .portfolio-layout {
    gap: 0.75rem;
  }
}

.project-credit {
  margin-top: 0.18rem;
  max-width: 820px;
  margin-left: auto;
  position: relative;
  z-index: 1;
  text-align: right;
  font-family: "Afacad", sans-serif;
  font-size: clamp(0.7rem, 0.8vw, 0.8rem);
  letter-spacing: 0.01em;
  color: rgba(18, 18, 18, 0.7);
  font-weight: 200;
  opacity: 0;
  transform: translateY(4px);
  transition: color 0.25s ease;
  animation: creditFadeIn 1.2s ease forwards;
  animation-delay: 1.35s;
}

body.project-page .project-credit {
  animation: creditFadeInOut 4.8s ease forwards;
  animation-delay: 1.35s;
}

.project-credit a {
  color: rgba(18, 18, 18, 0.78);
  display: inline-block;
  font-weight: 340;
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
  transform-origin: left center;
}

.project-credit a:hover,
.project-credit a:focus-visible {
  color: rgba(18, 18, 18, 0.98);
  opacity: 0.88;
  transform: scaleX(1.03);
}

.project-credit a:active {
  opacity: 0.72;
  transform: scaleX(1.015);
}

.site-footer {
  grid-column: 2;
  justify-self: center;
  margin-top: 4.5rem;
  font-family: "Afacad", sans-serif;
  font-size: clamp(0.58rem, 0.72vw, 0.66rem);
  font-weight: 200;
  letter-spacing: 0.015em;
  line-height: 1.28;
  color: rgba(18, 18, 18, 0.56);
  display: flex;
  flex-wrap: nowrap;
  gap: 0.18rem 0;
  justify-content: center;
  text-align: center;
  width: max-content;
  max-width: none;
  white-space: nowrap;
}

body.project-page .site-footer {
  position: fixed;
  left: var(--project-footer-left, 50%);
  bottom: 1rem;
  transform: translateX(-50%);
  margin-top: 0;
  z-index: 5;
}

body:not(.project-page) .site-footer {
  position: fixed;
  left: var(--homepage-footer-left, 50%);
  bottom: 1rem;
  transform: translateX(-50%);
  margin-top: 0;
  z-index: 5;
}

.site-footer span {
  display: inline-flex;
  align-items: center;
}

.site-footer span:not(:last-child)::after {
  content: "·";
  margin: 0 0.28rem;
  color: rgba(18, 18, 18, 0.42);
}

.site-footer a {
  color: rgba(18, 18, 18, 0.68);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
  display: inline-block;
  transform-origin: left center;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: rgba(18, 18, 18, 1);
  opacity: 0.88;
  transform: scaleX(1.03);
}

.site-footer a:active {
  opacity: 0.72;
  transform: scaleX(1.015);
}

@keyframes creditFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

@keyframes creditFadeInOut {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  22% {
    opacity: 0.9;
    transform: translateY(0);
  }
  68% {
    opacity: 0.9;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-2px);
  }
}
