/* ~~~~~~~~~~~~ */
/* ~~~ TYPE ~~~ */
/* ~~~~~~~~~~~~ */

@font-face {
  font-family: 'basic-sans';
  src: url("https://use.typekit.net/af/721f9c/00000000000000007735abf2/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff2");
  font-style:normal;
  font-weight:400; 
  font-display: auto;
}

/* ~~~~~~~~~~~~~~~~~ */
/* ~~~ ROOT VARS ~~~ */
/* ~~~~~~~~~~~~~~~~~ */
:root {
   --cBlack: #1E1E1E;
   --cWhite: #FFFFFF;
   --cGreen: #c1ff66;
}


/* ~~~~~~~~~~~~~~~~~~ */
/* ~~~ BASE RULES ~~~ */
/* ~~~~~~~~~~~~~~~~~~ */
*, *::after, *::before { box-sizing: border-box; }


html {
   font-family: 'basic-sans', sans-serif;
   margin: 0; padding: 0;
   scroll-behavior: smooth;
}

body { 
   background: var(--cBlack); 
   color: var(--cWhite); font-size: 20rem; 
   padding: 0; margin: 0; 
   overflow-x: hidden; 
   transition: background 0.2s linear, color 0.2s linear;
   cursor: default;
}

details { margin-right: 0; }
summary { 
  list-style: none;
  background-color: transparent;
  color: inherit; cursor: pointer;
}

em { visibility: hidden; }
img { width: 100%; height: auto; }

::selection {
  background: var(--cWhite);
  color: var(--cBlack);
}


/* ~~~~~~~~~~~~~~~~~~ */
/* ~~~ TYPOGRAPHY ~~~ */
/* ~~~~~~~~~~~~~~~~~~ */
.txt-huge, 
.txt-huge p {
	font-size: calc(6.0rem + (275 - 60) * ((100vw - 300px) / (1920 - 300)));
	line-height: calc(5.0rem + (230 - 50) * ((100vw - 300px) / (1920 - 300)));
	letter-spacing: -0.5rem;
}

.txt-big,
.txt-big p {
   font-size: calc(3.6rem + (140 - 36) * ((100vw - 300px) / (1920 - 300)));
   line-height: calc(3.6rem + (130 - 36) * ((100vw - 300px) / (1920 - 300)));
}

.txt-medium,
.txt-medium p {
  font-size: calc(2.4rem + (48 - 24) * ((100vw - 300px) / (1920 - 300)));
  line-height: calc(2.4rem + (60 - 24) * ((100vw - 300px) / (1920 - 300)));
}

.txt-small,
.txt-small p {
  font-size: calc(1.4rem + (26 - 14) * ((100vw - 300px) / (1920 - 300)));
  line-height: calc(1.8rem + (26 - 18) * ((100vw - 300px) / (1920 - 300)));
}

.txt-xsmall,
.txt-xsmall p {
  font-size: calc(1.2rem + (18 - 12) * ((100vw - 300px) / (1920 - 300)));
  line-height: calc(1.4rem + (24 - 14) * ((100vw - 300px) / (1920 - 300)));
}

@media (max-width: 767px) {
  .sm-txt-small {
    font-size: calc(1.2rem + (18 - 12) * ((100vw - 300px) / (767 - 300)));
    line-height: calc(1.4rem + (24 - 14) * ((100vw - 300px) / (767 - 300)));
  }
}

h1, h2, h3 { margin: 0; font-weight: 400; font-size: inherit; }

ul { list-style-type: none; padding: 0; margin: 0; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }

.norman { font-family: "norman-variable",sans-serif }

.opacity-0 { opacity: 0; }
.opacity-1 { opacity: 1; }
.transition-opacity { transition: opacity 0.25s ease; }


/* ~~~~~~~~~~~~ */
/* ~~~ a11y ~~~ */
/* ~~~~~~~~~~~~ */
.visually-hidden,
.visually-hidden:not(:focus):not(:active) {
  position: absolute !important; overflow: hidden; 
  height: 1px; width: 1px; 
  margin: -1px; padding: 0; 
  border: 0; 
  clip: rect(0 0 0 0); white-space: nowrap; word-wrap: normal !important;  
}
*:focus-visible { outline: 0.4rem solid orangered; outline-offset: 0.5rem; }


/* ~~~~~~~~~~~~~~~~~~~~~~ */
/* ~~~ THEME SWITCHER ~~~ */
/* ~~~~~~~~~~~~~~~~~~~~~~ */
[data-theme="light"] {
   --cBlack: #FFFFFF;
   --cWhite: #1E1E1E;
}

.theme-switch-wrapper {
   display: flex; align-items: center; z-index: 100;
   position: fixed; top: 1vh; right: 1vw;
}

.theme-switch-wrapper input {
   position: absolute; inset: 0;
   border: 0; background: transparent;
}

.theme-switch-wrapper label {
   display: inline-block; position: relative;
   width: 60px; height: 34px;
}

.theme-switch-wrapper .slider {
   background-color: #909090; cursor: pointer; 
   position: absolute; inset: 0;
   transition: background 0.2s linear; 
}

.slider::before {
   content: ""; background-color: #fff;
   position: absolute; bottom: 4px; left: 4px; 
   height: 26px; width: 26px;
   transition: transform 0.2s linear; 
}

.theme-switch-wrapper input[data-theme="light"] + .slider { background-color: var(--cWhite); }
.theme-switch-wrapper input[data-theme="light"] + .slider::before { transform: translateX(26px); }

.slider.round { border-radius: 34px; }
.slider.round::before { border-radius: 50%; }


/* ~~~~~~~~~~~~~~~~~~ */
/* ~~~ HIDE STUFF ~~~ */
/* ~~~~~~~~~~~~~~~~~~ */
.none, 
.hidden,
.no-js-hidden { display: none; }


/* ~~~~~~~~~~~~~~~~~~~ */
/* ~~~~~~ CURSOR ~~~~~ */
/* ~~~~~~~~~~~~~~~~~~~ */

#custom-cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--cWhite);
  pointer-events: none; 
  transition: width 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), height 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.1s ease-out;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  transform-origin: center center;
}

#custom-cursor.link-hover {
  background-color: var(--cBlack);
  width: 60px;
  height: 60px;
}

#custom-cursor.project-hover {
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  z-index: -1;
}

#custom-cursor.fullscreen {
  animation: expandAndCenter 0.3s ease-in-out forwards;
}

@keyframes expandAndCenter {
  0% {
    width: 20rem;
    height: 20rem;
    transform: translate(var(--cursor-x), var(--cursor-y)) scale(1);
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    width: 0vw;
    height: 0vw;
    transform: translate(50vw,50vh) scale(1);
    opacity: 0;
  }
}


.cross {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  pointer-events: none;
}

.cross::before,
.cross::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: var(--cWhite);
  top: 0;
  left: 50%;
}

.cross::before {
  transform: rotate(90deg);
}

.cross::after {
  transform: rotate(0deg);
}

#custom-cursor.link-hover .cross {
  display: block;
}



/* ~~~~~~~~~~~~~~~~~~ */
/* ~~~ VERSIONS ~~~ */
/* ~~~~~~~~~~~~~~~~~~ */
.version-history { border-bottom: 3px dotted #8a8a8a; transition: border-bottom 0.3s ease; }
.version-history:hover { border-bottom: 3px dotted #ffffff; }
    
.version-history span { letter-spacing: -2rem; }
.version-history:hover span {  }

.version-history-wrapper { 
  display: none;
  position: fixed; right: 0; z-index: 101; top: 0;
  height: 90%; max-width: 800px;
  background: var(--cBlack); border: 5px solid var(--cWhite);
  overflow-y: auto; padding: 1rem;
  transform: translateX(100%); transition: transform 0.3s ease-out;

}
.version-history-wrapper.slideIn { transform: translateX(0%); }
.version-history-wrapper > * + * { margin-top: 1rem }

.versions-header { display: flex; align-items:center; justify-content: space-between; gap: 2rem; }
.versions-header button { 
  font-size: 3rem; text-align: right; line-height: 0; 
  width: 50px; height: 50px; padding: 0;
}

.a-version { display: flex; flex-direction: column; border-bottom: 5px solid var(--cWhite); padding-bottom: 1rem; }
.version-metadata { display: flex; align-items:center; justify-content: space-between; }

@media(max-width: 800px) {
  .version-history-wrapper { max-width: 90vw; }
}


button {
  background: none;
  color: var(--cWhite);
  border: none;
  box-shadow: none;
  cursor: pointer;
}


a:not(.partner-link) {
	background-color: transparent;
	color: inherit;
	cursor: pointer;
  text-decoration: underline;
}

a:not(.partner-link)::before, summary::before {  
  transform: scaleX(0);
  transform-origin: bottom right;
}

a:not(.partner-link):hover::before, summary:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
  
}

a:not(.partner-link):hover, summary:hover {
	color: var(--cBlack);
}

a:not(.partner-link)::before, summary::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0 0 0 0;
  background: var(--cWhite);
  z-index: -1;
  transition: transform .3s ease;
}

a:not(.partner-link), 
summary { position: relative; }


.single-project { 
  position: fixed; 
  z-index: 2;
  width: 90vw;
  top: 10%;
  left: 10%;   
  bottom: -10%;        
  background: var(--cBlack);
  border: 5px solid var(--cWhite);
  overflow-y: scroll;
  overflow-x: hidden;
  flex-direction: column;
  max-width: 1800px;
}

.project-title { 
  width:  calc(100% - 60px); 
  word-break: break-word;
}

.project-services {
  display: flex;
  flex-wrap: wrap;
  width: 80%;
}

.btn-close  {
  font-size: 3rem; text-align: right;
  width: 50px; height: 50px; 
  position: fixed; right: 20px; z-index: 10;
  padding: 0; line-height: 0; top: 3rem;
}


/* ~~~ TEAM ~~~ */
.team { 
  position: relative;
  background-color: transparent; 
  color: inherit; 
  cursor: pointer; 
  word-wrap: break-word; 
}
.team::before { 
  content: " "; display: block; background: var(--cWhite);
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1;
  transform: scaleX(0); transform-origin: bottom right; 
  transition: transform .3s ease;
}
.team:hover::before { transform: scaleX(1); transform-origin: bottom left; }
.team:hover { color: var(--cBlack); }



.bio {
  position: fixed; bottom: 0; right: 0; z-index: -1;
  height: 50vh; width: 100%;
  justify-content: flex-end; align-items: flex-end;
}

#alumni li { display: inline; }
#alumni li:last-child .arrow { display: none; }

.partners, .awards {
  display: flex; 
  position: relative; 
  flex-direction: row; 
  flex-wrap: nowrap;
  margin-bottom: 10vh;
  justify-content: flex-start;
  align-items: inherit;
  
}

.partners { width: 100vw; }
.awards { width: 100vw;}

.partners img {
  max-width: 250px;
  object-fit: contain;
}

.awards-images {
  display: flex;
  flex-direction: row;
  gap: 6vw;
  flex-wrap: wrap;
  width: 100%;

}

.awards img {
  max-width: 10rem;
  object-fit: contain;
  max-height: 5rem;
}

.partner-link {
  /*width: 40%;*/
  display: inline-flex;
  margin-right: 5vw;
}

.partners-title, .awards-title { 
  font-size: 24px; 
  margin-right: 5vw; 
  min-width: 250px; 
}


img[data-theme="dark"] { filter: invert(1) grayscale(1); }
img[data-theme="light"] { filter: invert(0) grayscale(1); }

/* Shopify logo is white by default, needs opposite inversion */
.shopify-logo[data-theme="dark"] { filter: invert(0) grayscale(1); }
.shopify-logo[data-theme="light"] { filter: invert(1) grayscale(1); }


.hiring {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: right;
  padding: 2vh;
  width: 100%;
  background-color: var(--cBlack);
  z-index: 3;
  border-top: solid 4px var(--cWhite);
}

/* Hiring banner dismiss button - mobile only */
.hiring-dismiss {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--cWhite);
  cursor: pointer;
  z-index: 4;
}

.hiring-dismiss:hover {
  opacity: 0.8;
}

footer { 
  margin-top: 20vh;
  margin-bottom: 20vh;
}


.a-project { display: inline; position: relative; }
.projects { word-break: break-all; }

.disclosure {
    position: fixed;
    width: 100%; 
    height: 100%;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) scale(0); 
    z-index: 2;
    overflow: hidden; 
    background: var(--cBlack); 
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.disclosure-inner {
  position: absolute; top: 0; left: 0; z-index: 2;
  width: 100%; height: 100%;
  background: var(--cBlack); overflow-y: scroll; overflow-x: hidden;
}

.disclosure-info, 
.disclosure-images { background: var(--cBlack); }

.disclosure-info { display: flex; align-items: flex-start; gap: 2rem; width: 100%; }

.info {
  margin-bottom: 2rem; padding:10px;
  display: flex; flex-direction: column; gap:1rem; flex: 1;   
}

.projects input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  margin: 0;
  cursor: pointer;
  top: 0;
  left: 0;
  border: 0;
}

.a-project input:checked ~ .disclosure {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1; 
  pointer-events: auto; 
  transition-delay: 0.3s; 
}

.a-project:hover {
  text-decoration: line-through;
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  /*backdrop-filter: blur(2px);*/
  z-index: 1;
}

.hidden {
  display: none;
}

header { 
  position: sticky;
  top: 0;
  transition: opacity 1s ease;
}


header.scrolled {
    opacity: 0.05; 
}


/*@media (max-width: 1279px) {
  .disclosure{
    max-width: 85vw;
    transform: translate(-50%, -50%) !important;
  }
}*/


@media (max-width: 767px) {

  #custom-cursor { display: none; }

  .partners {
    width: 100vw;
    flex-direction: column; 
    align-items: unset;
  }

  .partner-link, .partners-title, .awards-title {
    margin-bottom: 5vh;
  }

  .awards {
    flex-direction: column; 
    width: 100vw;
  }

  .awards img {
    width: 80%;
    object-position: center;
  }

  .project-title { display: flex; flex-direction: column; }
  .btn-close { right: 10px; top: 3rem; }

  header { 
    padding-top: 4rem;
    min-height: 420px;
  }

  /* Show dismiss button on mobile */
  .hiring-dismiss {
    display: block;
  }
  
  .hiring {
    padding-top: 3vh;
  }

}