:root {
  --bg-black: #1D1D1F;
  --blob-size: 125%;
}

html {
  overflow-x: hidden;
  background-color: #fff;
  background-size: 0.8rem 0.8rem;
  background-image:
  linear-gradient(to right, rgba(180, 180, 180, 0.05) 1px, transparent 1px),
  linear-gradient(to bottom, rgba(180, 180, 180, 0.05) 1px, transparent 1px);
  font-family: "polymath", sans-serif;
  font-weight: 400;
  font-style: normal;
  scroll-behavior: smooth;
}

body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

#bgGradient {
  height: 100vh;
  width: 100vw;
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(0deg, rgba(29, 29, 31, 0.9) 0%, rgba(29, 29, 31, 0.5) 20%, rgba(29, 29, 31, 0.4) 50%, rgba(29, 29, 31, 0.5) 80%, rgba(29, 29, 31, 0.9) 100%);
  z-index: -2;
}

header h1, header h2, header h3, header h4, header h5, header p {
  color: #ffffff;
}

header h1 {
  font-family: "polymath", sans-serif;
  font-weight: 700;
  font-style: normal;
}

h1, h2, h3, h4, h5 {
  color: var(--bg-black);
}

h5 {
  padding-top: 1rem;
}

p {
  color: var(--bg-black);
  letter-spacing: 0.035em;
}

em {
  color: #AAB4C0;
}

li {
  color: var(--bg-black);
  letter-spacing: 0.035em;
}

.note {
  font-family: "professor", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #DADCE2;
  pointer-events: none;
  position: absolute;
  width: 100%;
  text-align: center;
  line-height: 1.25;
}

.comment {
  font-family: "professor", sans-serif;
  font-weight: 200;
  font-style: normal;
  color: #DADCE2;
}

#blurb h5, #blurb p {
  color: #6B727B;
}

.impact {
  background: -webkit-linear-gradient(-30deg, #449BFF, #AA79FF);
  background: -moz-linear-gradient(-30deg, #449BFF, #AA79FF);
  background: -o-linear-gradient(-30deg, #449BFF, #AA79FF);
  background: linear-gradient(-30deg, #449BFF, #AA79FF);

  -webkit-background-clip: text;
  -moz-background-clip: text;
  -o-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  -o-text-fill-color: transparent;
  text-fill-color: transparent;

  font-family: "polymath-display", sans-serif;
  font-weight: 700;
  font-style: normal;
  text-shadow: rgba(0, 0, 0, 0.5) 0px 0px 1.5rem;
}

.bgFill {
  height: 100%;
  width: 100vw;
  background-color: var(--bg-black);
  z-index: -10000;
  position: absolute;
}

.bgGrid {
  position: absolute;
  background-size: 0.8rem 0.8rem;
  background-image:
  linear-gradient(to right, rgba(180, 180, 180, 0.05) 1px, transparent 1px),
  linear-gradient(to bottom, rgba(180, 180, 180, 0.05) 1px, transparent 1px);
  height: 100%;
  width: 100vw;
  z-index: -3;
}

.header {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

.header .note {
  left: -48%;
  top: 1.75rem;
  width: 100%;
  transform: rotate(-4deg);
}

#caseStudyHead {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100vw;
  background-color: rgba(0,0,0,.25);
  /* position: relative; */
  padding-bottom: 8rem;
}

.wrapper {
  margin-top: 8rem;
  max-width: 74rem;
  top: auto;
  left: auto;
  box-sizing: border-box;
}

.max-length {
  max-width: 54rem;
}

.headContent {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.headContent {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: flex-end;
}

.bento-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-item-large {
}

.bento-item-small {
}

.bento-item img {
  /* margin-bottom: 1rem; */
  aspect-ratio: 8 / 5;
  border: rgba(225, 225, 225, 0.125) 0.25px dashed;
}

@media only screen and (min-width: 60em) {
  .bento-grid {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 2rem;
    align-items: flex-end;
  }

  .bento-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .bento-item-large {
    grid-column: 1 / 2;

  }

  .bento-item-small {
    grid-column: 2 / 4 ;
  }

  .bento-item img {

    aspect-ratio: 8 / 5;
    border: rgba(225, 225, 225, 0.125) 0.25px dashed;
  }
}

#btn-back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 3rem;
  height: 3rem;
}

main {
  margin-top: 2rem;
}

main img {
  margin-bottom: 3rem;
}

.no-hardware-acceleration {
  display: none;
}

@media only screen and (min-width: 60em) {
  .grid {
    margin: 0;
    padding: 0;
    letter-spacing: -0.31em;
    text-rendering: optimizeSpeed;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
  }

  .grid img:nth-child(1) {
    padding-right: 0.3rem;
    margin-bottom: 1rem;
    width: 50%;
  }

  .grid img:nth-child(2) {
    padding-left: 0.3rem;
    margin-bottom: 1rem;
    width: 50%;
  }
}

section {
  padding-bottom: 5rem;
}

.rounded {
  border-radius: 0.5rem;
}

.btn {
  width: 100%;
  text-align: center;
  padding: 0.6rem 0.75rem 0.5rem 0.75rem;
  background: rgba(20, 20, 20, 0);
  border: var(--bg-black) 2px solid;
  color: var(--bg-black);
  border-radius: 3rem;
  transition: background 0.25s;
}

.btn:hover {
  background: linear-gradient(92deg, rgba(240, 150, 255, 0.2) 0%, rgba(255, 104, 104, 0.2) 50%, rgba(255, 198, 92, 0.2) 100%);
  color: var(--bg-black);
}

.list-doubled {
  display: flex;
  flex-flow: row wrap;
}

.list-wrap {
  width: 50%;
}

.list-wrap:nth-child(2n-1) {
  padding-right: 1rem;
}

.list-wrap:nth-child(2n) {
  padding-left: 1rem;
}

.caption {
  /* width: 100%; */
  background-color: #333;
  text-align: center;
  padding: 0.75rem 0.25rem 0.5rem 0.25rem;
  color: #EAEAEA;
  border-radius: 0 0 0.25rem 0.25rem;
  /* text-wrap: balance; */
}

#featured {
  background-color: #333;
  padding: 1.5rem;
  border-radius: 0.75rem;

}

#featured div {
  padding: 0.25rem;
  background-color: #EAEAEA;
  border-radius: 0.25rem;

}

#featured img {
  max-height: 75vh;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

#calendar {
  padding: 0.5rem;
  background-color: #333;
  border-radius: 0.75rem;
}

#calendar .chart {
  padding: 1rem 0.5rem 0.5rem 0.5rem;
}

#cal-title {
  text-align: center;
  width: 100%;
  background-color: #EAEAEA;
  color: #333;
  padding: 1rem 0.5rem 0.5rem 0.5rem;
  border-radius: 0.5rem 0.5rem 0 0;
}

.calendar-card {
  background-color: #EAEAEA;
  padding: 0.3rem;
  transform: scale(85%);
  transition: transform 0.25s;
}

.calendar-card:hover {
  transform: scale(100%);
  cursor: pointer;
}

.calendar-card .rounded {
  border-radius: 0.25rem;
}

.chart {
  margin: 0;
  padding: 0;
  letter-spacing: -0.31em;
  text-rendering: optimizeSpeed;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-flow: row wrap;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
}

.unit {
  letter-spacing: normal;
  text-rendering: auto;
  vertical-align: top;
  word-spacing: normal;
  display: inline-block;
}

/* Unit xSmall */
.xs-2 {
  display: block;
  visibility: visible;
  width: 50%;
}

/* Unit Small */
@media only screen and (min-width: 25em) {
  .s-2 {
    display: block;
    visibility: visible;
    width: 50%;
  }
}

/* Unit Medium */
@media only screen and (min-width: 38em) {
  .m-2 {
    display: block;
    visibility: visible;
    width: 50%;
  }
  .m-offset-1-8 {
    display: block;
    visibility: visible;
    width: 12.5%;
  }
}

/* Unit Large */
@media only screen and (min-width: 60em) {
  .l-4 {
    display: block;
    visibility: visible;
    width: 25%;
  }
  .l-offset-1-8 {
    display: block;
    visibility: visible;
    width: 12.5%;
  }
}

.scroller {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  width: 3rem;
  height: 3rem;
}

#scroller {
  width: 3rem;
  height: 3rem;
  border: 2px solid #f1f1f1;
  border-radius: 50%;
  position: relative;
  animation: down 2s infinite ease-in-out;
  -webkit-animation: down 2s infinite ease-in-out;
}

#scroller::before {
  content: '';
  position: absolute;
  top: 0.95rem;
  left: 1rem;
  width: 0.75rem;
  height: 0.75rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

@keyframes down {
  0% {
    transform: translate(0);
  }
  37% {
    transform: translateY(1rem);
  }
  75% {
    transform: translate(0);
  }
}

@-webkit-keyframes down {
  0% {
    transform: translate(0);
  }
  37% {
    transform: translateY(1rem);
  }
  75% {
    transform: translate(0);
  }
}

footer {
  border-top: rgba(225, 225, 225, 0.125) 0.45px dashed;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  width: 100%;
  background-color: var(--bg-black);
  padding: 0.5rem 0.25rem 0.3rem 0.25rem;
}

footer p {
  width: 100%;
  text-align: center;
  color: #fff;
}

@keyframes moveInCircle {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes moveVertical {
  0% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(50%);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%);
  }
  50% {
    transform: translateX(50%) translateY(10%);
  }
  100% {
    transform: translateX(-50%) translateY(-10%);
  }
}

.gradient-bg {
  z-index: -3;
  width: 100vw;
  height: 100%;
  position: fixed;
  overflow: hidden;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.25;
}

.bgBlobs {
  z-index: -3;
  width: 100vw;
  height: 100vh;
  position: absolute;
  overflow: hidden;
  top: 0;
  opacity: 0.25;
}

.gradients-container {
  filter: url(#goo) blur(2rem);
  width: 100%;
  height: 100%;
}

.g1, .g2, .g3, .g4, .g5 {
  will-change: transform, opacity;
}

.g1 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(220, 220, 80, 0.8) 0, rgba(220, 220, 50, 0) 50%) no-repeat;
  mix-blend-mode: hard-light;
  width: calc(var(--blob-size) * 1.6);
  height: calc(var(--blob-size) * 1.2);
  top: calc(120% - var(--blob-size));
  left: calc(140% - var(--blob-size));
  transform-origin: calc(50% - 200px);
  animation: moveVertical 35s ease infinite;
  animation-delay: -20s;
  opacity: 0.75;
}

.g2 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(30, 120, 230, 0.8) 0, rgba(200, 50, 50, 0) 50%) no-repeat;
  mix-blend-mode: hard-light;
  width: calc(var(--blob-size) * 2);
  height: calc(var(--blob-size) * 1.25);
  top: calc(80% - var(--blob-size) / 0.85);
  left: calc(80% - var(--blob-size) / 0.9);
  transform-origin: calc(30% + 100px);
  animation: moveInCircle 22s both infinite ease;
  animation-delay: -7s;
  opacity: 0.65;
}

.g3 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(100, 220, 255, 0.8) 0, rgba(100, 220, 255, 0) 50%) no-repeat;
  mix-blend-mode: hard-light;
  width: calc(var(--blob-size) * 2);
  height: calc(var(--blob-size) * 1.25);
  top: calc(120% - var(--blob-size));
  left: calc(80% - var(--blob-size));
  transform-origin: calc(40% + 600px);
  animation: moveInCircle 25s linear reverse infinite;
  animation-delay: -18s;
  opacity: 0.75;
}

.g4 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(18, 113, 255, 0.8) 0, rgba(8, 113, 255, 0) 50%) no-repeat;
  mix-blend-mode: hard-light;
  width: var(--blob-size);
  height: var(--blob-size);
  top: calc(50% - var(--blob-size) / 1.25);
  left: calc(90% - var(--blob-size) / 1.25);
  transform-origin: calc(50% - 200px);
  animation: moveHorizontal 20s ease infinite;
  animation-delay: -11s;
  opacity: 0.75;
}

.g5 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(221, 74, 255, 0.8) 0, rgba(221, 74, 255, 0) 50%) no-repeat;
  mix-blend-mode: hard-light;
  width: calc(var(--blob-size) * 2.25);
  height: calc(var(--blob-size) * 2);
  top: calc(80% - var(--blob-size));
  left: calc(50% - var(--blob-size));
  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: moveInCircle 30s ease infinite;
  animation-delay: -20s;
  opacity: 0.75;
}
