@import url('https://fonts.googleapis.com/css2?family=Jost:wght@200;300;400&family=Montserrat:wght@200;300;400;500;600&display=swap');

:root {
  --aes-red: 235, 35, 35;
  --aes-purple: 195, 95, 235;
  --aes-blue: 35, 135, 235;
  --aes-green: 35, 235, 135;
  --aes-yellow: 255, 235, 105;
  --aes-orange: 255, 135, 35;
  --aes-brown: 195, 135, 95;
  --aes-white: 235, 235, 235;

  --aes-nav-color: 35, 35, 35;
  --aes-dark: 15, 15, 15;
  --aes-trans-normal: all .635s ease-in-out;
  --aes-trans-quick: all .345s ease-in-out;
}

* {
  box-sizing: border-box;
  font-family: inherit;
  margin: 0;
  padding: 0;
}

body {
  background-image: url('../img/backdrop.png');
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: rgb(var(--aes-white));
  font-family: 'Jost', sans-serif;
  font-size: 1em;
  overflow: hidden;
}

a {
  color: rgb(var(--aes-blue));
}

.aes-circle-menu-btn {
  aspect-ratio: 1/1;
  background-color: rgba(var(--aes-white), .035);
  backdrop-filter: blur(1px);
  border: 3px solid rgba(var(--aes-white), .235);
  box-shadow: 0 0 18px rgba(var(--aes-dark), .365);
  border-radius: 50%;
  color: rgb(var(--aes-white));
  font-family: 'Jost', sans-serif;
  font-size: 5em;
  font-weight: 100;
  height: 300px;
  position: absolute;
  inset: 35% 0 0 calc(50% - 150px);
  transition: var(--aes-trans-normal);
}

.aes-circle-menu-btn:hover {
  background-color: rgba(var(--aes-white), .05);
  backdrop-filter: blur(3px);
  box-shadow: 0 0 8px rgba(var(--aes-dark), .765);
  transform: scale(.85);
}

.aes-circle-menu-btn:hover li {
  background-color: rgba(var(--aes-white), .05);
  box-shadow: 0 0 8px rgba(var(--aes-dark), .765);
}

.aes-circle-menu-btn::before {
  aspect-ratio: 1/1;
  background-color: rgba(var(--aes-white), .735);
  border-radius: 50%;
  content: '';
  filter: blur(36px);
  opacity: .135;
  inset: 13.6%;
  position: absolute;
  transition: var(--aes-trans-normal);
  z-index: -1;
}

.aes-circle-menu-btn:hover::before {
  inset: 23.6%;
  opacity: .635;
}

.aes-circle-menu-btn::after {
  aspect-ratio: 1/1;
  border-radius: 50%;
  content: '';
  inset: 13.6%;
  position: absolute;
  transition: var(--aes-trans-normal);
  z-index: -2;
}

.aes-circle-menu-btn:hover::after {
  content: '';
  inset: -97.6%;
}

.aes-btn-decor {
  animation: rotate 7.6s linear infinite forwards;
  border-radius: 50%;
  inset: 0;
  position: absolute;
  z-index: 1;
}


.aes-btn-decor:hover:after {
  opacity: 1;
}

.aes-btn-decor::after {
  aspect-ratio: 1/1;
  background-color: rgba(var(--aes-blue), .8);
  border-radius: 50%;
  content: '';
  left: calc(50% - 6px);
  opacity: 0;
  position: absolute;
  top: -30px;
  transition: var(--aes-trans-normal);
  width: 12px;
}

.aes-circle-menu {
  aspect-ratio: 1/1;
  border-radius: 50%;
  inset: 25%;
  list-style-type: none;
  opacity: 0;
  position: absolute;
  transition: var(--aes-trans-normal);
}

.aes-circle-menu-btn:hover .aes-circle-menu {
  opacity: 1;
}
.aes-circle-menu-ammonite .aes-circle-menu,
.aes-circle-menu-whizbang .aes-circle-menu {
  transform: scale(1) rotate(-520deg);
}

.aes-circle-menu-whizbang .aes-circle-menu {
  transition-duration: 2.95s;
}

.aes-circle-menu-ammonite:hover .aes-circle-menu,
.aes-circle-menu-whizbang:hover .aes-circle-menu {
  transform: scale(1) rotate(360deg);
}

.aes-circle-menu-ammonite:hover .aes-circle-menu {
  transition-duration: 2.395s;
}

.aes-circle-menu-whizbang:hover .aes-circle-menu {
  transition-timing-function: ease-in-out;
  transition-duration: 1.395s;
}

.aes-circle-menu-ammonite:hover li {
  transition-timing-function: ease-in-out;
}

.aes-circle-menu-ammonite:hover li:first-child {
  transition-delay: .25s;
}

.aes-circle-menu-ammonite:hover li:nth-child(2) {
  transition-delay: .45s;
}

.aes-circle-menu-ammonite:hover li:nth-child(3) {
  transition-delay: .65s;
}

.aes-circle-menu-ammonite:hover li:nth-child(4) {
  transition-delay: .85s;
}

.aes-circle-menu-ammonite:hover li:nth-child(5) {
  transition-delay: 1.05s;
}

.aes-circle-menu-ammonite:hover li:nth-child(6) {
  transition-delay: 1.25s;
}

.aes-circle-menu-ammonite:hover li:nth-child(7) {
  transition-delay: 1.45s;
}

.aes-circle-menu-ammonite:hover li:nth-child(8) {
  transition-delay: 1.65s;
}

.aes-circle-menu-btn > img {
  aspect-ratio: 1/1;
  left: 25%;
  position: absolute;
  top: 25%;
  transition: var(--aes-trans-normal);
  width: 50%;
}

.aes-circle-menu-btn:hover img.aes-hide,
.aes-circle-menu-btn img.aes-reveal {
  opacity: 0;
}

.aes-circle-menu-btn:hover img.aes-hide,
.aes-circle-menu-btn img.aes-reveal {
  transform: scale(0);
}

.aes-circle-menu-btn img.aes-hide {
  transform: scale(1);
}

.aes-circle-menu-btn:hover img.aes-reveal {
  transform: scale(1.35);
}

.aes-circle-menu-btn img.aes-hide,
.aes-circle-menu-btn:hover img.aes-reveal {
  opacity: 1;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.aes-circle-menu-btn li {
  aspect-ratio: 1/1;
  align-items: center;
  background-color: rgba(var(--aes-dark), .1);
  border: 3px solid rgba(var(--aes-white), .105);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(var(--aes-dark), .135), inset 0 0 36px rgba(var(--aes-dark), .135);
  display: flex;
  justify-content: center;
  opacity: 0;
  position: absolute;
  transition: var(--aes-trans-normal);
  width: 100%;
}

.aes-circle-menu-btn:hover li {
  aspect-ratio: 1/1;
  background-color: rgba(var(--aes-white), .136);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(var(--aes-dark), .135), inset 0 0 36px rgba(var(--aes-dark), .236);
  opacity: 1;
  position: absolute;
  transition: var(--aes-trans-normal);
  width: 100%;
}

.aes-circle-menu-btn li:hover {
  background-color: rgba(var(--aes-dark), .736);
  border: 3px solid rgba(var(--aes-white), 0);
}

.aes-circle-menu-btn li a {
  align-items: center;
  aspect-ratio: 1/1;
  border: 3px solid rgba(var(--aes-white), 0);
  border-radius: 50%;
  color: rgb(var(--aes-white));
  display: flex;
  font-size: 1.35rem;
  font-weight: 400;
  height: 107.35%;
  justify-content: center;
  position: absolute;
  transition: var(--aes-trans-normal);
  text-decoration: none;
  z-index: 1;
}

.aes-circle-menu-btn li img {
  aspect-ratio: 1/1;
  border-radius: 50%;
  filter: brightness(1);
  height: 107.35%;
  position: absolute;
  transition: var(--aes-trans-normal);
  text-decoration: none;
  z-index: -1;
}

.aes-circle-menu-btn li:hover img {
  filter: brightness(.235);
  opacity: .35;
}

.aes-circle-menu-btn li:hover a {
  border: 3px solid rgba(var(--aes-white), 1);
}

.aes-circle-menu-btn li .aes-item-decor::before,
.aes-circle-menu-btn li .aes-item-decor::after {
  aspect-ratio: 1/1;
  background-color: rgb(var(--aes-white));
  border: 1px solid rgba(var(--aes-white), 0);
  border-radius: 50%;
  content: '';
  height: 8px;
  left: calc(50% - 4px);
  top: calc(50% - 4px);
  opacity: 0;
  position: absolute;
  text-decoration: none;
  transition: var(--aes-trans-normal);
}

.aes-circle-menu-btn li:hover .aes-item-decor::before,
.aes-circle-menu-btn li:hover .aes-item-decor::after {
  background-color: rgba(var(--aes-white), 0);
  border: 1px solid rgba(var(--aes-white), 1);
}

.aes-circle-menu-btn li:hover .aes-item-decor::before,
.aes-circle-menu-btn li:hover::before {
  opacity: 1;
  top: 115%;
}

.aes-circle-menu-btn li img + a {
  background-color: transparent;
  color: transparent;
}

.aes-circle-menu-btn li:hover img + a {
  color: rgb(var(--aes-white));
}

.aes-circle-menu-btn .aes-menu-0:hover a {
  background-color: rgba(var(--aes-red), .35);
}

.aes-circle-menu-btn .aes-menu-1:hover a {
  background-color: rgba(var(--aes-purple), .35);
}

.aes-circle-menu-btn .aes-menu-2:hover a {
  background-color: rgba(var(--aes-blue), .35);
}

.aes-circle-menu-btn .aes-menu-3:hover a {
  background-color: rgba(var(--aes-green), .35);
}

.aes-circle-menu-btn .aes-menu-4:hover a {
  background-color: rgba(var(--aes-yellow), .35);
}

.aes-circle-menu-btn .aes-menu-5:hover a {
  background-color: rgba(var(--aes-orange), .35);
}

.aes-circle-menu-btn .aes-menu-6:hover a {
  background-color: rgba(var(--aes-brown), .35);
}

.aes-circle-menu-btn .aes-menu-0 {
  left: 0;
}

.aes-circle-menu-btn:hover .aes-menu-0 {
  left: -176.5%;
}

.aes-circle-menu-btn .aes-menu-0:hover .aes-item-decor:after {
  background-color: rgb(var(--aes-red));
  border: 2px solid rgb(var(--aes-red));
  top: -25%;
  opacity: .8;
}

.aes-circle-menu-btn .aes-menu-4 {
  right: 0;
}

.aes-circle-menu-btn .aes-menu-4:hover .aes-item-decor:after {
  background-color: rgb(var(--aes-yellow));
  border: 2px solid rgb(var(--aes-yellow));
  top: -25%;
  opacity: .8;
}

.aes-circle-menu-btn:hover .aes-menu-4 {
  right: -176.5%;
}

.aes-circle-menu-btn .aes-menu-2 {
  top: 0;
}

.aes-circle-menu-btn:hover .aes-menu-2 {
  top: -176.5%;
}

.aes-circle-menu-btn .aes-menu-2:hover .aes-item-decor:after {
  background-color: rgb(var(--aes-blue));
  border: 2px solid rgb(var(--aes-blue));
  top: -25%;
  opacity: .8;
}

.aes-circle-menu-btn .aes-menu-6 {
  bottom: 0;
}

.aes-circle-menu-btn:hover .aes-menu-6 {
  bottom: -176.5%;
}

.aes-circle-menu-btn .aes-menu-6:hover .aes-item-decor:after {
  background-color: rgb(var(--aes-brown));
  border: 2px solid rgb(var(--aes-brown));
  top: -25%;
  opacity: .8;
}

.aes-circle-menu-btn .aes-menu-1 {
  left: 0;
  top: 0;
}

.aes-circle-menu-btn:hover .aes-menu-1 {
  left: -126.5%;
  top: -126.5%;
}

.aes-circle-menu-btn .aes-menu-1:hover .aes-item-decor:after {
  background-color: rgb(var(--aes-purple));
  border: 2px solid rgb(var(--aes-purple));
  top: -25%;
  opacity: .8;
}

.aes-circle-menu-btn .aes-menu-5 {
  bottom: 0;
  right: 0;
}

.aes-circle-menu-btn:hover .aes-menu-5 {
  bottom: -126.5%;
  right: -126.5%;
}

.aes-circle-menu-btn .aes-menu-5:hover .aes-item-decor:after {
  background-color: rgb(var(--aes-orange));
  border: 2px solid rgb(var(--aes-orange));
  top: -25%;
  opacity: .8;
}

.aes-circle-menu-btn .aes-menu-3 {
  right: 0;
  top: 0;
}

.aes-circle-menu-btn:hover .aes-menu-3 {
  right: -126.5%;
  top: -126.5%;
}

.aes-circle-menu-btn .aes-menu-3:hover .aes-item-decor:after {
  background-color: rgb(var(--aes-green));
  border: 2px solid rgb(var(--aes-green));
  top: -25%;
  opacity: .8;
}

.aes-circle-menu-btn .aes-menu-7 {
  bottom: 0;
  left: 0;
}

.aes-circle-menu-btn:hover .aes-menu-7 {
  bottom: -126.5%;
  left: -126.5%;
}

.aes-circle-menu-btn .aes-menu-7:hover .aes-item-decor:after {
  background-color: rgb(var(--aes-white));
  border: 2px solid rgb(var(--aes-white));
  top: -25%;
  opacity: .8;
}

.aes-nav,
.aes-title {
  align-items: center;
  background-color: transparent;
  color: rgb(var(--aes-white));
  display: flex;
  position: fixed;
}

.aes-nav {
  height: 50px;
  inset: 0 0 auto calc(100% - 250px);
  justify-content: flex-end;
}

.aes-title {
  font-size: .735em;
  height: 50px;
  inset: 0 calc(100vw - 250px) auto 0;
  justify-content: flex-start;
  letter-spacing: .635em;
  text-transform: uppercase;
}

.aes-title img {
  aspect-ratio: 1/1;
  height: 55%;
  margin: 0 7.635%;
}

.aes-nav-img-link {
  align-items: center;
  aspect-ratio: 1.735/1;
  border-radius: 0 0 48px 48px;
  box-sizing: content-box;
  display: flex;
  height: 96.6%;
  justify-content: center;
  margin: 0 1.235%;
  padding: 0 0 8px 0;
  position: relative;
  transition: var(--aes-trans-normal);
}

.aes-nav-img-link:hover {
  background-color: rgba(var(--aes-white), .135);
  padding: 48px 0 18px 0;
}

.aes-nav-white-bg:hover {
  background-color: white;
  transition: var(--aes-trans-normal);
}

.aes-nav-img-link img {
  aspect-ratio: 1/1;
  height: 73.6%;
  transition: var(--aes-trans-normal);
}

.aes-nav-white-bg:hover img {
  filter: invert(1);
}

.aes-nav-tooltip {
  background-color: rgba(var(--aes-dark), .765);
  border: 1px solid rgba(var(--aes-white), .235);
  border-radius: 3px 0 0 3px;
  border-right: none;
  box-shadow: 0 0 16px rgba(var(--aes-dark), .135), inset 0 0 36px rgba(0, 0, 0, .5);
  color: rgb(var(--aes-white));
  font-size: .735em;
  letter-spacing: 10px;
  overflow: hidden;
  padding: 20px 48px 20px 36px;
  pointer-events: none;
  position: fixed;
  right: -396px;
  text-decoration: none;
  text-transform: uppercase;
  top: 96px;
  transition: var(--aes-trans-normal);
  min-width: -moz-fit-content;
  min-width: fit-content;
  white-space: nowrap;
}

.aes-nav-tooltip::after {
  background-color: rgba(var(--aes-dark), .376);
  border-radius: 8px 0 0 8px;
  content: '';
  filter: blur(36px);
  inset: 15px 0 15px 15px;
  position: absolute;
  z-index: -1;
}

.aes-mnbtn:hover .aes-nav-tooltip,
.aes-nav-img-link:hover .aes-nav-tooltip {
  right: 0;
}

.aes-menu-btn,
.aes-menu-btn:active,
.aes-menu-btn:focus,
.aes-menu-btn:hover {
  align-items: center;
  aspect-ratio: 1/1;
  background-color: transparent;
  border: none;
  border-bottom-left-radius: 15px;
  border-right: 0;
  border-top: 0;
  display: flex;
  flex-flow: column;
  gap: 8px;
  height: 100%;
  justify-content: center;
  margin-left: 6.735%;
  padding: 13px 0;
  transition: var(--aes-trans-quick);
}

.aes-menu-btn::after {
  aspect-ratio: 1/1;
  background-color: rgba(var(--aes-dark), .1);
  border: 1px solid rgba(var(--aes-white), .135);
  border-bottom-left-radius: 15px;
  border-right: 0;
  border-top: 0;
  content: '';
  position: absolute;
  height: 100%;
  justify-content: center;
  transition: var(--aes-trans-quick);
}

.aes-menu-btn:hover::after {
  background-color: rgba(var(--aes-white), .135);
  border-color: rgba(var(--aes-white), .235);
  box-shadow: 0 0 8px rgba(var(--aes-dark), .3);
  transform: scale(118.5%) translateY(6.365%) translateX(3.765%);
  transform-origin: right;
}

.aes-menumarker {
  background-color: rgba(var(--aes-white), .8);
  height: 1px;
  transition: var(--aes-trans-quick);
  width: 18px;
  z-index: 1;
}

.aes-menu-btn:hover .aes-menumarker {
  background-color: rgba(var(--aes-white), 1);
  transform: scale(85%);
}

.aes-menu {
  align-items: center;
  background-color: rgba(var(--aes-white), .3);
  border-radius: 8px;
  display: none;
  flex-flow: column;
  font-size: .85em;
  gap: 5px;
  justify-content: center;
  left: calc(100% - 376px);
  letter-spacing: .25em;
  overflow: hidden;
  padding: 18px;
  position: fixed;
  right: 13px;
  text-transform: uppercase;
  top: 65px;
}

.aes-menu::after {
  background-color: rgba(var(--aes-white), .8);
  content: '';
  filter: blur(76px);
  inset: 18px;
  position: absolute;
  z-index: -1;
}

.aes-menu button,
.aes-menu a {
  background-color: transparent;
  border: none;
  color: rgba(var(--aes-nav-color), 1);
  cursor: pointer;
  font-size: .965rem;
  font-weight: 300;
  letter-spacing: .235rem;
  padding: 32px 35px;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--aes-trans-normal);
  width: 100%;
}

.aes-menu button::before,
.aes-menu a::before,
.aes-menu button::after,
.aes-menu a::after {
  background-color: rgba(var(--aes-white), 0);
  border-radius: 2px;
  color: rgba(var(--aes-nav-color), 1);
  content: '';
  inset: 8px 0;
  position: absolute;
  transition: var(--aes-trans-normal);
  z-index: -1;
}

.aes-menu button::before,
.aes-menu a::before {
  inset: 18px;
  background-color: rgba(var(--aes-white), 0);
  filter: blur(8px);
}

.aes-menu button:hover::before,
.aes-menu a:hover::before {
  inset: 25px;
  background-color: rgba(var(--aes-white), .735);
  filter: blur(35px);
}

.aes-menu button:hover::after,
.aes-menu a:hover::after {
  background-color: rgba(var(--aes-white), .435);
  border-radius: 2px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .135);
  transition: var(--aes-trans-quick);
}

.aes-menu span {
  background-color: rgba(var(--aes-white), .935);
  border-radius: 3px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, .135);
  color: rgba(var(--aes-nav-color), .8);
  padding: 10px 35px;
  text-align: left;
  width: 100%;
}

@keyframes open-menu {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes close-menu {
  0% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
    opacity: 0;
    visibility: hidden;
  }
}

.aes-menu-close {
  display: flex;
  transform: scaleY(0);
  transform-origin: top;
  animation: close-menu .35s linear 1 forwards;
}

.aes-menu-open {
  display: flex;
  transform-origin: top;
  animation: open-menu .5s linear 1 forwards;
}

@media only screen and (max-width: 768px) {
  .aes-circle-menu-btn {
    transform: scale(.45);
  }

  .aes-circle-menu-btn:hover {
    transform: scale(.65);
  }

  .aes-nav {
    top: auto;
    bottom: 0;
    height: 50px;
  }

  .aes-menu {
    background-color: rgba(var(--aes-white), .8);
    border-radius: 0;
    bottom: 50px;
    left: 0;
    right: 0;
    top: 50px;
  }

  .aes-menu-open {
    animation: none;
  }

  .aes-menu-close {
    animation: none;
  }

  .aes-nav-img-link {
    border-radius: 35px 35px 0 0;
  }

  .aes-nav-img-link:hover {
    padding: 18px 0 48px 0;
  }

  .aes-nav-tooltip {
    display: none;
  }

  .aes-menu-btn::after {
    border-top: 1px solid rgba(var(--aes-white), .135);
    border-radius: 0;
    padding: 0 8px;
  }

  .aes-menu-btn:hover::after {
    border-top: 1px solid rgba(var(--aes-white), .135);
    border-radius: 0;
    padding: 0 0 0 0;
    transform: scale(1);
  }
}

.aes-touch-menu {
  backdrop-filter: blur(5px);
  background-color: rgba(var(--aes-white), .105);
  border: 2px solid rgba(var(--aes-white), .135);
  border-radius: 16px;
  box-shadow: 0 0 18px rgba(0, 0, 0, .5);
  display: none;
  flex-flow: column;
  gap: 1px;
  top: 15vh;
  right: 12.5%;
  list-style-type: none;
  max-height: 75vh;
  overflow: auto;
  padding: 1.235vh;
  position: fixed;
  scrollbar-width: none;
  width: 75%;
}

.aes-touch-menu::-webkit-scrollbar {
  display: none;
}

.aes-touch-menu li {
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  display: flex;
  height: 7.365vh;
  min-height: 65px;
  width: auto;
}

.aes-touch-menu a {
  align-items: center;
  background-color: rgba(var(--aes-white), .2);
  color: rgb(var(--aes-white));
  display: flex;
  height: 100%;
  letter-spacing: .235rem;
  overflow: hidden;
  padding: 0 35px;
  position: relative;
  text-decoration: none;
  text-shadow: 1px 1px 3px rgba(var(--aes-dark), .35);
  text-transform: uppercase;
  width: 100%;
}

.aes-touch-menu a::after {
  background-color: rgba(var(--aes-white), .935);
  content: '';
  filter: blur(48px);
  inset: 15% 2.35%;
  position: absolute;
  z-index: -1;
}

.aes-touch-menu li:first-of-type a {
  border-radius: 8px 8px 0 0;
}

.aes-touch-menu li:last-of-type a {
  border-radius: 0 0 8px 8px;
}

.aes-touch-menu a:focus {
  background-color: rgba(var(--aes-white), 1);
  color: rgba(var(--aes-dark), .735);
}

.aes-touch-menu li img {
  border-radius: 50%;
  filter: contrast(3);
  height: 135%;
  margin: 0 35px 0 0;
}

@media (hover: none) {
  .aes-touch-menu {
    display: flex;
  }

  .aes-circle-menu-btn {
    display: none;
  }
}

@media only screen and (max-width: 350px) {
  .aes-touch-menu li a {
    font-size: .85rem;
    font-weight: 600;
  }

  .aes-touch-menu li img {
    margin: 0 15px 0 -25px;
    height: 105%;
  }

  .aes-nav-img-link {
    padding: 0;
    margin: 0;
  }
}

.aes-section,
.aes-form {
  backdrop-filter: blur(3px);
  background-color: rgba(var(--aes-white), .735);
  border-radius: 8px;
  color: rgba(var(--aes-dark), .735);
  display: flex;
  flex-flow: column;
  font-family: 'Jost', sans-serif;
  gap: 18px;
  top: 10vh;
  left: 25%;
  bottom: 10vh;
  opacity: 0;
  overflow-y: scroll;
  padding: 36px;
  position: fixed;
  scrollbar-width: none;
  transition: var(--aes-trans-normal);
  visibility: hidden;
  width: 50%;
}

.aes-section::-webkit-scrollbar,
.aes-form::-webkit-scrollbar {
  display: none;
}

.aes-section {
  backdrop-filter: blur(36px);
  background-color: rgba(var(--aes-dark), .735);
  border: 2px solid rgba(var(--aes-white), .135);
  box-shadow: 0 0 36px rgba(var(--aes-dark), .265);
  color: rgba(var(--aes-white), .935);
  font-size: 1.435rem;
  line-height: 2.136em;
  letter-spacing: .105rem;
  left: 2.5%;
  width: 95%;
  top: 7.365vh;
  bottom: 7.365vh;
  overflow: auto;
  scrollbar-width: none;
  text-shadow: 1px 1px 5px rgba(var(--aes-dark), .235);
}

.aes-section::-webkit-scrollbar {
  display: none;
}

.aes-section p {
  margin-bottom: 18px;
}

.aes-section article {
  padding: 9px clamp(3.35vw, 18px, 8vw);
}

.aes-partner-img-container {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  gap: 1.235%;
  justify-content: center;
  padding: 3px 0;
}

.aes-section figure {
  display: flex;
  flex-flow: column;
  aspect-ratio: 1/1;
  font-size: 1rem;
  text-align: right;
  max-width: clamp(100px, 200px, 100%);
}

.aes-section figcaption {
  background-color: rgba(var(--aes-dark), .5);
  border: 1px solid rgba(var(--aes-white), .365);
  border-top: none;
  padding: 0 .795rem;
}

.aes-section figure img {
  border: 1px solid rgba(var(--aes-white), .365);
  width: 100%;
}

.aes-section.open,
.aes-form.open {
  opacity: 1;
  visibility: visible;
}

.aes-section::before,
.aes-section::after,
.aes-form::after {
  background-color: rgba(var(--aes-white), .735);
  content: '';
  inset: 36px;
  filter: blur(36px);
  position: absolute;
  z-index: -1;
}

.aes-section::after {
  background-color: rgba(var(--aes-dark), .535);
  filter: blur(136px);
}

.aes-section::before {
  background-color: rgba(var(--aes-white), .265);
  filter: blur(76px);
  inset: 76px;
}

.aes-section h1,
.aes-form h1 {
  font-weight: 300;
  letter-spacing: .235rem;
  padding: 35px;
}

.aes-section h1 {
  padding: 0 18px;
}

input {
  font-family: 'Jost', sans-serif;
}

input[type = "text"] {
  background-color: rgba(var(--aes-white), .235);
  border: 1px solid rgba(var(--aes-dark), 0);
  box-shadow: inset 0 0 36px rgba(var(--aes-dark), .265);
  box-sizing: border-box;
  border-radius: 8px;
  flex: 1;
  min-height: 65px;
  outline: none;
  padding: 15px 35px;
  transition: var(--aes-trans-normal);
}

input[type = "text"]:hover {
  background-color: rgba(var(--aes-white), .135);
  box-shadow: inset 0 0 36px rgba(var(--aes-dark), 0.395);
  border: 1px solid rgba(var(--aes-blue), .235);
  transition: var(--aes-trans-quick);
}

input[type = "text"]:focus {
  background-color: rgba(var(--aes-white), .935);
  box-shadow: inset 0 0 36 rgba(var(--aes-dark), 0);
  border: 1px solid rgba(var(--aes-dark), .235);
  transition: var(--aes-trans-quick);
  margin: 0 -17.5px;
}

.aes-input-block {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 0 35px;
}

.aes-input-block label {
  align-items: center;
  display: flex;
  flex: 1;
  letter-spacing: .365rem;
  padding: 0 35px;
  text-transform: uppercase;
}

.aes-btn-block {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 0 35px;
  margin: 36px 0 0 0;
}

input[type = "reset"],
input[type = "submit"] {
  background-color: rgba(var(--aes-white), .235);
  border: none;
  border-radius: 0;
  box-shadow: 0 5px 10px rgba(var(--aes-dark), .15);
  color: rgba(var(--aes-dark), .5);
  flex: 1;
  font-family: 'Jost', sans-serif;
  letter-spacing: .235rem;
  padding: 15px;
  text-transform: uppercase;
  transition: var(--aes-trans-quick);
}

input[type = "reset"]:hover,
input[type = "submit"]:hover {
  background-color: rgba(var(--aes-white), .735);
  box-shadow: 0 5px 10px rgba(var(--aes-dark), .035);
}

input[type = "reset"]:focus {
  background-color: rgba(var(--aes-white), .935);
  box-shadow: 0 5px 10px rgba(var(--aes-dark), .035);
}

input[type = "reset"]:active {
  background-color: rgba(var(--aes-dark), .735);
  color: rgb(var(--aes-white));
}

input[type = "submit"]:focus {
  background-color: rgba(var(--aes-white), .935);
  box-shadow: 0 5px 10px rgba(var(--aes-dark), .035);
}

input[type = "submit"]:active {
  background-color: rgba(var(--aes-blue), .735);
  color: rgb(var(--aes-white));
}

.aes-textarea-block {
  display: flex;
  flex-flow: column;
  margin: 18px 0 0 0;
  padding: 18px 36px;
  width: 100%;
}

input[type = "textarea"] {
  background-color: rgba(var(--aes-white), .135);
  border: 1px solid rgba(var(--dark), 0);
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(var(--aes-dark), .065);
  flex: 1;
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: .105rem;
  outline: none;
  padding: 36px;
  transition: var(--aes-trans-quick);
}

input[type = "textarea"]:hover {
  background-color: rgba(var(--aes-white), .235);
  border: 1px solid rgba(var(--dark), .935);
  box-shadow: 0 5px 10px rgba(var(--aes-dark), .365);
}

input[type = "textarea"]:focus {
  background-color: rgba(var(--aes-white), .935);
  border: 1px solid rgba(var(--dark), .235);
  box-shadow: 0 5px 10px rgba(var(--aes-dark), .165);
  padding: 48px;
}

.aes-contact-closer {
  aspect-ratio: 1/1;
  background-color: rgba(var(--aes-white), .735);
  box-shadow: 1px 3px 8px rgba(var(--aes-dark), .135);
  border: none;
  border-radius: 50%;
  position: absolute;
  right: 36px;
  top: 36px;
  transition: var(--aes-trans-quick);
  width: 50px;
}

.aes-contact-closer:hover {
  box-shadow: 1px 3px 18px rgba(var(--aes-red), .335);
  transform: scale(1.35) translateY(3px) translateX(-3px);
}

.aes-section .aes-contact-closer:hover {
  box-shadow: 1px 3px 18px rgba(var(--aes-blue), .735);
  transform: scale(1.35) translateY(3px) translateX(-3px);
}

.aes-contact-closer:active {
  background-color: rgba(var(--aes-dark), .935);
  box-shadow: 1px 3px 8px rgba(var(--aes-blue), .135);
  transform: scale(1.235) translateY(3px) translateX(-3px);
}

.aes-contact-closer::before,
.aes-contact-closer::after {
  background-color: rgba(var(--aes-dark), .35);
  border-radius: 5px;
  content: '';
  inset: 46.5% 21.5%;
  position: absolute;
  transition: var(--aes-trans-quick);
}

.aes-contact-closer:focus::before,
.aes-contact-closer:focus::after,
.aes-contact-closer:hover::before,
.aes-contact-closer:hover::after {
  background-color: rgba(var(--aes-dark), .735);
  transform: rotate(0) scale(.735);
}

.aes-contact-closer:focus::before,
.aes-contact-closer:focus::after {
  background-color: rgba(var(--aes-white), .735);
  transform: rotate(0) scale(.735);
}

.aes-contact-closer:active::before,
.aes-contact-closer::before {
  transform: rotate(-45deg);
}

.aes-contact-closer:active::after,
.aes-contact-closer::after {
  transform: rotate(45deg);
}

.aes-contact-closer:active::before,
.aes-contact-closer:active::after {
  background-color: rgba(var(--aes-white), .935);
}

.aes-menu-backdrop,
.aes-alt-backdrop,
.aes-contact-backdrop {
  background-color: rgba(var(--aes-dark), 0);
  border: none;
  visibility: hidden;
  inset: 0;
  width: 100%;
  position: fixed;
  transition: var(--aes-trans-normal);
}

.aes-contact-backdrop.open {
  background-color: rgba(var(--aes-dark), .735);
  visibility: visible;
}

.aes-alt-backdrop.open {
  background-color: rgba(var(--aes-dark), .735);
  visibility: visible;
}

.aes-menu-backdrop.open {
  background-color: rgba(var(--aes-dark), .365);
  visibility: visible;
}

@media only screen and (max-width: 768px) {
  .aes-form * {
    flex-flow: column;
  }

  .aes-section,
  .aes-form {
    border-radius: 0;
    bottom: 0;
    left: auto;
    right: auto;
    top: 0;
    width: 100%;
  }

  .aes-section figure {
    margin-bottom: 15px;
  }
}

/* TODO: fix in firefox

Possible fix is to have duplicate keyframes, one in one direction,
one in the other. This way, it should work (in theory), judging
from the explanation given here:
https://weekendprojects.dev/posts/css-animation-reverse-not-working/

*/

.aes-item-decor {
  animation: rotate 5s linear infinite;
  height: 100%;
  width: 100%;
  display: initial;
}

@supports (-moz-appearance:none) {

  .aes-partner-img-container {
    margin-bottom: 7.5vh;
  }

  /* TODO: fade in the decors on hover (so they work correctly in firefox)
  and have them all be animated constantly (yes, it is taxing, but only
  if they're visible) */
}
