:root {
  color-scheme: dark;
  --ink: #f5fff9;
  --muted: #9da9a3;
  --line: rgba(245, 255, 249, 0.15);
  --panel: rgba(12, 17, 15, 0.72);
  --green: #78ffb7;
  --cyan: #7ddcff;
  --amber: #ffb85c;
  --black: #060807;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(120, 255, 183, 0.1), transparent 30%),
    linear-gradient(205deg, rgba(255, 184, 92, 0.12), transparent 34%),
    var(--black);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(245, 255, 249, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 255, 249, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  position: relative;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  padding: 32px clamp(20px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
}

.globe-stage {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.globe-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.code-rain {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.32;
  pointer-events: none;
  mix-blend-mode: screen;
}

.ambient-grid {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background:
    linear-gradient(to bottom, transparent, rgba(6, 8, 7, 0.88)),
    repeating-linear-gradient(
      90deg,
      transparent 0 22px,
      rgba(125, 220, 255, 0.08) 23px,
      transparent 24px
    );
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-weight: 800;
  font-size: clamp(18px, 2vw, 23px);
}

.wordmark img {
  width: 34px;
  height: 34px;
}

.wordmark span {
  padding: 7px 0;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease;
}

.topbar nav a:hover {
  color: var(--ink);
}

.sound-toggle {
  display: inline-grid;
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  gap: 4px;
  width: 42px;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  background: rgba(245, 255, 249, 0.045);
  cursor: pointer;
}

.sound-toggle span {
  display: block;
  width: 4px;
  height: 9px;
  background: var(--muted);
  transition:
    height 180ms ease,
    background 180ms ease;
}

.sound-toggle span:nth-child(2) {
  height: 16px;
}

.sound-toggle[aria-pressed="true"] {
  border-color: rgba(120, 255, 183, 0.6);
  background: rgba(120, 255, 183, 0.12);
}

.sound-toggle[aria-pressed="true"] span {
  background: var(--green);
  animation: soundBars 920ms ease-in-out infinite;
}

.sound-toggle[aria-pressed="true"] span:nth-child(2) {
  animation-delay: 160ms;
}

.sound-toggle[aria-pressed="true"] span:nth-child(3) {
  animation-delay: 320ms;
}

@keyframes soundBars {
  0%,
  100% {
    height: 8px;
  }

  50% {
    height: 20px;
  }
}

.hero-copy {
  align-self: center;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 9svh 0 13svh;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  width: min(100%, 7.2em);
  max-width: 980px;
  font-size: clamp(61px, 14.4vw, 196px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  perspective: 900px;
}

.particle-text {
  display: block;
  width: 100%;
  height: 0.96em;
  transform: rotateX(10deg) rotateY(-8deg);
  transform-origin: left center;
  transform-style: preserve-3d;
  filter:
    drop-shadow(9px 13px 22px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 28px rgba(120, 255, 183, 0.22))
    drop-shadow(0 20px 80px rgba(125, 220, 255, 0.18));
}

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

.particle-text.is-charged {
  filter:
    drop-shadow(10px 14px 24px rgba(0, 0, 0, 0.54))
    drop-shadow(0 0 34px rgba(120, 255, 183, 0.34))
    drop-shadow(0 20px 90px rgba(125, 220, 255, 0.28));
}

.intro {
  width: min(580px, 100%);
  margin: clamp(20px, 4vw, 34px) 0 30px;
  color: rgba(245, 255, 249, 0.8);
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.28;
}

.contact-cta {
  --mx: 0px;
  --my: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 144px;
  padding: 0 22px;
  border: 1px solid rgba(120, 255, 183, 0.55);
  background: rgba(120, 255, 183, 0.12);
  color: var(--ink);
  font-weight: 800;
  transform: translate(var(--mx), var(--my));
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 120ms ease;
}

.contact-cta:hover {
  border-color: var(--green);
  background: rgba(120, 255, 183, 0.22);
}

.signal-strip {
  position: absolute;
  right: auto;
  bottom: 26px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  border: 1px solid var(--line);
  background: rgba(245, 255, 249, 0.08);
  transform: translateX(-50%);
}

.signal-strip span {
  min-height: 46px;
  padding: 14px 14px 12px;
  overflow: hidden;
  color: rgba(245, 255, 249, 0.72);
  background: rgba(6, 8, 7, 0.64);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(28px, 6vw, 88px);
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
}

.contact-intro {
  align-self: start;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.contact-intro p:not(.eyebrow) {
  max-width: 420px;
  margin: 0;
  color: rgba(245, 255, 249, 0.72);
  font-size: 18px;
  line-height: 1.55;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.contact-form label span {
  color: rgba(245, 255, 249, 0.66);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.message-field,
.contact-form button,
.form-status {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(245, 255, 249, 0.045);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

input {
  min-height: 52px;
  padding: 0 14px;
}

textarea {
  min-height: 142px;
  resize: vertical;
  padding: 14px;
}

input:focus,
textarea:focus {
  border-color: rgba(125, 220, 255, 0.85);
  background: rgba(125, 220, 255, 0.065);
  box-shadow: 0 0 0 4px rgba(125, 220, 255, 0.08);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  background: var(--ink);
  color: var(--black);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

button:hover {
  background: var(--green);
  transform: translateY(-1px);
}

.form-status {
  min-height: 24px;
  margin: -2px 0 0;
  color: var(--green);
  font-size: 14px;
}

.is-shuffling {
  color: var(--cyan);
}

@media (max-width: 780px) {
  .hero {
    min-height: 91svh;
    padding-top: 22px;
  }

  .hero-copy {
    padding-top: 7svh;
    padding-bottom: 18svh;
  }

  h1 {
    font-size: clamp(54px, 17.6vw, 106px);
  }

  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .sound-toggle span {
    animation: none !important;
  }
}
