/* Footer only; existing typography, header and page layouts are retained. */
html:not(.fullscreen) body > #main {
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
}

html:not(.fullscreen) body > #main > :not(header):not(.portfolio-footer) {
  flex: 1 0 auto;
}

.portfolio-footer {
  flex: 0 0 auto;
  clear: both;
  background: #fff;
  color: #1f365b;
  margin-top: 30px;
  text-align: left;
}

.portfolio-footer__inner {
  max-width: 1320px;
  width: calc(100% - 160px);
  margin: 0 auto;
}

.portfolio-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 38px 0 35px;
}

.portfolio-footer a {
  text-decoration: none;
  color: #1f365b;
}

.portfolio-footer__name {
  font: 400 27px/1.4 "Roboto Slab", serif;
}

.portfolio-footer__name span {
  display: block;
  font: 15px/1.6 Roboto, sans-serif;
  color: #6c737e;
  margin-top: 6px;
}

.portfolio-footer__contact {
  font: 16px/1.6 Roboto, sans-serif;
  color: #6c737e !important;
}

.portfolio-footer__contact span {
  display: block;
  font: 400 25px/1.5 "Roboto Slab", serif;
  color: #1f365b;
  margin-top: 4px;
}

.portfolio-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 20px 0 24px;
  border-top: 1px dashed #c5cbd3;
  font: 14px/1.6 Roboto, sans-serif;
  color: #6c737e;
}

.portfolio-footer__bottom a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.portfolio-footer a:focus-visible {
  outline: 2px solid #1f365b;
  outline-offset: 5px;
}

@media (max-width: 1100px) {
  .portfolio-footer__inner {
    width: auto;
    margin: 0 40px;
  }
}
@media (max-width: 700px) {
  .portfolio-footer__inner {
    margin: 0 20px;
  }
  .portfolio-footer__top {
    align-items: flex-start;
    padding: 28px 0;
    gap: 25px;
  }
  .portfolio-footer__name {
    font-size: 23px;
  }
  .portfolio-footer__contact {
    max-width: 170px;
    font-size: 14px;
  }
  .portfolio-footer__contact span {
    font-size: 21px;
  }
  .portfolio-footer__bottom {
    flex-wrap: wrap;
    gap: 10px 20px;
  }
  .portfolio-footer__credit {
    order: 3;
    width: 100%;
  }
}
/* One document transition for every theme template, matching the static demo.
   No retained transform: fixed descendants (year rail) remain viewport-relative. */
@keyframes portfolio-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes portfolio-leave {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  body > #main > :not(header):not(.portfolio-footer) {
    animation: portfolio-enter 350ms ease-out backwards;
  }
  html.portfolio-leaving body > #main > :not(header):not(.portfolio-footer) {
    animation: portfolio-leave 180ms ease-in forwards;
  }
}
/* Legacy scroll reveals must not delay or compete with the page entrance. */
.article-list article,
.content-lab .demos article,
.about-page h1,
.contact-page h1,
.contact-page .first,
.flash {
  opacity: 1 !important;
  transform: none !important;
  transition-property: background-color;
}

.portfolio-footer__contact span {
  width: fit-content;
  background-image: linear-gradient(rgba(117, 161, 210, 0.2), rgba(117, 161, 210, 0.2));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 5%;
  transition: background-size 200ms ease, color 200ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-footer__contact span {
    transition: none;
  }
}

.portfolio-footer__contact:hover span,
.portfolio-footer__contact:focus-visible span {
  background-size: 100% 100%;
  color: #111;
}

.portfolio-footer__bottom a {
  text-decoration: none;
  background-image: linear-gradient(rgba(117, 161, 210, 0.2), rgba(117, 161, 210, 0.2));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 5%;
  transition: background-size 200ms ease, color 200ms ease;
}
.portfolio-footer__bottom a:hover, .portfolio-footer__bottom a:focus-visible {
  background-size: 100% 100%;
  color: #111;
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-footer__bottom a {
    transition: none;
  }
}

@media (max-width: 700px) {
  .portfolio-footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .portfolio-footer__contact {
    max-width: none;
  }
}
