/* cirlet: Night Shift Orrery. Design authority: docs/design/DESIGN.md */
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #050a16; --bg-2: #081225; --panel: #0b1730; --panel-2: #0e1d3b;
  --ink: #e7eef9; --ink-2: rgba(212, 224, 242, .78); --ink-3: rgba(176, 196, 226, .72);
  --line: rgba(140, 172, 226, .16); --line-2: rgba(160, 196, 255, .32); --control: rgba(160, 196, 255, .52);
  --ice: #d4e5ff; --steel: #7ea6e6; --deep: #12264a; --eye: #9fd4ff;
  --c0: #7fd0ff; --c1: #7c9dff; --c2: #dfe8ff;
  --ok: #8fe3b4; --warn: #ffd39a; --bad: #ffa3a3;
  --pad: clamp(18px, 3.4vw, 56px); --max: 1240px;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--eye); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ice); color: #071226; padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.dot { display: inline-block; width: 8px; height: 8px; flex: none; }
/* crew bullets are drones: the same square cube as the swarm, in the crew's colour */
.dot.c0, .dot.c1, .dot.c2 { width: 17px; height: 17px; background-color: transparent; background-position: center; background-size: contain; background-repeat: no-repeat; }
.dot.c0 { background-image: url("drone-0.svg"); } .dot.c1 { background-image: url("drone-1.svg"); } .dot.c2 { background-image: url("drone-2.svg"); }
.c0 { background: var(--c0); }
.c1 { background: var(--c1); }
.c2 { background: var(--c2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; background: var(--ice); color: #071226; font: 600 15px/1 var(--sans); padding: 0 22px; border: 0; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ice); box-shadow: inset 0 0 0 1px rgba(212, 229, 255, .35); }
.btn--ghost:hover { background: rgba(212, 229, 255, .08); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: progress; transform: none; }
.link { color: var(--ice); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(212, 229, 255, .35); padding-bottom: 2px; }
.link:hover { border-color: var(--ice); }

/* header */
.head { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .3s; }
.head.scrolled { border-color: var(--line); }
.head .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.mark { font-weight: 600; font-size: 22px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark i { width: 20px; height: 20px; background: url("drone.svg") center / contain no-repeat; flex: none; }
.nav { margin-left: auto; display: flex; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 10px 0; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.head .btn { min-height: 40px; padding: 0 18px; font-size: 14px; white-space: nowrap; flex: none; }
.menu-btn { display: none; margin-left: auto; min-height: 40px; padding: 0 14px; background: transparent; color: var(--ice); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 14px/1 var(--sans); cursor: pointer; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--bg); }
.hero .sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 1; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: min(800px, calc(100vh - 72px)); }
.hero-copy { position: relative; z-index: 2; align-self: center; padding: 40px 0 72px; max-width: 620px; }
.eyebrow { color: #a9cdff; display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 15px; height: 15px; background: url("drone.svg") center / contain no-repeat; flex: none; }
h1 { font-size: clamp(36px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -.035em; }
h1 span { color: #a9c8f5; }
.lead { color: var(--ink-2); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; margin-top: 24px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.note { margin-top: 20px; color: var(--ink-3); font-size: 15px; }
.stage { position: relative; z-index: 2; min-height: 460px; }
.readout { position: absolute; top: 18px; right: 0; color: var(--ink-3); }
.readout em { font-style: normal; color: var(--eye); }
.legend { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* sections */
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-2); }
.kicker { color: #a9cdff; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; max-width: 18em; }
.sec-lead { color: var(--ink-2); margin-top: 18px; max-width: 40em; font-size: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

/* work */
.jobs { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 1px; background: var(--line); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.jobs li { background: var(--panel); padding: 18px 22px; display: grid; grid-template-columns: 34px 1fr; gap: 8px; color: var(--ink-2); }
.jobs li span { color: var(--steel); }
.points { display: grid; gap: 28px; }
.sub { font-size: clamp(22px, 2vw, 28px); margin: 6px 0 28px; }
.point h4 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.point p { color: var(--ink-2); margin-top: 8px; }
.aside-note { margin-top: 28px; color: var(--ink); font-weight: 500; }

/* services band */
.shead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.steps-pill { display: flex; gap: 8px; color: var(--ink-3); }
.steps-pill span { padding: 6px 12px; box-shadow: inset 0 0 0 1px var(--line); transition: color .3s, background .3s, box-shadow .3s; }
.steps-pill span.on { color: #071226; background: #b9d6ff; box-shadow: none; }
.band { position: relative; height: 320px; margin-top: 40px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.band canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.col { padding: 28px 28px 8px 0; display: flex; flex-direction: column; }
.col + .col { padding-left: 28px; border-left: 1px solid var(--line); }
.col .mono { display: flex; align-items: center; gap: 10px; color: var(--ink-3); }
.col h3 { font-size: 26px; margin: 14px 0 10px; }
.col p { color: var(--ink-2); }
.col .get { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); flex: 1; }
.col .get b { color: #bcd7ff; font-weight: 600; }
.col .link { margin-top: 18px; align-self: flex-start; font-size: 15px; }
.fine { margin-top: 28px; color: var(--ink-3); font-size: 15px; }

/* how it goes */
.path { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.path li { position: relative; padding-top: 44px; counter-increment: step; }
.path li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 30px; height: 30px; display: grid; place-items: center; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 11px/1 var(--mono); color: var(--eye); }
.path li::after { content: ""; position: absolute; top: 15px; left: 40px; right: -10px; height: 1px; background: var(--line-2); }
.path li:last-child::after { display: none; }
.path li:last-child::before { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); border: 1px dashed var(--line-2); }
.path h3 { font-size: 18px; letter-spacing: -.015em; }
.path p { color: var(--ink-2); margin-top: 6px; font-size: 16px; }

/* control */
.ctrl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.ctrl article { background: var(--panel); padding: 26px; box-shadow: inset 0 0 0 1px var(--line); }
.ctrl .mono { color: var(--eye); }
.ctrl h3 { font-size: 21px; margin-top: 12px; }
.ctrl p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }
.yours { margin-top: 56px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); padding-top: 48px; border-top: 1px solid var(--line); }
.yours h3 { font-size: clamp(24px, 2.4vw, 32px); }
.yours > div > p { color: var(--ink-2); margin-top: 14px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 18px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.ticks li::before { content: ""; width: 17px; height: 17px; margin-top: 5px; background: url("drone-2.svg") center / contain no-repeat; }
.ticks b { font-weight: 600; }
.ticks span { color: var(--ink-2); }

/* founder */
.founder { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.founder p.b { color: var(--ink-2); margin-top: 18px; max-width: 36em; }
.sig { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.sig:has(.sig-photo) { display: flex; align-items: center; gap: 16px; }
.sig-photo { width: 72px; height: 72px; flex: none; display: block; object-fit: cover; border: 1px solid var(--line-2); } /* Tyler's portrait, square, from the old site (Tyler, 2026-09-28) */
.sig strong { display: block; font-weight: 600; }
.sig span { color: var(--ink-3); font-size: 15px; }
.card { background: var(--panel); padding: 28px; box-shadow: inset 0 0 0 1px var(--line); }
.card .mono { color: var(--ink-3); }
.card h3 { font-size: 22px; margin-top: 14px; line-height: 1.25; }
.card p { color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.card .link { display: inline-block; margin-top: 18px; }

/* questions */
.faq { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); }
.qs { border-top: 1px solid var(--line); }
.qs details { border-bottom: 1px solid var(--line); }
.qs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-weight: 500; font-size: 18px; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s, box-shadow .2s; }
.qs details[open] summary::after { background: var(--eye); }
.qs details p { color: var(--ink-2); padding: 0 32px 22px 0; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.next { margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-2); }
.next b { color: var(--ink); font-weight: 600; }
.alt { margin-top: 18px; color: var(--ink-3); }
.alt a { color: var(--ice); }
.form { position: relative; background: var(--panel); padding: clamp(22px, 3vw, 34px); box-shadow: inset 0 0 0 1px var(--line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 18px; font-size: 15px; font-weight: 500; }
.field .opt, .field .hint { font-weight: 400; color: var(--ink-3); }
.field .hint { display: block; font-size: 14px; margin-top: 2px; }
.field input, .field textarea { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--control); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--eye); box-shadow: 0 0 0 3px rgba(159, 212, 255, .18); }
.field textarea { min-height: 120px; resize: vertical; }
.field .err { display: none; margin-top: 6px; color: var(--bad); font-weight: 400; font-size: 14px; }
.field.bad input, .field.bad textarea { border-color: var(--bad); }
.field.bad .err { display: block; }
.choice { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.choice legend { font-size: 15px; font-weight: 500; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; box-shadow: inset 0 0 0 1px var(--control); font-size: 15px; cursor: pointer; color: var(--ink-2); }
.chips span::before { content: ""; width: 8px; height: 8px; box-shadow: inset 0 0 0 1px var(--control); }
.chips input:checked + span { color: var(--ink); box-shadow: inset 0 0 0 1px var(--eye); background: rgba(159, 212, 255, .08); }
.chips input:checked + span::before { background: var(--eye); }
.chips input:focus-visible + span { outline: 2px solid var(--eye); outline-offset: 2px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.privacy { color: var(--ink-3); font-size: 14px; flex: 1; min-width: 200px; }
.status { display: none; margin-top: 18px; padding: 16px 18px; }
.status p + p { margin-top: 8px; }
.form[data-state="failed"] .status--fail { display: block; background: rgba(255, 211, 154, .08); box-shadow: inset 0 0 0 1px rgba(255, 211, 154, .3); }
.form[data-state="sending"] .fields { opacity: .6; }
.done { display: none; text-align: center; padding: 8px 0 4px; }
.done canvas { display: block; width: 100%; height: 220px; }
.done h3 { font-size: 28px; margin-top: 8px; }
.done p { color: var(--ink-2); margin-top: 8px; }
.form[data-state="sent"] .fields, .form[data-state="sent"] .form-foot { display: none; }
.form[data-state="sent"] .done { display: block; }
.copy-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--ink-3); font-size: 15px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot b { color: var(--ink); font-weight: 600; }

/* simple pages (404, form result without JavaScript) */
.simple { min-height: calc(100vh - 72px - 110px); display: grid; place-items: center; padding: 72px 0; text-align: center; }
.simple h1 { font-size: clamp(36px, 5vw, 56px); }
.simple p { color: var(--ink-2); margin: 16px auto 0; max-width: 34em; }
.simple .actions { justify-content: center; }
.simple pre { text-align: left; white-space: pre-wrap; background: var(--panel); padding: 18px; margin: 24px auto 0; max-width: 40em; color: var(--ink-2); font: 400 15px/1.55 var(--sans); box-shadow: inset 0 0 0 1px var(--line); }

/* responsive */
@media (max-width: 980px) {
  .split, .founder, .faq, .contact, .yours { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr; gap: 24px; }
  .path li { padding: 0 0 0 48px; }
  .path li::after { top: 38px; left: 15px; right: auto; bottom: -18px; width: 1px; height: auto; background: var(--line-2); }
  .ctrl { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 28px 0 8px; }
  .stage { min-height: 400px; }
  .readout { right: auto; left: 0; top: 10px; }
  .cols { grid-template-columns: 1fr; }
  .col, .col + .col { padding: 22px 0 6px; border-left: 0; border-top: 1px solid var(--line); }
  .band { height: 260px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .head .btn { margin-left: 0; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 16px; }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .eyebrow { font-size: 10.5px; letter-spacing: .03em; }
  .head .wrap { gap: 10px; }
  .head .btn { padding: 0 14px; font-size: 13px; }
  .mark { font-size: 20px; }
  .jobs li { padding: 16px; }
}
@media (max-width: 374px) {
  .head .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Ask: your own question, answered from the site's pages (ask.js). Flat and square like the rest. */
.ask { margin-top: 26px; }
.ask label { display: block; font-weight: 500; margin-bottom: 10px; }
.ask-row { display: flex; gap: 10px; }
.ask-row input { flex: 1 1 auto; width: 0; min-width: 0; min-height: 46px; padding: 0 14px; background: var(--bg-2); color: var(--ink); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); font: 400 16px/1 var(--sans); border-radius: 0; }
.ask-row input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--eye); }
.ask-row input::placeholder { color: var(--ink-3); }
.ask-row .btn[disabled] { opacity: .5; cursor: default; transform: none; }
.ask-note { margin-top: 10px; color: var(--ink-3); font-size: 14px; }
.qs .asked summary { color: var(--ink); }
.qs.live .asked summary::after { display: block; } /* an asked question keeps its plain marker on the homepage */
.qs .asked div { padding: 0 32px 22px 0; }
.qs .asked p { padding: 0; color: var(--ink-2); }
.ask-text.is-loading::after { content: ""; display: inline-block; width: 8px; height: 14px; margin-left: 2px; background: var(--eye); vertical-align: -2px; animation: ask-caret 1s steps(1) infinite; }
@keyframes ask-caret { 50% { opacity: 0; } }
.asked.is-error .ask-text { color: var(--warn); }
.ask-sources { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.ask-sources:empty { display: none; }
.ask-sources a { color: var(--ice); }
.asked-list { margin-top: 18px; }
