:root {
  --paper: #ffffff;
  --ink: #101216;
  --dot-size: clamp(4px, 0.72vw, 9px);
  --dot-gap: clamp(2px, 0.24vw, 4px);
  color-scheme: light;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.landing {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 64px);
}

.logo-stage {
  position: relative;
  width: min(1120px, 92vw);
  min-height: min(42vw, 360px);
  display: grid;
  align-content: center;
  place-items: center;
}

.logo-stage::before {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(64vw, 760px);
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(25, 28, 34, 0.055), transparent 64%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pixel-word {
  position: relative;
  width: min(1040px, 91vw);
  height: clamp(128px, 26vw, 300px);
  contain: layout paint;
  isolation: isolate;
  touch-action: manipulation;
  transform-origin: center;
  transform: translate3d(0, 0, 0);
}

.pixel-word.is-breathing {
  animation: wordBreath 3.15s ease-in-out infinite;
  will-change: transform, filter;
}

.subtitle {
  position: relative;
  z-index: 1;
  margin: clamp(10px, 1.8vw, 22px) 0 0;
  color: rgba(16, 18, 22, 0.66);
  font-size: clamp(0.9rem, 1.7vw, 1.35rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
}

.subtitle strong {
  color: var(--subtitle-color, var(--ink));
  font-weight: 900;
  transition: color 320ms cubic-bezier(.2, .8, .2, 1);
}

.subtitle em {
  font-style: italic;
}

.coming-soon {
  position: fixed;
  left: 50%;
  bottom: clamp(24px, 5vh, 52px);
  z-index: 2;
  margin: 0;
  color: rgba(16, 18, 22, 0.48);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.pixel {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 2px;
  background: var(--color, var(--ink));
  box-shadow: 0 0 0 1px rgba(16, 18, 22, 0.02);
  opacity: var(--alpha, 1);
  transform:
    translate3d(var(--x), var(--y), 0)
    scale(var(--scale, 1));
  transition:
    background-color 360ms cubic-bezier(.2, .8, .2, 1),
    opacity 240ms ease,
    transform 420ms cubic-bezier(.2, .8, .2, 1),
    box-shadow 360ms ease;
  cursor: pointer;
  will-change: transform, background-color, opacity;
}

.pixel.is-lit {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7),
    0 5px 16px rgba(30, 35, 45, 0.08);
}

.pixel-word.is-breathing .pixel {
  animation: pixelBreath 3.15s ease-in-out infinite;
  animation-delay: var(--breath-delay, 0ms);
}

@keyframes wordBreath {
  0% { filter: saturate(1) brightness(1); transform: translate3d(0, 0, 0) scale(1); }
  50% { filter: saturate(1.05) brightness(1.018); transform: translate3d(0, -1px, 0) scale(1.012); }
  100% { filter: saturate(1) brightness(1); transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes pixelBreath {
  0% {
    opacity: var(--alpha, 1);
    filter: brightness(1);
  }

  50% {
    opacity: 1;
    filter: brightness(1.045);
  }

  100% {
    opacity: var(--alpha, 1);
    filter: brightness(1);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 620px) {
  :root {
    --dot-size: 3px;
    --dot-gap: 1px;
  }

  .logo-stage {
    width: min(100%, calc(100vw - 28px));
  }

  .pixel-word {
    width: min(100%, calc(100vw - 28px));
    height: clamp(112px, 34vw, 160px);
  }

  .subtitle {
    max-width: 88vw;
    font-size: clamp(0.84rem, 3.35vw, 1rem);
    line-height: 1.3;
  }

  .pixel-word.is-breathing {
    animation-duration: 3.6s;
  }

  .pixel-word.is-breathing .pixel {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-word.is-breathing,
  .pixel-word.is-breathing .pixel {
    animation: none;
  }

  .pixel {
    transition: background-color 180ms ease;
  }
}
