:root {
  --color-dark: #222222;
  --color-palette-1: #d9c1b0;
  --color-palette-2: white;
  --color-accent-1: #00ffff;
  --color-darker-1: rgba(0, 0, 0, 0.1);
  --color-droplet: #3070f6;
  --color-drc: #7fb351;
  --color-fusebit: #e74628;
  --color-auth0: #da5f36;
  --color-hawaiian: #e0318c;
  --color-microsoft: #4aa3ea;
  --color-intel: #3070c3;
  --background-gradient: linear-gradient(90deg, #fdfcfb 0%, #e2d1c3 100%);
  --layout-XS: 10px;
  --layout-S: 20px;
  --layout-M: 30px;
  --layout-L: 40px;
  --layout-XL: 50px;
  --layout-XXL: 70px;
  --page-margin: 30px;
  --nav-height: 100px;
  --radius: 5px;
  --button-icon-width: 30px;
  --timeline-img-height: 40px;
  --timeline-line-margin: 20px;
  --timeline-line-height: 6px;
  --timeline-label-height: 20px;
  --timeline-dot-height: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--color-dark);
  background-image: var(--background-gradient);
}

h1 {
  font-size: 3.8rem;
  line-height: 4.8rem;
  margin-block: 0.8rem;
}

h2 {
  font-size: 3rem;
  margin-block: 0;
}

h3 {
  font-size: 2.4rem;
  margin-block: 0;
}

h4 {
  font-size: 1.8rem;
  margin-block: 0;
}

h5 {
  font-size: 1.2rem;
  margin-block: 0;
  font-weight: 400;
}

.f-S {
  font-size: 0.8rem;
}

@media only screen and (max-device-width: 480px) {
  body {
    font-size: 24px;
  }

  h3 {
    font-size: 2.8rem;
  }

  h4 {
    font-size: 2.4rem;
  }

  h5 {
    font-size: 1.8rem;
  }

  .f-S {
    font-size: 1.2rem;
  }
}

a {
  color: var(--color-dark);
  cursor: pointer;
  text-decoration: none;
}

section {
  padding: var(--layout-XXL) var(--page-margin);
  gap: var(--layout-XXL);
}

section > img {
  width: var(--layout-XL);
}

.q-l {
  color: gray;
  margin-top: -10px;
  font-size: 1.8rem;
  font-weight: 600;
}

.q-r {
  color: gray;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 0.2rem;
}

.v {
  display: flex;
  flex-direction: column;
}

.h {
  display: flex;
}

.l {
  justify-content: start;
}

.r {
  justify-content: end;
}

.m {
  justify-content: center;
}

.c {
  align-items: center;
}

.sb {
  justify-content: space-between;
}

.w {
  flex-wrap: wrap;
}

.wr {
  flex-wrap: wrap-reverse;
}

.col-2 {
  flex-basis: 48%;
}

@media (max-width: 1100px) {
  .col-2 {
    flex-basis: 48%;
  }
}

@media (max-width: 600px) {
  .col-2 {
    flex-basis: 100%;
  }
}

.col-3 {
  flex-basis: 32%;
}

@media (max-width: 1100px) {
  .col-3 {
    flex-basis: 48%;
  }
}

@media (max-width: 600px) {
  .col-3 {
    flex-basis: 100%;
  }
}

.x-200 {
  min-width: 200px;
}

.x-230 {
  min-width: 230px;
}

.mx-60 {
  max-width: 60px;
}

.mx-120 {
  max-width: 120px;
}

.mx-200 {
  max-width: 200px;
}

.mx-600 {
  max-width: 600px;
}

.mx-800 {
  max-width: 800px;
}

.mx-1000 {
  max-width: 1000px;
}

.mx-1200 {
  max-width: 1200px;
}

@media only screen and (max-device-width: 480px) {
  .col-2 {
    flex-basis: 80%;
  }

  .col-3 {
    flex-basis: 80%;
  }

  .x-230 {
    min-width: 100%;
  }

  .mx-600 {
    max-width: 80%;
  }
}

.g-XS {
  gap: var(--layout-XS);
}

.g-S {
  gap: var(--layout-S);
}

.g-M {
  gap: var(--layout-M);
}

.g-L {
  gap: var(--layout-L);
}

.g-XL {
  gap: var(--layout-XL);
}

.p-XS {
  padding: var(--layout-XS);
}

.p-S {
  padding: var(--layout-S);
}

.p-M {
  padding: var(--layout-M);
}

.p-L {
  padding: var(--layout-L);
}

.p-XL {
  padding: var(--layout-XL);
}

.bc-1 {
  background-color: var(--color-palette-1);
}

.bc-2 {
  background-color: var(--color-palette-2);
}

.bc-a1 {
  background-color: var(--color-accent-1);
}

.bc-d1 {
  background-color: var(--color-dark);
}

.bc-droplet {
  background-color: var(--color-droplet);
}

.bc-drc {
  background-color: var(--color-drc);
}

.bc-fusebit {
  background-color: var(--color-fusebit);
}

.bc-auth0 {
  background-color: var(--color-auth0);
}

.bc-hawaiian {
  background-color: var(--color-hawaiian);
}

.bc-microsoft {
  background-color: var(--color-microsoft);
}

.bc-intel {
  background-color: var(--color-intel);
}

.bi-1 {
  background-image: radial-gradient(at 50% 60%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 80%);
}

.c-a1 {
  color: var(--color-accent-1);
}

.b {
  font-weight: 600;
}

.i {
  font-style: italic;
}

.bs-S {
  box-shadow: 0px 2px 4px var(--color-darker-1);
}

.bs-M {
  box-shadow: 0px 0px 10px var(--color-darker-1);
}

.b-c1 {
  border: 2px solid var(--color-dark);
}

.btn {
  cursor: pointer;
  white-space: nowrap;
  border-radius: var(--radius);
}

.btn-hov {
  &:hover {
    background-color: var(--color-darker-1);
  }
}

.ico-S {
  max-width: 48px;
  padding: 7px;
}

.ico {
  max-width: 54px;
  padding: 7px;
}

.ico-L {
  max-width: 76px;
  padding: 10px;
}

.btn-hov > img {
  width: var(--button-icon-width);
}

.br {
  border-radius: var(--radius);
}

.br-rd {
  border-radius: 1000px;
}

.nav {
  position: sticky;
  top: 0;
  padding: var(--page-margin);
  height: var(--nav-height);
  background-image: var(--background-gradient);
  z-index: 999;
}

.logo {
  font-family: "Monoton", Helvetica, sans-serif;
  font-size: 3rem;
  line-height: 3rem;
  user-select: none;
}

.anchor {
  display: block;
  position: relative;
  top: calc(0px - var(--nav-height));
  visibility: hidden;
}

/*
  SPLASH
*/

.splash {
  position: relative;
  height: calc(100dvh - var(--nav-height));
  background-image: linear-gradient(170deg, rgba(0, 0, 0, 0) 20%, rgba(226, 199, 177, 1) 100%);
}

@media (min-width: 950px) and (orientation: portrait) {
  .splash {
    height: calc(65dvh - var(--nav-height));
  }
}

.splash > img {
  position: absolute;
  bottom: 0;
  right: 0;
  max-width: 80dvw;
  max-height: 80dvh;
  object-fit: contain;
}

.splash > .content {
  position: absolute;
  top: 5%;
  max-width: 850px;
  padding: var(--page-margin);
}

@media (min-width: 1200px) {
  .splash > .content {
    bottom: 100px;
    top: unset;
  }
}

/*
  TIMELINE
*/

.timeline {
  position: relative;
  height: calc(
    var(--timeline-img-height) + 2 * var(--timeline-line-margin) + var(--timeline-line-height) +
      var(--timeline-label-height)
  );
  margin-right: 2%;
  width: calc(100dvw - 2 * var(--page-margin));
  max-width: 1200px;
  overflow-x: hidden;
}

.timeline .line {
  position: absolute;
  right: 0px;
  top: calc(var(--timeline-img-height) + var(--timeline-line-margin));
  height: var(--timeline-line-height);
  width: calc(96% + 6px);
  transition: all 1000ms;
}

.timeline .line-droplet {
  right: 83%;
  width: 11.5%;
}

.timeline .line-droplet.from-right {
  right: 83%;
  width: 0%;
}

.timeline .line-droplet.from-left {
  right: 94.5%;
  width: 0%;
}

.timeline .img-droplet {
  right: 89%;
  width: 46px;
}

.timeline .line-drc {
  right: 79%;
  width: 4%;
}

.timeline .line-drc.from-right {
  right: 79%;
  width: 0%;
}

.timeline .line-drc.from-left {
  right: 83%;
  width: 0%;
}

.timeline .img-drc {
  right: 81%;
  width: 42px;
}

.timeline .line-fusebit {
  right: 73%;
  width: 2.5%;
}

.timeline .line-fusebit.from-right {
  right: 73%;
  width: 0%;
}

.timeline .line-fusebit.from-left {
  right: 75.5%;
  width: 0%;
}

.timeline .img-fusebit {
  right: 74.5%;
  width: 43px;
}

.timeline .line-auth0 {
  right: 64%;
  width: 9%;
}

.timeline .line-auth0.from-right {
  right: 64%;
  width: 0%;
}

.timeline .line-auth0.from-left {
  right: 73%;
  width: 0%;
}

.timeline .img-auth0 {
  right: 69.5%;
  width: 38px;
}

.timeline .line-hawaiian {
  right: 60%;
  width: 4%;
}

.timeline .line-hawaiian.from-right {
  right: 60%;
  width: 0%;
}

.timeline .line-hawaiian.from-left {
  right: 64%;
  width: 0%;
}

.timeline .img-hawaiian {
  right: 62%;
}

.timeline .line-microsoft {
  right: 20%;
  width: 30%;
}

.timeline .line-microsoft.from-right {
  right: 20%;
  width: 0%;
}

.timeline .line-microsoft.from-left {
  right: 50%;
  width: 0%;
}

.timeline .img-microsoft {
  right: 35%;
}

.timeline .line-intel {
  right: 9%;
  width: 11%;
}

.timeline .line-intel.from-right {
  right: 9%;
  width: 0%;
}

.timeline .line-intel.from-left {
  right: 20%;
  width: 0%;
}

.timeline .img-intel {
  right: 14.5%;
}

.timeline img {
  position: absolute;
  width: var(--timeline-img-height);
  transform: translateX(calc(var(--timeline-img-height) / 2));
  cursor: pointer;
}

.timeline .dot {
  position: absolute;
  top: calc(
    var(--timeline-img-height) + var(--timeline-line-margin) -
      ((var(--timeline-dot-height) - var(--timeline-line-height)) / 2)
  );
  height: var(--timeline-dot-height);
  width: var(--timeline-dot-height);
  border-radius: var(--timeline-dot-height);
  transition: transform 1000ms;
  transform: scale(1);
}

.timeline .dot.from-left {
  transform: scale(0);
}

.timeline .dot.from-right {
  transform: scale(0);
}

.timeline .label {
  position: absolute;
  font-size: 0.8rem;
  transform: translate(0.4rem, -0.8rem);
  top: calc(var(--timeline-img-height) + (2 * var(--timeline-line-margin)) + var(--timeline-line-height));
}

.timeline .dot-1 {
  right: 96%;
}

.timeline .dot-2 {
  right: 91%;
}

.timeline .dot-3 {
  right: 86%;
}

.timeline .dot-4 {
  right: 81%;
}

.timeline .dot-5 {
  right: 76%;
}

.timeline .dot-6 {
  right: 71%;
}

.timeline .dot-7 {
  right: 66%;
}

.timeline .dot-8 {
  right: 61%;
}

.timeline .dot-9 {
  right: 56%;
}

.timeline .dot-10 {
  right: 51%;
}

.timeline .dot-11 {
  right: 46%;
}

.timeline .dot-12 {
  right: 41%;
}

.timeline .dot-13 {
  right: 36%;
}

.timeline .dot-14 {
  right: 31%;
}

.timeline .dot-15 {
  right: 26%;
}

.timeline .dot-16 {
  right: 21%;
}

.timeline .dot-17 {
  right: 16%;
}

.timeline .dot-18 {
  right: 11%;
}

.timeline .dot-19 {
  right: 6%;
}

.timeline .dot-20 {
  right: 1%;
}

/* 
  WORK CARDS
*/

.work-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100dvw - 2 * var(--page-margin) - 20px);
  max-width: calc(1200px - 20px);
}

.work-card-view-container {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

.work-card-view {
  transition: all 1000ms;
}

.work-card-view > div {
  min-width: calc(100% - 2 * var(--layout-S));
  margin: var(--layout-S);
}

.work-card-view img {
  width: 80px;
}

.work-card-left-gradient {
  position: absolute;
  margin: var(--layout-S) 0px;
  top: 0;
  left: 0;
  width: var(--layout-S);
  height: calc(100% - 2 * var(--layout-S));
  background-image: linear-gradient(90deg, rgba(248, 245, 243, 1) 0%, rgba(248, 245, 243, 0) 100%);
}

.work-card-right-gradient {
  position: absolute;
  margin: var(--layout-S) 0px;
  top: 0;
  right: 0;
  width: var(--layout-S);
  height: calc(100% - 2 * var(--layout-S));
  background-image: linear-gradient(90deg, rgba(225, 215, 206, 0) 0%, rgba(225, 215, 206, 0.5) 100%);
}
