/* START CSS RESET*/
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* EMD CSS RESET */

@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Inter:wght@100..900&display=swap");

:root {
  --black: #212121;
  --white: #fcfcfc;
  --blue: #2194e8;
  --grey: #a5a5a5;
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: clamp(1rem, 1vw, 20px);
  box-sizing: border-box;
  transition: 0.5s;
}

body[data-brightness="dark"] {
  background: var(--black);
}

body[data-brightness="dark"] header * {
  color: var(--white);
}

body[data-brightness="light"] {
  background: var(--white);
}

html {
  margin: 0 !important;
}

.f {
  display: flex;
}

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

.fc {
  flex-direction: column;
}

.fw {
  flex-wrap: wrap;
}

.container.global {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  padding: 2rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

header a {
  color: var(--black);
  text-decoration: none;
}

/* Homepage */

.logo,
.logo + a {
  transition: 0.5s;
}

.home-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  text-align: center;
  max-height: 100vh;
  max-width: 100vw;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  transition: 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-image:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 1);
}

.home-image.load-in {
  max-height: 60vh;
  max-width: 500px;
  height: 100%;
  z-index: -1;
}

.home-image.load-in:after {
  animation: fade-out 0.5s 1s forwards;
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.home-image p {
  margin: auto;
  color: var(--white);
  z-index: 10;
}

.home-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.front-page h1 {
  margin: auto;
  font-size: clamp(2rem, 7vw, 7rem);
  position: relative;
  width: 100%;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: #3c3c3c;
}

.front-page.container {
  height: 100vh;
}

.home header {
  height: 100vh;
  pointer-events: none;
}

.home header p,
.home header a,
.home header button {
  pointer-events: all;
}

.home header .container {
  height: 100%;
}

.entry {
  margin-top: auto;
  transition: 0.5s;
}

.entry * {
  transition: 0.5s;
}

.home-links a {
  width: 50%;
  text-align: right;
  margin-top: auto;
}

.home-links a:nth-child(-n + 2) {
  margin-bottom: -1rem;
}

.enter-trigger {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%);
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
}

.enter-trigger span {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.enter-trigger:hover:after {
  height: 80px;
}

.enter-trigger:after {
  content: "";
  width: 1px;
  height: 50px;
  display: inline-block;
  background: var(--black);
  margin: 0.25rem 0.25rem;
  transition: 0.3s;
  margin-left: 0.7rem;
}

.loader span {
  opacity: 0;
  transition: 0.3s;
}

.loader span.load-in {
  opacity: 1;
}

.name span,
.project-title > span,
.cover-title span {
  transition: 1s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  transform: translatey(50px);
  display: inline-block;
  opacity: 0;
}

.project {
  transition: 1s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  transform: translatey(50px);
  opacity: 0;
}

.project-listings {
  opacity: 0;
  transition: 1s;
}

.name span.load-in,
.project-title > span.load-in,
.project.load-in,
.cover-title span.load-in {
  transform: translatey(0px);
  opacity: 1;
}

.parallax {
  transition: 0s;
}

/* Projects */
.project-image {
  position: absolute;
  height: 800px;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.project-image.img-visible {
  opacity: 0.25;
  transition: opacity 0.5s;
}

.project {
  text-decoration: none;
  color: var(--white);
  padding: 2rem 0;
}

.project * {
  pointer-events: none;
}

.projects > .container > .project:not(:last-of-type) {
  border-bottom: 1px solid var(--white);
}

.page-transition > .container {
  height: 200vh;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 3rem);
}

.project h3 {
  margin: auto 0;
  opacity: 0.5;
  transition: 0.5s;
  font-weight: 500;
}

.project:hover h3 {
  opacity: 1;
  transform: translate(2rem);
}

.project .f {
  text-align: right;
  margin: auto 0;
  opacity: 0;
  transition: 0.5s;
  font-weight: 300;
}

.project:hover + .project-image {
  opacity: 0.25;
}

.project:hover .f {
  opacity: 1;
  transform: translate(-2rem);
}

.project p {
  margin: 0;
}

.about-section {
  position: relative;
}

.text-box p {
  max-width: 900px;
  margin: 1rem auto;
  padding: 0 4rem;
}

/* About Section */
.side-header {
  font-size: 30vw;
  z-index: -1;
}

.about-section p {
  max-width: 600px;
}

/* Cta */

.cta label {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cta form {
  margin: 3rem 0 5rem 0;
}

.cta form input:not(input[type="submit"]) {
  width: 48%;
  padding: 1rem;
  border: 0;
  border-bottom: 1px solid;
  background: none;
}

.cta textarea {
  width: 100%;
  margin: 2rem 0;
  border: 1px solid;
  padding: 1rem;
  background: none;
}

.btn,
input[type="submit"] {
  background: var(--black);
  border: 0;
  color: var(--white) !important;
  padding: 1rem;
  max-width: 200px;
  width: 100%;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover,
input[type="submit"]:hover {
  transform: translatey(-10px);
}

.cta-info a {
  text-decoration: none;
}

.cta-info > div:last-child a {
  width: 50%;
}

.cta-info > div:first-child a {
  display: block;
}

/* Project Page Styles */

/* body[data-brightness="light"] header a {
  color: var(--black) !important;
} */

.cover-image {
  height: 100vh;
	position: sticky;
    top: 0;
}

.cover-image h1 {
  margin: auto;
  color: var(--white);
  font-size: clamp(3rem, 10vw, 10rem);
  text-align: center;
  font-weight: 400;
}

.project-content {
    background: var(--white);
    z-index: 1;
    position: relative;
    padding: 1rem 0;
}



.project-details-container {
  margin: 15vh 0;
}

.project-details-container img {
  margin: 0 2rem auto 0;
  width: 100%;
  max-width: 80px;
}

.project-details {
  max-width: 80ch;
}

.project-description {
  max-width: 550px;
}

.project-details > div {
  margin: 2rem 0;
}

.meta-data {
  margin: 0 3rem auto 0;
}

.meta-item {
  width: 250px;
  margin: 0 0 1rem 0;
}

.meta-item span {
  color: #a5a5a5;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: auto 0;
}

.cover-image:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(var(--blur));
  z-index: 1;
	    background: rgb(0, 0, 0, .3);
}

.text_box p, .project-description p {
    margin-bottom: 1rem
}

.cover-image h1 {
  z-index: 2;
  transform: translatey(var(--offset));
  opacity: var(--opacity);
}

.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: var(--white);
  z-index: 100;
  transition: 0.5s;
  height: 0px;
  pointer-events: none;
  opacity: 0;
  z-index: 1000;
}

.home .page-transition {
  bottom: 0;
  top: auto;
  opacity: 1;
}

.page-transition.theme-dark {
  background: var(--black);
}

.project-transition {
  height: 100%;
}

.project-transition.changing {
  opacity: 1;
  pointer-events: all;
}

.page-transition.changing {
  height: 100%;
  opacity: 1;
  pointer-events: all;
}

.page-transition[data-color="dark"] {
  background: var(--black);
}

.page-transition[data-color="light"] {
  background: var(--white);
}

.page-transition[data-color="black"] {
  background: #000;
}

.light * {
  color: var(--white);
  filter: invert();
}

.project-images {
display: grid;
grid-template-columns: repeat(4, 1fr); /* 4 columns, evenly distributed */
gap: 1rem;
}

.project-images img {
  grid-column: span var(--col);
  grid-row: span var(--row);
}

@media only screen and (max-width: 768px) {
	
	.entry {
			font-size: .75rem;
    line-height: 1rem;
	}
	
	.home-links a:nth-child(-n + 2) {
		margin-bottom: 0;
	}
	
  .project-details > div {
    flex-direction: column-reverse;
  }

  .meta-data {
    margin: 2rem 0;
  }
  .project-details-container img {
    max-width: 35px;
  }
	.col-1 {
    --col: 2 !important;
}
}
