/* Venturian Labs — built on the Rede design system tokens, dark theme. */
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #0a0b0e;
  --raised: #111317;
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #86868b;
  --notation: #6e6e73;
  --border: #ffffff14;
  --border-strong: #ffffff24;
  --grid-halo: #ffffff1a;
  --locus-mark: #ffffff33;
  --signal: #4d7cff;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --column: 720px;
  --inset: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--text);
  color: var(--ground);
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { left: 8px; }

:focus-visible {
  outline: 1px solid var(--text-tertiary);
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 var(--inset);
}

/* Header and navigation */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}
.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 160ms ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

main { flex: 1; }

/* Home hero: the halo appears where the wordmark stands, and nowhere else. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 88px var(--inset) 72px;
  overflow: hidden;
}
.hero .notation {
  position: absolute;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.333;
  letter-spacing: 0.06em;
  color: var(--notation);
  pointer-events: none;
}
.hero .notation.tl { top: 20px; left: 20px; }
.hero .notation.br { bottom: 20px; right: 20px; }

.halo {
  --r: 260px;
  position: relative;
  width: 480px;
  max-width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.halo::before {
  content: "";
  position: absolute;
  pointer-events: none;
  width: calc(2 * var(--r));
  height: calc(2 * var(--r));
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-image:
    linear-gradient(to right, var(--grid-halo) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-halo) 1px, transparent 1px);
  background-size: 12px 12px;
  background-position: 6px 6px;
  -webkit-mask-image: radial-gradient(circle var(--r) at center,
    #000 0%, #000 35%, rgba(0,0,0,.72) 55%, rgba(0,0,0,.3) 78%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at center,
    #000 0%, #000 35%, rgba(0,0,0,.72) 55%, rgba(0,0,0,.3) 78%, transparent 100%);
}
.locus {
  position: absolute;
  width: 13px;
  height: 13px;
  pointer-events: none;
}
.locus::before, .locus::after {
  content: "";
  position: absolute;
  background: var(--locus-mark);
}
.locus::before { width: 13px; height: 1px; top: 6px; left: 0; }
.locus::after  { width: 1px; height: 13px; left: 6px; top: 0; }
.locus.tl { top: -6px; left: -6px; }
.locus.tr { top: -6px; right: -6px; }
.locus.bl { bottom: -6px; left: -6px; }
.locus.br { bottom: -6px; right: -6px; }

.wordmark {
  position: relative;
  margin: 0;
  font-weight: 600;
  font-size: 58px;
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--text);
}

.hero h1 {
  margin: 44px 0 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.hero .lede {
  margin: 18px auto 0;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.status .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--signal);
  animation: live 2.4s ease-in-out infinite;
}
@keyframes live {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .status .dot { animation: none; }
}

/* Reading pages: nothing behind the text. */
.page { padding-top: 72px; padding-bottom: 96px; }
.page-head { margin-bottom: 48px; }
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.page h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.page .lede {
  margin: 20px 0 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 36em;
}

section + section { margin-top: 56px; }

h2 {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p { margin: 0 0 14px; }
.muted { color: var(--text-secondary); }
.statement {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 24em;
}

.list {
  border-top: 1px solid var(--border);
}
.list .item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.list .item p { margin: 0; color: var(--text-secondary); }
.list .item p + p { margin-top: 10px; }

.facts {
  margin: 0;
  border-top: 1px solid var(--border);
}
.facts div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.facts dt { color: var(--text-tertiary); font-size: 15px; }
.facts dd { margin: 0; }

.prose p, .prose li { color: var(--text-secondary); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose h3 { margin-top: 28px; }

.link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  transition: border-color 160ms ease;
}
.link:hover { border-color: var(--text-tertiary); }

.arrow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 36px;
  font-size: 15px;
}

.email-big {
  display: inline-block;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 4px;
}
.email-big:hover { border-color: var(--text-tertiary); }

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  background: var(--raised);
}

/* The rede wordmark: lowercase, with 5′ and 3′ flush to the word's edges. */
.rede-stand {
  display: flex;
  justify-content: center;
  padding: 40px 0 24px;
  overflow: hidden;
}
.rede-stand .halo { --r: 200px; width: 300px; height: 140px; }
.rede-mark {
  position: relative;
  display: inline-flex;
  flex-direction: column;
}
.rede-mark .word {
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.045em;
}
.rede-mark .feet {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary);
}
.rede-lines { text-align: center; margin-top: 28px; }
.rede-lines .tagline {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.rede-lines .focus {
  margin: 6px 0 0;
  font-size: 18px;
  color: var(--text-secondary);
}
.rede-lines .say {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--notation);
}

.pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  border-top: 1px solid var(--border);
}
.pairs .col-head {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.pairs .cell {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.pairs .cell.burden { color: var(--text-secondary); }

/* Footer: the company's legal particulars on every page. */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 44px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-tertiary);
}
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 6px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 18px;
  font-size: 14px;
}
.footer-nav a { color: var(--text-secondary); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }

@media (max-width: 600px) {
  :root { --inset: 20px; }
  .nav { gap: 16px; font-size: 14px; }
  .hero { padding: 64px var(--inset) 56px; }
  .halo { --r: 190px; height: 116px; }
  .wordmark { font-size: 38px; }
  .hero h1 { font-size: 27px; margin-top: 34px; }
  .hero .lede { font-size: 16px; }
  .page { padding-top: 52px; padding-bottom: 72px; }
  .rede-stand .halo { --r: 160px; width: 260px; }
  .page h1 { font-size: 32px; }
  .page .lede { font-size: 17px; }
  .statement { font-size: 22px; }
  .list .item, .facts div { grid-template-columns: 1fr; gap: 4px; }
  .email-big { font-size: 22px; }
  .rede-mark .word { font-size: 52px; }
  .rede-lines .tagline { font-size: 26px; }
}
@media (max-width: 380px) {
  .brand { font-size: 15px; }
  .nav { gap: 12px; font-size: 13px; }
}
