/* Self-hosted JetBrains Mono (variable, weights 200-600) — avoids render-blocking Google Fonts. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #6b6b6b;
  --accent: #f97316;
  --accent-bright: #fb923c;
  --accent-dim: rgba(249, 115, 22, 0.35);
  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#circuit {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wordmark {
  position: fixed;
  top: 2rem;
  left: 2.25rem;
  z-index: 3;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--fg);
}

.wordmark .dot {
  color: var(--accent);
}

main {
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  /* Fade hero content out near the top so it never clashes with the logo. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7rem);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7rem);
}

.hero-inner {
  max-width: 760px;
  text-align: center;
}

.lead {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.tagline {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 200;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tagline .accent {
  color: var(--accent);
  font-weight: 400;
}

.services {
  margin-top: 2.5rem;
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  letter-spacing: 0.06em;
  color: #cfcfcf;
  min-height: 1.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.services .prompt {
  color: var(--accent);
  font-weight: 600;
}

.services .typed {
  color: #e6e6e6;
  white-space: nowrap;
}

.services .cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  margin-left: 0.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

.services .cursor.typing {
  animation: none;
  opacity: 1;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.cta {
  display: inline-block;
  margin-top: 3.5rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--accent-dim);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cta:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.25);
}

/* Contact */
.contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
}

.contact-inner {
  width: 100%;
  max-width: 480px;
}

.contact h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 200;
  letter-spacing: 0.02em;
}

.contact h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-top: 1rem;
}

.contact-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1.25rem 0 2.5rem;
}

.field {
  margin-bottom: 1.75rem;
}

label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

input,
textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #2a2a2a;
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.6rem 0;
  transition: border-color 0.25s ease;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.gotcha {
  position: absolute;
  left: -9999px;
}

button[type="submit"] {
  margin-top: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

button[type="submit"]:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.35);
}

button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}

.cf-turnstile {
  margin-bottom: 1.75rem;
  min-height: 65px;
}

.form-status {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  min-height: 1.2em;
}

.contact-email {
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-email a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-email a:hover {
  color: var(--accent-bright);
  border-bottom-color: var(--accent);
}

.form-status.success {
  color: var(--accent-bright);
}

.form-status.error {
  color: #ff6b6b;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 2.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.footer-tag {
  color: #3a3a3a;
}

@media (max-width: 600px) {
  .wordmark {
    top: 1.5rem;
    left: 1.5rem;
    font-size: 0.8rem;
  }

  footer {
    flex-direction: column;
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
