:root {
  --bg: #0B0F14;
  --panel: #0F151C;
  --line: #1F2933;
  --line-strong: #334155;
  --text: #E6EDF3;
  --muted: #9FB0C0;
  --accent: #5EEAD4;
  --link: #7DD3FC;
  --error: #FCA5A5;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); }
a:hover { color: #BAE6FD; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px;
}
.brand img { width: 36px; height: 36px; }
.brand:hover { color: var(--text); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; }
.nav a { padding: 12px 14px; color: var(--muted); text-decoration: none; border-radius: 6px; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--bg); background: var(--accent); font-weight: 700; }
.nav .nav-cta:hover { color: var(--bg); background: #99F6E4; }

/* Buttons */
.btn {
  display: inline-block; padding: 16px 22px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 16px; border: 0; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #99F6E4; color: var(--bg); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); font-size: 15px; font-weight: 400; }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 72px; display: grid; gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero-art {
  width: min(520px, 100%); height: auto; justify-self: center;
  /* The art's own background is a shade darker than the page: fade its edges into the page instead of showing a box. */
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .hero-art { width: 100%; max-width: 560px; justify-self: end; }
}
.hero-logo { width: min(440px, 100%); height: auto; margin-bottom: 8px; }
.prompt { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.hero h1 {
  margin: 0; font-size: clamp(40px, 6vw, 76px); font-weight: 600;
  line-height: 1.04; letter-spacing: -0.025em; max-width: 15ch;
}
.lede { margin: 0; font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stack window */
.stack { padding-top: 24px; padding-bottom: 96px; }
.window { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.window-bar {
  display: flex; gap: 8px; align-items: center; padding: 14px 18px;
  border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-title { margin-left: 8px; }
.tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1px; background: var(--line);
}
.tile { background: var(--panel); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.tile-art { display: block; width: 100%; height: auto; margin-bottom: 12px; border-radius: 6px; }
.tile h2 { margin: 0; font-size: 16px; font-weight: 500; }
.tile p { margin: 0; color: var(--muted); line-height: 1.55; }

/* Contact */
.contact { border-top: 1px solid var(--line); background: var(--panel); }
.contact-row { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px; }
.contact-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { margin: 0; font-size: 14px; }
.contact-intro h2 { margin: 0; font-size: 40px; font-weight: 600; letter-spacing: -0.015em; }
.contact-form {
  flex: 1 1 540px; min-width: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea {
  padding: 14px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px;
  font-family: var(--sans); font-size: 16px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-foot .btn { font-weight: 700; font-size: 15px; }
.form-status { margin: 0; color: var(--muted); }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--accent); }

/* Honeypot: off-screen for people, still present for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Thanks page */
.thanks { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 24px; }
.thanks h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -0.02em; }

/* Footer */
.site-footer {
  padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap;
  gap: 12px; justify-content: space-between; font-size: 13px; color: var(--muted);
}

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