/* set baseline */
@import "reboot.css";
/* include Inter font-family */
@import url('https://rsms.me/inter/inter.css');
/* include Material Icons font-family */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* define variables */
:root {
    --font-family: "Inter", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --dark-color: hsl(var(--hue), 100%, 10%);
    --light-color: hsl(var(--hue), 95%, 95%);
    --base: hsl(var(--hue), 95%, 50%);
    --complimentary1: hsl(var(--hue-complimentary1), 95%, 50%);
    --complimentary2: hsl(var(--hue-complimentary2), 95%, 50%);
    --border_light: rgba(255, 255, 255, 0.1875);
    --border_dark: rgba(0, 0, 0, 0.05);
    --border_dark: rgba(255, 255, 255, 0.0125);
    --overlay_light: rgba(255, 255, 255, 0.5);
    --overlay_dark: rgba(0, 0, 0, 0.75);
    --bg-gradient_light: linear-gradient(
        to bottom,
        hsl(var(--hue), 95%, 90%),
        hsl(var(--hue), 90%, 75%)
    );
    --bg-gradient_dark: linear-gradient(
        to bottom,
        hsl(var(--hue), 70%, 30%),
        hsl(var(--hue), 50%, 15%)
    );
    --text-gradient_light: linear-gradient(
        45deg,
        var(--base) 0%,
        var(--complimentary2)
    );
    --text-gradient_dark: linear-gradient(
        45deg,
        var(--base) 0%,
        var(--complimentary1)
    );
}

/* light mode + dark mode themes */
html, html.light {
  --overlay-background: var(--overlay_light);
  --text-color: var(--dark-color);
  --highlight: var(--light-color);
  --bg-gradient: var(--bg-gradient_light);
  --border-color: var(--border_light);
  --text-gradient: var(--text-gradient_light);
  --comp-stop: var(--complimentary2);
  --interactive-background: rgba(255, 255, 255, 0.125);
  --active-background: rgba(255, 255, 255, 0.325);
  --active-highlight: transparent;
}
html.dark {
  --overlay-background: var(--overlay_dark);
  --text-color: var(--light-color);
  --highlight: var(--dark-color);
  --bg-gradient: var(--bg-gradient_dark);
  --border-color: var(--border_dark);
  --text-gradient: var(--text-gradient_dark);
  --comp-stop: var(--complimentary1);
  --interactive-background: rgba(255, 255, 255, 0.05);
  --active--background: rgba(255, 255, 255, 0.075);
  --active-highlight: var(--bg-gradient);
}
@media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
  html {
    --overlay-background: var(--overlay_light);
    --text-color: var(--dark-color);
    --highlight: var(--light-color);
    --bg-gradient: var(--bg-gradient_light);
    --border-color: var(--border_light);
    --text-gradient: var(--text-gradient_light);
    --comp-stop: var(--complimentary2);
    --interactive-background: rgba(255, 255, 255, 0.125);
    --active-background: rgba(255, 255, 255, 0.325);
    --active-highlight: transparent;
  }
  html.dark {
    --overlay-background: var(--overlay_dark);
    --text-color: var(--light-color);
    --highlight: var(--dark-color);
    --bg-gradient: var(--bg-gradient_dark);
    --border-color: var(--border_dark);
    --text-gradient: var(--text-gradient_dark);
    --comp-stop: var(--complimentary1);
    --interactive-background: rgba(255, 255, 255, 0.05);
    --active--background: rgba(255, 255, 255, 0.075);
    --active-highlight: var(--bg-gradient);
  }
}
@media (prefers-color-scheme: dark) {
  html {
    --overlay-background: var(--overlay_dark);
    --text-color: var(--light-color);
    --highlight: var(--dark-color);
    --bg-gradient: var(--bg-gradient_dark);
    --border-color: var(--border_dark);
    --text-gradient: var(--text-gradient_dark);
    --comp-stop: var(--complimentary1);
    --interactive-background: rgba(255, 255, 255, 0.05);
    --active--background: rgba(255, 255, 255, 0.075);
    --active-highlight: var(--bg-gradient);
  }

  html.light {
    --overlay-background: var(--overlay_light);
    --text-color: var(--dark-color);
    --highlight: var(--light-color);
    --bg-gradient: var(--bg-gradient_light);
    --border-color: var(--border_light);
    --text-gradient: var(--text-gradient_light);
    --comp-stop: var(--complimentary2);
    --interactive-background: rgba(255, 255, 255, 0.125);
    --active-background: rgba(255, 255, 255, 0.325);
    --active-highlight: transparent;
  }
}
/* reset cursor */
html, html *, body, body * {
    cursor: none;
}
/* custom cursor for non-touch devices */
@media (hover: hover) {
    .cursor-dot,
    .cursor-dot--outline {
        pointer-events: none;
        position: absolute;
        top: 50%;
        left: 50%;
        border-radius: 50%;
        opacity: 0;
        -webkit-transform: translate(-50%, -50%);
              transform: translate(-50%, -50%);
        transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
    }
    .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: hsl(var(--hue), 95%, 50%, 0.875);
    }
    .cursor-dot--outline {
        width: 48px;
        height: 48px;
        background: hsl(var(--hue), 95%, 50%, 0.05);
        border: 1px solid hsl(var(--hue), 95%, 50%, 0.25);
        border-radius: 24px;
    }
}
/* general styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(.38,.63,1,.88);
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  align-content: stretch;
  padding: 0.5rem;
  font-family: var(--font-family);
  color: var(--text-color);
  background: var(--bg-gradient);
}
/* homepage orb canvas */
.orb-canvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -999;
  filter: blur(0.5rem);
}
@media (prefers-contrast: high) {
  .orb-canvas {
    display: none;
  }
}
.overlay {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  align-content: stretch;
  background: var(--overlay-background);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem 0 rgba(0, 0, 0, 0.1);
}
.overlay__inner {
  width: 100%;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
}
.overlay__inner::selection {
  color: var(--dark-color);
  background: transparent !important;
}
.overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.img-avatar {
  position: relative;
  width: 100%;
  max-width: 64px;
  height: 64px;
  background: transparent;
  border-top: 1px solid var(--border-color);
  border-radius: 50%;
}
.img-avatar img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
}
.svg--logo {
  position: absolute;
  width: 100%;
  height: auto;
  color: var(--dark-color);
  z-index: 1;
}
.gradientFill--base { stop-color: var(--base); }
.gradientFill--complimentary { stop-color:var(--comp-stop); }
.header--toggle {
  position: relative;
  right: 2rem;
  height: 1.5rem;
}
/* color scheme toggle switch */
input[type="checkbox"].toggle--input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: inherit;
}
.toggle {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    color: var(--text-color);
    z-index: 100;
}
.toggle:before {
    position: absolute;
    top: 0;
    left: -32px;
    content: 'Light';
    content: '\e430';
}
.toggle:after {
    position: absolute;
    top: 0;
    right: -30px;
    content: 'Dark';
    content: '\e3a7';
    transform: rotate(150deg);
}
.toggle:focus ~ .toggle--input {
  outline-color: var(--highlight);
  outline-style: solid;
  outline-width: 2px;
  outline-offset: 2px;
}
.toggle--input:checked ~ .toggle--control::after {
  left: 30px;
  background-color: var(--highlight);
}
.toggle--control {
  will-change: background-color;
  position: relative;
  display: inline-block;
  width: 52px;
  height: 24px;
  background-color: var(--text-color);
  border: 2px solid transparent;
  border-radius: 12px;

}
.toggle--input:hover ~ .toggle--control, .toggle--control:hover {
  background-color: var(--comp-stop);
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;

}
.toggle--control::after {
  will-change: left;
  content: '';
  position: absolute;
  top: 50%;
  left: 4px;
  display: block;
  width: 15px;
  height: 15px;
  background-color: var(--highlight);
  border: var(--highlight);
  border-radius: 8px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

/* homepage styling */
.overlay__title {
  font-size: 1.875rem;
  line-height: 120%;
  font-weight: 800;
  letter-spacing: -0.0375em;
  margin-bottom: 1.5rem;
  max-width: 60rem;
  text-wrap: pretty;
}
.overlay__title2 {
  font-size: 1.75rem;
  line-height: 120%;
  font-weight: 700;
  letter-spacing: -0.0325em;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  text-wrap: pretty;
}
.text-gradient {
  color: var(--text-color);
  background-image: var(--text-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  letter-spacing: -0.0125em !important;
}
.overlay__description {
  position: relative;
  font-size: 1.125rem;
  line-height: 160%;
  letter-spacing: -0.03125em;
  max-width: 50rem;
  margin-bottom: 1.5rem;
  opacity: 0.75;
}
.overlay__description:last-child {
  margin-bottom: 3.5rem;
}
.overlay__description a {
  display: inline-block;
  line-height: 140%;
  border-bottom: 2px solid transparent;
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
  opacity: 1;
}
.overlay__description a:hover {
  text-decoration: none;
  color: var(--comp-stop);
  border-bottom: 2px solid var(--comp-stop);
}
.tooltip {
  position: relative;
  display: inline-block;
  opacity: 1;
}
.tooltip[title]:hover:after {
  content: attr(title);
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--overlay-background);
  color: var(--text-color);
  font-size: 1.125rem;
  line-height: 100%;
  letter-spacing: -0.01875em;
  font-weight: 400;
  text-wrap: nowrap;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
  z-index: 999;
}
.legal {
  margin-top: auto;
  font-size: 0.675rem;
  opacity: 0.25;
}
@media only screen and (min-width: 500px) {
  body {
    padding: 1rem;
  }
  .overlay {
    border-radius: 1rem;
    padding: 2rem;
  }
  .overlay__title {
    font-size: 2.25rem;
  }
  .legal p {
    font-size: 0.875rem;
    margin-bottom: 0;
  }
}
@media only screen and (min-width: 767px) {
  body {
    padding: 1.5rem;
  }
  .overlay {
    padding: 4rem;
    border-radius: 1rem;
  }
  .overlay__header {
      margin-bottom: 4rem;
  }
  .img-avatar {
    position:relative;
    width: 100%;
    max-width: 96px;
    height: 96px;
    background: transparent;
    border-top: 1px solid var(--border-color);
    border-radius: 50%;
  }
  .overlay__title {
    font-size: 3.25rem;
    margin-bottom: 2rem;
  }
  .overlay__title2 {
    font-size: 2.5rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
  }
  .overlay__description {
    font-size: 1.25rem;
    line-height: 170%;
  }
  .overlay__description:last-child {
    margin-bottom: 4rem;
  }
}
@media only screen and (min-width: 1600px) {
  body {
    padding: 2rem;
  }
  .overlay {
    padding: 6rem 8rem 4rem;
    border-radius: 1.25rem;
  }
  .overlay__header {
      margin-bottom: 6rem;
  }
  .overlay__title {
    font-size: 4.75rem;
    letter-spacing: -0.0325em;
    max-width: 90rem;
    margin-bottom: 2.5rem;
  }
  .overlay__title2 {
    font-size: 3rem;
  }
  .overlay__description {
    font-size: 1.5rem;
    /* letter-spacing: -0.0625em; <-- check @ actual screen size */
    letter-spacing: -0.03125em;
    max-width: 60rem;
    margin-bottom: 2rem;
  }
  .overlay__description:last-child {
    margin-bottom: 6rem;
  }
}
@media only screen and (min-width: 1920px) {
  body {
    padding: 3rem;
  }
  .overlay {
    padding: 6rem 10rem 4rem;
    border-radius: 1.5rem;
  }
  .overlay__title {
    margin-bottom: 3rem;
  }
  .overlay__description {
    font-size: 1.75rem;
    line-height: 175%;
  }
  .tooltip[title]:hover:after {
    top: -50%;
    font-size: 1.25rem;
  }
}

/* case study card list */
.past-work {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  margin: 3rem 0 4rem;
  padding: 0;
  gap: 1rem;
}
.past-work__item {
  flex: 1 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: transparent;
  background: var(--interactive-background);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 0.75rem 2rem 0 rgba(0, 0, 0, 0.025);
}
.past-work__item a {
  text-decoration: none;
  color: inherit;
}
.past-work__item a:first-child {
  position: absolute;
  top: -1px;
  left: -1px;
  bottom: -1px;
  right: -1px;
  z-index: 0;
  background: transparent;
  border-radius: 1rem;
}
.past-work__item > *:not(a:first-child) {
  position: relative;
}
.past-work__thumbnail {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 48px;
  height: auto;
  border-radius: 0.875rem;
  margin-bottom: 1.5rem;
}
.past-work__title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.0375em;
  margin-bottom:  0.5rem;
}
.past-work__description {
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.past-work__learn-more {
  margin-top: auto;
}
.past-work__learn-more:after {
  content: "\2192";
  position: relative;
  top: 0;
  left: 8px;
  transition: all 0.2s ease-in;
}
.past-work__item:hover {
  background: var(--active-background);
  color: var(--text-color);
  box-shadow: 0 0.75rem 2rem 0 rgba(0, 0, 0, 0.15);
}
.past-work__item:hover a:first-child {
  background: var(--active-highlight);
  opacity: 1;
}
.past-work__item:hover .past-work__learn-more {
  /* color: var(--comp-stop); */
}
.past-work__item:hover .past-work__learn-more:after {
  left: 10px;
  color: hsl(var(--hue), 95%, 50%);
}
.past-work__item.current-item {
  border-color: hsl(var(--hue), 95%, 50%);
}
/*
.past-work__item.current-item > .past-work__title {
  color: hsl(var(--hue), 95%, 50%);
}
*/
@media only screen and (min-width: 769px) {
  .past-work {
    flex-direction: row;
    gap: 1.5rem;
  }
}
@media only screen and (min-width: 1600px) {
  .past-work {
    margin: 4rem 0 6rem;
    gap: 2.0rem;
  }
}
@media only screen and (min-width: 1920px) {
    .past-work {
      gap: 2.5rem;
    }
}

/* case study content */
.case-study {
    display: grid;
    grid-template-columns: 0.5rem auto 0.5rem;
    margin-bottom: 3rem;
}
.case-study > * {
    grid-column: 2;
}
.case-study > h1 {
    font-size: 1.875rem;
    line-height: 120%;
    font-weight: 800;
    letter-spacing: -0.0375em;
    margin-bottom: 1.5rem;
}
.case-study > h2 {
    font-size: 1.5rem;
    line-height: 120%;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}
.case-study > h2:first-of-type {
    margin-top: 0;
}
.case-study > p {
    font-size: 1.125rem;
    letter-spacing: -0.025em;
    line-height: 150%;
    margin-bottom: 1rem;
    text-wrap: balance;
}
.case-study > p.lead {
    margin-bottom: 0;
}
.case-study > figure {
    grid-column: 1 / -1;
    margin: 1.5rem 0;
}
.case-study > figure + figure {
    margin-top: 0;
}
.case-study > figure img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}
.case-study > figure img.no-border {
    border: none;
}
.case-study > figure figcaption {
    padding: 0.625rem 0.25rem;
    text-align: center;
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 150%;
    text-wrap: balance;
}
@media only screen and (min-width: 767px) {
  .case-study {
    grid-template-columns: 1rem 2rem auto 1rem 2rem;
    margin-bottom: 5rem;
  }
  .case-study > * {
      grid-column: 3;
  }
  .case-study > h1 {
      font-size: 2.75rem;
  }
  .case-study > h2 {
    font-size: 2rem;
    margin-bottom: 1.75rem;
    margin-top: 1.5rem;
  }
  .case-study > p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
  .case-study > figure {
      margin: 3rem 0;
  }
  .case-study > figure.feature {
      grid-column: 1 / -1;
      margin: 3rem 0;
  }
  .case-study > figure figcaption {
      padding: 0.625rem 1.5rem;
  }
}
@media only screen and (min-width: 1200px) {
    .case-study {
      grid-template-columns: 1fr 1fr 50rem 1fr 1fr;
      margin-bottom: 7.5rem;
    }
    .case-study > p {
        line-height: 180%;
    }
    .case-study > p.lead {
      font-size: 1.5rem;
      font-weight: 300;
    }
    .case-study > figure {
        grid-column: 2 / -2;
    }
    .case-study > figure img {
      border-radius: 1rem;
    }
    .case-study > figure.feature {
        margin: 3rem 0 4rem;
    }
}
@media only screen and (min-width: 1920px) {
  .case-study {
    grid-template-columns: 1fr 8rem 60rem 8rem 1fr;
    margin-bottom: 10rem;
  }
  .case-study > h1 {
      font-size: 4.25rem;
  }
  .case-study > h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    margin-top: 0;
  }
  .case-study > p {
    font-size: 1.75rem;
    margin-bottom: 3rem;
  }
  .case-study > p + p {
      margin-top: 0;
  }
  .case-study > p.lead {
    font-size: 2rem;
  }
  .case-study > figure figcaption {
      font-size: 1rem;
      line-height: 180%;
      padding: 0.75rem 8rem;
  }
  .case-study > figure {
      margin: 5rem 0;
  }
  .case-study > figure.feature {
      margin: 5rem 0 6.5rem;
  }
}


/* Animations */
/* fade-in animation */
.fade-in {
  animation: fadeIn ease 3s;
  -webkit-animation: fadeIn ease 3s;
  -moz-animation: fadeIn ease 3s;
  -o-animation: fadeIn ease 3s;
  -ms-animation: fadeIn ease 3s;
}
.fade-in--quick {
  animation: fadeIn ease 1.2s;
  -webkit-animation: fadeIn ease 1.2s;
  -moz-animation: fadeIn ease 1.2s;
  -o-animation: fadeIn ease 1.2s;
  -ms-animation: fadeIn ease 1.2s;
}

.fade-in--grow {
    animation: grow ease 1.8s;
    -webkit-animation: grow ease 1.8s;
    -moz-animation: grow ease 1.8s;
    -o-animation: grow ease 1.8s;
    -ms-animation: grow ease 1.8s;
}

@keyframes fadeIn{
  0% {
    opacity:0;
  }
  33% {
    opacity:0;
  }
  100% {
    opacity:1;
  }
}
@-moz-keyframes fadeIn {
  0% {
    opacity:0;
  }
  33% {
    opacity:0;
  }
  100% {
    opacity:1;
  }
}
@-webkit-keyframes fadeIn {
  0% {
    opacity:0;
  }
  33% {
    opacity:0;
  }
  100% {
    opacity:1;
  }
}
@-o-keyframes fadeIn {
  0% {
    opacity:0;
  }
  33% {
    opacity:0;
  }
  100% {
    opacity:1;
  }
}

@keyframes grow {
  0% {
    transform:scale(0);
  }
  66% {
    transform:scale(0.25);
  }
  100% {
    transform:scale(1);
  }
}
@-moz-keyframes grow {
  0% {
    transform:scale(0);
  }
  66% {
    transform:scale(0.25);
  }
  100% {
    transform:scale(1);
  }
}
@-webkit-keyframes grow {
  0% {
    transform:scale(0);
  }
  66% {
    transform:scale(0.25);
  }
  100% {
    transform:scale(1);
  }
}
@-o-keyframes grow {
  0% {
    transform:scale(0);
  }
  66% {
    transform:scale(0.25);
  }
  100% {
    transform:scale(1);
  }
}
