* {
  padding: 0;
  margin: 0;
}

:root {
  --font-primary: -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-light: 500;
  --font-weight-bold: 900;
  --font-weight-normal: 600;
  --font-weight-bold: 900;
  --letter-spacing-tight: -0.02em;
  --letter-spacing-wide: .05em;
  --font-size-xl: clamp(2rem, 2rem + 3vw, 3.5rem);
  --font-size-l: clamp(2rem, 2rem + 2.5vw, 2.5rem);
  --font-size-m: clamp(1rem, 1.5rem, 2rem);
  --font-size-s: clamp(1rem, 1.1rem, 2rem);
  --font-size-xs: clamp(.9rem, .9rem, 1rem);
  --font-size-switch: 3vw;
  --font-color-normal: black;
  --time: 60s;
  --total: 12;
  --left: -300rem;
}

body {
  touch-action: pan-y;
  -moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
  background-color: white;
  color: var(--font-color-normal);
  font-family: var(--font-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-weight: var(--font-weight-normal);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-normal);
  line-height: 1;
  letter-spacing: var(--letter-spacing-tight);
  color: #2f2f30;
}

h2 {
  font-family: var(--font-primary);
  font-size: var(--font-size-l);
  font-weight: var(--font-weight-normal);
  line-height: 1.1;
  color: #2f2f30;
}

h3 {
  font-family: var(--font-primary);
  font-size: var(--font-size-xs);
  color: #2f2f30;
}

.details h3 {
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
}

h4 {
  font-family: var(--font-primary);
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-normal);
  line-height: 1.2;
  color: #2f2f30;
}

p {
  font-family: var(--font-primary);
  font-size: var(--font-size-s);
  font-weight: var(--font-weight-light);
  color: #2f2f30;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.spacer6 {
  margin: 6vh 0;
}

.spacer30 {
  margin: 30vh 0;
}

.icon {
  height: 18px;
  width: auto;
  margin: auto auto -2px 0;
  color: #2f2f30;
}

.inner {
  position: fixed;
  width: 100vw;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 1rem;
  padding: 0 1rem 0 0;
  z-index: 200;
  mix-blend-mode: difference;
}

.logo {
  width: 70px;
  height: auto;
  margin-right: .6rem;
  color: white;
}

.name {
  text-transform: uppercase;
  font-size: clamp(1rem, 1rem + 1.4vw, 1.4rem);
  font-weight: var(--font-weight-bold);
  color: white;
}

.language-select {
  position: fixed;
  top: 2.4rem;
  right: -1rem;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-normal);
  color: black;
  padding: .3rem 2.2rem 0 0;
  z-index: 900;
}

.language-select a:first-child {
  margin-right: .8rem;
}

.language {
  display: none;
}

.language.active {
  display: block;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
  align-items: flex-start;
  overflow: hidden;
}

.hero-text {
  width: 70%;
  padding-top: 15%;
  text-align: left; 
  line-height: 1.1;
  color: white;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  mix-blend-mode: difference;
  z-index: 10;
}

.hero-sub {
  padding-top: 2rem;
  width: 40%;
  text-align: left; 
  line-height: 1.1;
  color: white;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  mix-blend-mode: difference;
  z-index: 10;
}

@media screen and (max-width:1000px) {
  .hero-text, .hero-sub {
    width: 70%;
  }
}

@media screen and (max-width:800px) {
  .hero-text {
    padding-top: 25%;
  }
}

@media screen and (max-width:600px) {
  .hero-text, .hero-sub {
    width: 90%;
  }
  .hero-text {
    padding-top: 35%;
  }
  .language-select {
    right: 1rem;
  }
}

.button-down {
  position: fixed;
  top: 0;
  transform: translateY(85vh);
  right: 1.2rem;
  padding: 5px;
  margin: 30px auto;
  background: #eee;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  transition: all 0.2s linear;
  z-index: 50;
}

.button-down::after {
  content: "";
  position: absolute;
  left: 17px;
  z-index: 11;
  display: block;
  width: 25px;
  height: 25px;
  border-top: 1px solid black;
  border-left: 1px solid black;
}

.button-down::after {
  top: 10px;
  transform: rotate(225deg);
}

.avs {
  display: inline-block;
  margin: 0 0 1rem 2.7rem;
}

.avs img {
  width: 80px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-left: -2rem;
  border: 5px solid white;
}

.trail-img {
  position: absolute;
  object-fit: cover;
  transform-origin: center;
  pointer-events: none;
  will-change: transform;
  border-radius: 10px;
  z-index: 1;
}

.layout {
  position: relative;
  padding: 1rem;
}

.col {
  margin: 1rem 1rem 0 0;
}

.col-main {
  flex: 1;  
}  

.col-complementary {
  flex: 1;  
}

@media only screen and (min-width: 800px) {
  .layout {
    display: flex;
    gap: 1rem;
  }
  .right {
    margin-left: .65vw;
  }
}

#app {
  position: relative;
  margin-top: 6vh;
  height: 100vh;
}

.sphere-root {
  position: relative;
  height: 100%;
  --radius: 520px;
  --viewer-pad: 72px;
  --circ: calc(var(--radius) * 3.14);
  --rot-y: calc((360deg / var(--segments-x)) / 2);
  --rot-x: calc((360deg / var(--segments-y)) / 2);
  --item-width: calc(var(--circ) / var(--segments-x));
  --item-height: calc(var(--circ) / var(--segments-y));
}

.sphere-root * {
  box-sizing: border-box;
}

.sphere,
.item,
.item__image {
  transform-style: preserve-3d;
}

main.sphere-main {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  perspective: calc(var(--radius) * 4);
  perspective-origin: 50% 50%;
  contain: layout paint size;
}

.sphere {
  transform: translateZ(calc(var(--radius) * -1));
  will-change: transform;
  animation: rotate-sphere 240s linear infinite;
}

@keyframes rotate-sphere {
  0% {
    transform: translateZ(calc(var(--radius) * -1)) rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: translateZ(calc(var(--radius) * -1)) rotateX(0deg) rotateY(360deg);
  }
}

.overlay, .overlay--blur, .edge-fade, .edge-fade--top, .edge-fade--bottom {
  display: none;
}

.item {
  width: calc(var(--item-width) * var(--item-size-x));
  height: calc(var(--item-height) * var(--item-size-y));
  position: absolute;
  top: -999px;
  bottom: -999px;
  left: -999px;
  right: -999px;
  margin: auto;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  transition: transform 300ms;
  transform: rotateY(calc(var(--rot-y) * (var(--offset-x) + ((var(--item-size-x) - 1) / 2)) + var(--rot-y-delta, 0deg))) rotateX(calc(var(--rot-x) * (var(--offset-y) - ((var(--item-size-y) - 1) / 2)) + var(--rot-x-delta, 0deg))) translateZ(var(--radius));
}

.item__image {
  position: absolute;
  display: block;
  inset: 10px;
  border-radius: var(--tile-radius, 1px);
  background: transparent;
  overflow: hidden;
  backface-visibility: hidden;
  transition: transform 300ms;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.item__image:focus {
  outline: none;
}

.item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  backface-visibility: hidden;
}

.viewer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--viewer-pad);
}

@media (max-aspect-ratio: 1/1) {
  .viewer .frame {
    height: auto;
    width: 100%;
  }                                                     
}

.viewer .scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
}

.sphere-root[data-enlarging='true'] .viewer .scrim {
  opacity: 1;
}

.viewer .enlarge img {
  width: 50%;
  height: 50%;
  object-fit: cover;
}

.dg-scroll-lock {
  overflow: hidden;
}

 .crds {
  display: grid;
  grid-gap: 0;
  grid-template-columns: repeat(4, 1fr); 
}

.crd {
  padding: 0 1rem;
  border-right: .5px solid grey;
}

.crd:last-child{
  border-right: none;
}

.crd h4, .crd p {
  margin-bottom: 1rem;
}

@media (max-width: 1000px) {
  .crds { 
    grid-template-columns: repeat(2, 1fr); 
  }
  .crd {
    padding-bottom: .5rem;
  }
  .crd:nth-child(even) {
    border-right: none;
  }
}

@media(max-width: 640px) {
  .crds {
    grid-template-columns: repeat(1, 1fr);
  }
  .crd {
    padding-bottom: .5rem;
  }
}

.left {
  width: 85%;
  margin: 0 0 1rem 1rem;
}

@media(max-width: 640px) {
  .left {
    width: 90%;
  }
}

.swing {
  margin: 11rem 1rem 0 1rem;
  display: flex;
  text-align: center;
  justify-content: center;
}

@media(max-width: 600px) {
  .submit {
    display: block;
  }
}

.image {
  display: block;
  box-sizing: border-box;
  width: 99.5vw;
  height: auto;
  padding: 0 1.4rem 0 0;
}

.pic {
  display: block;
  box-sizing: border-box;
  margin-left: 1rem;
  width: 100%;
  height: auto;
  border-radius: 2px;
  overflow: hidden;
}

.pic img {
  object-fit: cover;
  width: 100%;
  height: 65vh;
  border-radius: 2px;
  filter: saturate(1.2);
  -webkit-filter: saturate(1.2);
}

.slider {
  margin-top: -8rem;
  width: 100vw;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card {
  width: 33vw;
  height: auto;
  padding: 1rem;
  opacity: 0;
  border-radius: .8rem;
  background: #F5F5F7;
  pointer-events: none;
  position: absolute;
  left: 33%;
  justify-content: space-between;
  animation: slide 20s linear infinite;
  animation-delay: calc(4s * var(--timer));
}

.details {
  display: flex;
  flex-direction: row;
}

.details img {
  width: 8rem;
  aspect-ratio: 1;
  border-radius: 8%;
  object-fit: cover;
  margin-right: 1.4rem;
}

.layer:hover .profile-card {
  animation-play-state: paused;
}

.profile-card:last-child {
  animation-delay: calc(-4s * var(--timer));
}

@keyframes slide {
  0% {
    opacity: 0;
    transform: translateY(100%) scale(0.5);
  }
  5%,20% {
    opacity: 0.5;
    transform: translateY(100%) scale(0.7);
  }
  25%,40% {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0%) scale(1.1);
  }
  45%,60% {
    opacity: 0.5;
    transform: translateY(-100%) scale(0.7);
  }
  65%,100% {
    opacity: 0;
    transform: translateY(-100%) scale(0.5);
  }
}

@media (max-width: 1000px) {
  .profile-card {
    width: 60vw;
    left: 20%;
  }
}

@media (max-width: 800px) {
  .profile-card {
    width: 74vw;
    left: 10%;
  }
}

@media (max-width: 600px) {
  .profile-card {
    width: 70vw;
    left: 10%;
  }
  .details h3 {
    line-height: .8;
  }
}

.hd-content {
  display: flex;
  justify-content: center;
  flex-direction: row;
  margin-top: 15rem;
  padding: 3rem 6rem 0 6rem;
  background: rgb(90, 214, 255);
  background: linear-gradient(0deg, rgb(90, 214, 255) 0%, rgba(255, 255, 255, 1) 100%);
}

.hd-content img {
  height: auto;
  width: 30vw;
  object-fit: cover;
}

.hd-title {
  padding: 3.5rem 2rem 0 2rem;
  line-height: 1.1;
}

@media (max-width: 1200px) {
  .hd-content {
    flex-direction: column-reverse;
    padding: 0;
  }
  .hd-content img {
    margin: 0 auto;
    height: 30vh;
    width: auto;
  }
  .hd-description {
    background: white;
  }
  .hd-title {
    padding: 1rem;
  }
}

@media (max-width: 600px) {
  .hd-content {
    padding-top: 8rem;
  }
}

main#main-doc {
  padding: 3rem 1rem;
  margin-left: 20%;
}

section.main-section {
  margin-bottom: 1.2rem;
}

section.main-section p {
  font-family: var(--font-primary);
  font-size: var(--font-size-s);
  font-weight: var(--font-weight-light);
  line-height: 1.2;
  padding: .5rem 0;
}

.banner img {
  width: 100%;
  height: 40vh;
  object-fit: cover;
  padding-bottom: 2rem;
  border-radius: 2px;
  filter: contrast(1.1) brightness(1.1) saturate(1.1);
  -webkit-filter: contrast(1.1) brightness(1.1) saturate(1.1);
}

header {
  padding: 0 0 1.3rem 0;
}

nav {
  position: fixed;
  height: 50%;
  width: 20%;
  overflow-y: scroll;
  z-index: 1;
  top: 6rem;
  left: .5rem;
}

nav ul {
  padding: 0;
}

nav ul li {
  list-style: none;
  padding: 1rem 0 0 .5rem;
}

nav ul li:last-child {
  margin-bottom: 4rem;
}

.nav-link {
  text-decoration: none;
  opacity: .6;
  font-family: var(--font-primary);
  font-size: var(--font-size-xs);
}

.nav-link:hover {
  opacity: 1;
}

@media (max-width:1150px) {
  nav {
    display: none;
  }
  main#main-doc {
    margin-left: 0;
  }
  main#main-doc {
    padding: 6.5rem 1rem;
  }
}

footer {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: .5rem;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-light);
  letter-spacing: normal;
  color: #999;
  z-index: 10;
}

footer span {
  margin: .5rem 1rem;
  text-align: justify;
}

footer .table { 
  margin: 0 1rem; 
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  line-height: 1.4;
}

footer .table a {
  padding-right: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media screen and (max-width:760px) {
  footer .table {
    display: flex;
    flex-direction: column;
    margin: 0 1rem 2rem 1rem;
  }
}

.careers {
  height: 100vh;
  background: linear-gradient(180deg, rgb(61, 190, 232) 0%, rgb(231, 222, 90) 43%, rgb(235, 223, 214) 83%);
}

.careers img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: saturate(1.2);
  -webkit-filter: saturate(1.2);
}

.crs {
  mix-blend-mode: normal;
  color: #111;
  width: 40%;
}

@media screen and (max-width:1080px) {
  .crs {
    width: 36%;
  }
  .pad {
    padding-top: 10%;
  }
}

@media screen and (max-width:980px) {
  .crs {
    width: 90%;
  }
  .pad {
    padding-top: 15%;
  }
  .careers img {
    transform: translateY(78.5%);
    height: 56vh;
    object-position: 100%;
  }
}

@media screen and (max-width:600px) {
  .pad {
    padding-top: 20%;
  }
}

@media screen and (max-width:500px) {
  .pad {
    padding-top: 35%;
  }
  .crs {
    width: 97%;
  }
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  margin: 1rem;
  padding: 0;
  gap: 1rem;
}

.flex-item {
  flex: 50%;
  width: 50%;
  border-radius: 10px;
  border: 1px solid lightgrey;
}

figcaption {
  text-align: left;
  margin: 1rem;
}

figcaption p, figcaption h3 {
  margin-bottom: 1rem;
}

figcaption h3 {
  opacity: .4;
  text-transform: uppercase;
}

figcaption span {
  color:lightslategray;
  line-height: 1.2;
}

@media only screen and (min-width: 35em) {
  .flex-container { 
    display: flex;
  }  
  .flex-item {
    flex: 30%;
    width: 300px;
    height: 100%;
    margin: 0;
    padding-right: 2rem;
  } 
  figcaption {
    width: 100%;
    text-align: left;
  }
}
  
@media only screen and (min-width: 74em) {
  .flex-container { 
    display: flex;
  }
  .flex-item {
    flex: 20%;
    padding: 0;
    width: 300px;
    height: 100%;
  }
  figcaption {
    width: 86%;
    text-align: left;
  }
}