/* UNIVERSAL RESET */
* {
  box-sizing: border-box;
}

/* RESET & BASE */
html {
  height: 100%;
  overflow-y: scroll;
}

body {
  margin: 0;
  background: #fbfbfb;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: black;
  display: flex;
  flex-direction: column;
}

/* PAGE LAYOUT */
.page {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
  flex-grow: 1;
}

/* LEFT SIDEBAR */
.left {
  position: fixed;
  top: 40px;
  left: 40px;
  width: 200px;
  line-height: 1.4;
  z-index: 1000;
  background: transparent;
  mix-blend-mode: difference;
  color: white;
}

.left p {
  margin: 0 0 24px 0;
  text-align: left;
  font-weight: 400;
}

.name {
  font-weight: 900;
  font-size: 1.1em;
  letter-spacing: -0.02em;
}

/* UNSTYLED LINK */
.unstyled-link {
  all: unset;
  cursor: pointer;
  font-weight: 400;
  transition: font-weight 0.2s ease;
}

.unstyled-link:hover {
  font-weight: 700;
}

/* ANIMATED TEXT STYLES */
.animated-text {
  position: relative;
  display: inline-block;
  vertical-align: top;
  white-space: nowrap;
  transition: none;
}

.animated-word-inner {
  display: inline-block;
  transition: none;
}

.animated-word-inner::after {
  content: '|';
  display: inline-block;
  color: white;
  margin-left: -1.5px;
  margin-right: 0px;
  animation: blink-caret 0.75s step-end infinite;
  vertical-align: top;
}

.animated-text.is-deleting .animated-word-inner::after,
.animated-text.is-empty .animated-word-inner::after {
  opacity: 0;
}

@keyframes blink-caret {
  from, to { opacity: 0; }
  50% { opacity: 1; }
}

/* GRID */
.grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100vw;
  background: transparent;
  box-sizing: border-box;
}

/* CARD STYLE */
.card {
  position: relative;
  width: 100vw;
  height: auto;
  display: block;
  background: #ccc;
  aspect-ratio: unset;
}

.card img,
.card video {
  width: 100vw;
  height: auto;
  display: block;
  object-fit: cover;
  position: relative;
}

.card video {
  opacity: 1;
  pointer-events: auto;
}

/* TEXT UTILITIES */
h2 {
  margin: 40px 0 0 0;
  font-size: 1rem;
  font-weight: normal;
}
h2 + p {
  margin-top: 0;
}

/* RIGHT SECTION */
.right {
  margin-left: 300px;
  max-width: 1450px;
  position: relative;
  padding-top: 250px;
  padding-right: 24px;
  padding-left: 24px;
  padding-bottom: 80px;
}

.right p {
  font-size: 60px;
  line-height: 1.05;
  margin-top: 4px;
  letter-spacing: -2px;
  position: relative;
  z-index: 1;
  overflow: visible;
  word-break: normal;
}

/* WORD + CHARACTER SPANS */
.word {
  display: inline-block;
  white-space: nowrap;
}

.char {
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
  will-change: transform, filter;
  transform-origin: center;
}

/* BOTTOM FIXED ELEMENT */
.bottom {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 200px;
  font-size: 0.9rem;
  line-height: 1.35;
  color: white;
  background: transparent;
  mix-blend-mode: difference;
}

.bottom p {
  margin: 0;
}

.bottom p + p {
  margin-top: 30px;
}

/* BLOB CURSOR */
.blob-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: white;
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .right {
    margin-left: 220px;
    padding-top: 150px;
  }
  .right p {
    font-size: 45px;
  }
}

@media (max-width: 768px) {
  .left {
    position: static;
    width: auto;
    padding: 20px;
    color: black;
    mix-blend-mode: normal;
  }

  .right {
    margin-left: 0;
    padding: 15px;
    padding-top: 80px;
  }

  .right p {
    font-size: 30px;
    letter-spacing: -1px;
  }
}
