:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0a0710;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

#grainient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.grainient-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4rem);
  padding: 2rem;
  text-align: center;
}

.logo {
  width: clamp(180px, 24vw, 360px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.15));
}

/* ---- Fold text ---- */
.fold-text {
  margin: 0;
  display: inline-block;
  color: #f7f2e8;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  white-space: pre-wrap;
  user-select: text;
}

.fold-text-visual {
  display: inline;
}

.fold-text-whitespace {
  display: inline;
}

.fold-text-word {
  display: inline-block;
  white-space: nowrap;
}

.fold-text-segment {
  display: inline-block;
  line-height: inherit;
  perspective: 700px;
  transform-style: preserve-3d;
  vertical-align: baseline;
}

.fold-text-piece {
  position: relative;
  display: inline-block;
  color: inherit;
  line-height: inherit;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.fold-text-piece::after {
  content: '';
  position: absolute;
  inset: -0.08em -0.02em;
  pointer-events: none;
  opacity: var(--fold-crease, 0);
  mix-blend-mode: multiply;
  border-radius: 0.08em;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(255, 255, 255, 0.26) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .fold-text-piece {
    transform: none !important;
  }

  .fold-text-piece::after {
    opacity: 0 !important;
  }

  .logo {
    opacity: 1 !important;
  }
}
