:root {
  --bg: oklch(0.98 0.004 80);
  --bg-2: oklch(0.955 0.005 80);
  --bg-3: oklch(0.93 0.006 80);
  --line: oklch(0.84 0.006 70);
  --line-soft: oklch(0.91 0.005 70);
  --fg: oklch(0.18 0.008 60);
  --fg-2: oklch(0.42 0.010 60);
  --fg-3: oklch(0.58 0.010 60);
  --accent: oklch(0.62 0.20 135);
  --accent-ink: oklch(0.98 0.01 130);
  --danger: oklch(0.55 0.20 25);
  --radius: 12px;
  --maxw: 1180px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.brand {
  display: flex; align-items: baseline; gap: 8px;
  font-weight: 600; letter-spacing: -0.01em; font-size: 17px;
}
.brand-loc { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--fg-3); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--fg-2);
  position: relative; transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-cta {
  background: var(--fg); color: var(--bg);
  border: none; border-radius: 999px;
  padding: 9px 18px; font-size: 14px; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.nav-cta:hover { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 92vh;
  padding: 140px var(--pad) 80px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 110px; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  color: var(--fg-2);
  margin-bottom: 36px;
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 0%, transparent); }
}

.hero h1 {
  font-size: clamp(42px, 6vw, 108px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
  text-wrap: balance;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero p.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--fg-2);
  line-height: 1.55;
  max-width: 480px;
  margin: 0 0 40px;
}

.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  transition: all .18s ease;
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover {
  background: var(--accent); color: var(--accent-ink);
  transform: translateY(-1px);
}
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-arrow { transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- orbital ---------- */
.orbital-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  justify-self: end;
}
@media (max-width: 960px) {
  .orbital-wrap { justify-self: center; max-width: 360px; }
}
.orbital-inner { position: absolute; inset: 0; display: grid; place-items: center; }
.orbital-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbital-ring { fill: none; stroke: var(--line); stroke-width: 1; transform-origin: center; }
.orbital-ring.dash { stroke-dasharray: 2 6; }
.orbital-node { fill: var(--accent); }
.orbital-node.dim { fill: var(--fg-3); opacity: 0.6; }
.spin-cw { animation: spinCW 80s linear infinite; transform-origin: 280px 280px; }
.spin-ccw { animation: spinCCW 120s linear infinite; transform-origin: 280px 280px; }
.spin-cw-fast { animation: spinCW 40s linear infinite; transform-origin: 280px 280px; }
@keyframes spinCW { to { transform: rotate(360deg); } }
@keyframes spinCCW { to { transform: rotate(-360deg); } }

.orbital-core {
  position: relative;
  width: 24%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
  display: grid; place-items: center;
  box-shadow:
    0 0 0 1px var(--line),
    0 0 40px -10px color-mix(in oklab, var(--accent) 40%, transparent);
}
.orbital-core::before {
  content: ""; position: absolute; inset: -10%;
  border-radius: 50%;
  border: 1px dashed var(--line);
  animation: spinCW 30s linear infinite;
}
.orbital-core-mark {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(13px, 1.8vw, 18px);
  font-weight: 600;
  color: var(--accent);
}

/* ---------- sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px var(--pad);
  position: relative;
}
.section-head {
  margin-bottom: 64px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.section-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--fg-3);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.section-eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}
.section h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
  max-width: 720px;
}
.section h2 em {
  font-style: italic;
  color: var(--fg-2);
  font-weight: 400;
}
.section-aside {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--fg-3);
  max-width: 280px;
  line-height: 1.7;
}

/* ---------- services — editorial list ---------- */
.services-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: 80px 1fr 32px;
  gap: 36px;
  padding: 36px 8px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding .2s ease;
  cursor: default;
}
.svc-row:hover { padding-left: 16px; }
.svc-row:hover .svc-row-arrow { color: var(--accent); transform: translate(2px, -2px); }
@media (max-width: 720px) {
  .svc-row { grid-template-columns: 50px 1fr 24px; gap: 18px; padding: 28px 4px; }
}
.svc-row-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--fg-3);
  padding-top: 8px;
  letter-spacing: 0.04em;
}
.svc-row-body { display: flex; flex-direction: column; gap: 12px; }
.svc-row h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.svc-row p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  max-width: 56ch;
}
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.svc-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--fg-3);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.svc-row-arrow {
  color: var(--fg-3);
  padding-top: 4px;
  transition: color .2s ease, transform .2s ease;
}

/* ---------- contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
}
.contact-info p {
  font-size: 17px; color: var(--fg-2); line-height: 1.6;
  max-width: 38ch;
  margin: 0 0 36px;
}
.contact-info-list { display: flex; flex-direction: column; gap: 22px; }
.cinfo-row {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.cinfo-row .l {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--fg-3);
}
.cinfo-row .v { font-size: 16px; }
.cinfo-row a.v { transition: color .15s ease; }
.cinfo-row a.v:hover { color: var(--accent); }

/* ---------- form ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: span 2; }
.field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--fg-3);
  display: flex; justify-content: space-between;
  letter-spacing: 0.02em;
}
.field label .err {
  color: var(--danger);
  opacity: 0; transform: translateY(-2px);
  transition: opacity .2s ease, transform .2s ease;
}
.field.invalid label .err { opacity: 1; transform: translateY(0); }
.field input, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font: inherit; font-size: 16px;
  padding: 10px 0;
  border-radius: 0;
  transition: border-color .15s ease;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--fg); }
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--danger); }
.field textarea { resize: vertical; min-height: 90px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-2);
  transition: all .15s ease;
}
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.submit-row {
  grid-column: span 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.submit-hint {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--fg-3);
}
.submit-btn {
  background: var(--fg); color: var(--bg);
  border: none; border-radius: 999px;
  padding: 13px 24px;
  font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all .18s ease;
}
.submit-btn:hover:not(:disabled) {
  background: var(--accent); color: var(--accent-ink);
  transform: translateY(-1px);
}
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.submit-btn.sent { background: var(--accent); color: var(--accent-ink); }

.toast-success {
  grid-column: span 2;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: color-mix(in oklab, var(--accent) 14%, var(--bg));
  border: 1px solid color-mix(in oklab, var(--accent) 50%, var(--line));
  border-radius: 10px;
  font-size: 14px;
}
.toast-success .ok {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700;
  flex-shrink: 0;
}
.toast-success.hidden { display: none; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 30px var(--pad);
  max-width: var(--maxw);
  margin: 60px auto 0;
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--fg-3);
}

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