*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: #05050a;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  position: relative;
  background: #05050a;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#blinking-squares {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  user-select: none;
}

.brand-name {
  position: relative;
  display: inline-block;
  color: #f3f4f6;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 2rem;
}

.brand-name.is-live {
  color: transparent;
}

.brand-name-canvas {
  position: absolute;
  left: 0;
  top: 50%;
  width: 200px;
  height: 88px;
  transform: translateY(-50%);
  pointer-events: none;
}

h1 {
  max-width: 42rem;
  margin: 0 0 1rem;
  color: #f9fafb;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.lede {
  max-width: 36rem;
  margin: 0;
  color: #9ca3af;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.625;
}

.lede a {
  color: #6366f1;
}

[hidden] {
  display: none !important;
}

.catch {
  max-width: 36rem;
  margin-top: 2rem;
}

.catch-note {
  margin: 0;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.catch-field {
  position: relative;
  height: 7.5rem;
}

.catch-button {
  --catch-x: 0px;
  --catch-y: 0px;
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 0;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px #818cf8;
  background: transparent;
  color: #c7d2fe;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transform: translate(calc(-50% + var(--catch-x)), calc(-50% + var(--catch-y)));
  will-change: transform;
}

.catch-button.is-specular {
  box-shadow: none;
}

.catch-button.is-ready {
  color: #fff;
}

.catch-button:focus-visible {
  outline: 2px solid rgba(199, 210, 254, 0.6);
  outline-offset: 3px;
}

.catch-button__fx {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 1;
}

.catch-button__fx canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.catch-button__label {
  position: relative;
  z-index: 2;
}

.catch-field .lattice-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

.inquiry {
  max-width: 36rem;
  margin-top: 1.5rem;
}

.inquiry h2 {
  margin: 0 0 1rem;
  color: #f9fafb;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.inquiry label {
  display: block;
  margin: 0 0 0.85rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

.inquiry input,
.inquiry select,
.inquiry textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #312e81;
  background: #0b0b14;
  color: #f9fafb;
  font: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.65rem;
}

.inquiry button {
  border: 0;
  background: #6366f1;
  color: #fff;
  font: inherit;
  font-weight: 500;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
}

.inquiry-hint,
.inquiry-status {
  margin: 0 0 0.85rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

.inquiry-success h2 {
  margin: 0 0 0.5rem;
}

.inquiry-success p {
  margin: 0;
  color: #d1d5db;
  font-size: 1.125rem;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  opacity: 0;
}

html:has(body.is-writing),
body.is-writing {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

body.is-writing .stage {
  height: auto;
  min-height: 100%;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

body.is-writing .catch {
  display: none;
}

@media (min-width: 768px) {
  .stage {
    width: 100%;
    padding: 0 3rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .lede {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .stage {
    width: 66.6667%;
    padding: 0 4rem;
  }

  .brand {
    margin-bottom: 3rem;
  }

  h1 {
    margin-bottom: 2rem;
    font-size: 3rem;
  }

  .catch-field {
    height: 240px;
  }
}

@media (min-width: 1280px) {
  .stage {
    width: 50%;
    padding: 0 4rem;
  }

  h1 {
    font-size: 3rem;
  }
}

@media (max-height: 740px) {
  .brand {
    margin-bottom: 1.25rem;
  }

  h1 {
    margin-bottom: 1rem;
  }

  .catch-field {
    height: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #blinking-squares,
  .brand-name-canvas {
    display: none;
  }
}
