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

/* RESET & BASE (for index.html and info/index.html) */
html {
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden; /* Prevent horizontal 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;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* PAGE LAYOUT - General structure for pages like index.html and info/index.html */
.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 - Applies to index.html and info/index.html */
.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 - Global (for index.html and info/index.html) */
.unstyled-link {
  all: unset;
  cursor: pointer;
  font-weight: 400;
  transition: font-weight 0.2s ease;
}

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

.no-hover-link {
  all: unset;
  cursor: pointer;
  font-weight: inherit;
  color: inherit;
  text-decoration: none;
}

.no-hover-link:hover,
.no-hover-link:focus,
.no-hover-link:active {
  font-weight: inherit;
  color: inherit;
  text-decoration: none;
  opacity: 1;
}

/* --- ANIMATED TEXT STYLES (JavaScript Controlled Typewriter) --- */
.animated-text {
  position: relative;
  display: inline-block;
  vertical-align: top;
  white-space: nowrap;
  transition: none;
  margin-right: -4px;
}

.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;
  vertical-align: top;
  opacity: 1;
  animation: blink-caret 0.75s step-end infinite;
}

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

@keyframes blink-caret {
  from { opacity: 1; }
  50% { opacity: 0; }
  to { opacity: 1; }
}
/* --- END ANIMATED TEXT STYLES --- */

/* GRID - Homepage Specific (index.html) */
.grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  background: transparent;
  box-sizing: border-box;
}

/* CARD STYLE – full bleed (for homepage) */
.card {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  background: #ccc;
  aspect-ratio: unset;
}

.card img,
.card video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: relative;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.card video {
  pointer-events: auto;
}

/* TEXT UTILITIES (for homepage, h2, p) */
h2 {
  margin: 40px 0 0 0;
  font-size: 1rem;
  font-weight: normal;
}

h2 + p {
  margin-top: 0;
}

/* RIGHT SECTION - Specific to info/index.html */
.right {
  margin-left: 300px;
  max-width: 100%;
  width: calc(100vw - 360px);
  box-sizing: border-box;
  position: relative;
  padding-top: 250px;
  padding-right: 24px;
  padding-left: 24px;
  padding-bottom: 80px;
}

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

/* WORD + CHARACTER SPANS - Specific to info/index.html */
.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 - Global */
.bottom {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 200px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: white;
  background: transparent;
  mix-blend-mode: difference;
}

.bottom p {
  margin: 0;
}

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

/* Responsive tweaks for index.html & info/index.html */
@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;
  }
}
