/* Base styles – experiments site */

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  cursor: none!important;
}

* {
  box-sizing: border-box;
  cursor: none !important;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}


body {
  margin: 0;
  background: #0b0b0b;
  color: #f5f5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: none !important;
}

/* =========================
   Layout
   ========================= */
.home {
  padding: 80px 96px;
}

.brand {
  position: fixed;
  top: 32px;
  left: 48px;
  font-size: 14px;
  opacity: 0.6;
}

.intro {
  max-width: 720px;
  margin-top: 140px;
}

.intro h1 {
  font-size: 40px;
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.intro-sub {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.6;
  max-width: 480px;
}

/* =========================
   Experiments list
   ========================= */
.collection-status {
  margin-top: 64px;
  margin-bottom: 12px;

  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0.45;

  user-select: none;
}

.experiments {
  margin-top: 100px;
}

/* experiments index */
.index-col {
  display: flex;
  align-self: stretch;
}

.index {
  display: inline-block;

  font-size: 28px;
  line-height: 1.1;

  opacity: 0.35;

  transition:
    font-size 240ms ease,
    line-height 240ms ease,
    opacity 300ms ease;
}

.experiment-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;

  background: none;
  border: none;
  padding: 0;
  padding-right: 10px;

  font: inherit;
  font-size: 28px;
  color: inherit;
  text-decoration: none;

  width: fit-content;
  position: relative;

  transition: transform 300ms ease, opacity 300ms ease;
}


.experiment-item:hover {
  transform: translateX(6px);
}

.experiment-item:hover .index {
  font-size: 42px;
  line-height: 1.15;
  opacity: 0.75;
}


.experiment-item:focus,
.experiment-item:focus-visible {
  outline: none;
  opacity: 0.85;
}

.experiment-text {
  display: flex;
  flex-direction: column;
}

.experiment-text .title {
  line-height: 1.1;
}

.experiment-text .meta {
  margin-top: 6px;
  font-size: 13px;

  opacity: 0;
  max-height: 0;
  overflow: hidden;

  transform: translateY(-2px);

  transition:
    opacity 240ms ease,
    transform 240ms ease,
    max-height 240ms ease;
}


/* experiment hover meta text */
.experiment-item:hover .meta {
  opacity: 0.5;
  max-height: 40px;
  transform: translateY(0);
}




/* =========================
   Custom cursor
   ========================= */
.cursor-dot {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  opacity: 1;
  mix-blend-mode: difference;
  transition:
    width 380ms ease,
    height 380ms ease,
    opacity 250ms ease,
    background-color 200ms ease;

}

.cursor-dot.cursor-active {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.7);
}

.cursor-hover {
  background: rgba(255, 255, 255, 0.6);
}

/* =========================
   Page transitions
   ========================= */
/* Transition page */
.page-transition {
  position: fixed;
  inset: 0;
  background: #0b0b0b;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.page-transition.active {
  opacity: 1;
}

/* Home page fade in */
.page-content {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.page-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   Footer
   ========================= */
.site-footer {
  position: fixed;
  right: 24px;
  bottom: 20px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transition: opacity 600ms ease;
}

.page-content.is-visible ~ .site-footer {
  opacity: 0.35;
}

.site-footer:hover {
  opacity: 0.55;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 768px) {
  .cursor-dot {
    display: none !important;
  }

  html,
  body {
    cursor: auto;
  }

  body {
    font-size: 15px;
  }

  .intro h1 {
    font-size: 28px;
  }

  .experiment-item {
    font-size: 24px;
  }
}
