:root {
  --bg: #07080c;
  --bg-2: #0d0f15;
  --panel: #12151d;
  --line: #232733;
  --line-2: #323848;
  --fg: #f3f1ec;
  --fg-2: #b9bcc6;
  --fg-3: #8a8f9c;
  --red: #ff2d1a;
  --red-soft: #ff6a57;
  --human: #f5d9a8;
  --ok: #58d19a;
  --warn: #f2b84b;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--fg); text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-soft); }
:focus-visible { outline: 2px solid var(--human); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 600; text-wrap: balance; }
h1 { font-family: var(--serif); font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 500; letter-spacing: -.02em; }
h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 500; letter-spacing: -.015em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--fg-2); max-width: 46em; }
.eyebrow { font: 600 .76rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red-soft); margin-bottom: 18px; display: block; }
.fine { font-size: .86rem; color: var(--fg-3); }
.machine { color: var(--red); }
.human { color: var(--human); }
em.serif { font-family: var(--serif); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 8, 12, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand img { display: block; width: 148px; }
#nav { display: flex; align-items: center; gap: 22px; }
#nav a { text-decoration: none; font-size: .93rem; color: var(--fg-2); }
#nav a:hover, #nav a[aria-current] { color: var(--fg); }
#nav a[aria-current]:not(.btn) { box-shadow: 0 2px 0 var(--red); }
#nav a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--fg); padding: 10px 14px; border-radius: 8px; font: inherit; font-size: .9rem; }
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  #nav.open { display: flex; }
  #nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  #nav a.btn { margin-top: 14px; border-bottom: 0; text-align: center; }
  #nav a[aria-current]:not(.btn) { box-shadow: none; color: var(--red-soft); }
}

/* buttons */
.btn { display: inline-block; padding: 13px 22px; border-radius: 8px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #e32412; color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg-2); color: var(--fg); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* sections */
section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; padding-top: clamp(64px, 9vw, 120px); background: radial-gradient(900px 420px at 85% -10%, rgba(255, 45, 26, .16), transparent 70%); }
section.alt { background: var(--bg-2); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18em; }
.head { max-width: 46em; margin-bottom: 40px; }
.head p { color: var(--fg-2); }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p, .card li { color: var(--fg-2); font-size: .97rem; }
.card h3 { color: var(--fg); }
a.card { text-decoration: none; display: block; transition: border-color .15s; }
a.card:hover { border-color: var(--red); color: var(--fg); }
.card .more { color: var(--red-soft); font-weight: 600; font-size: .92rem; }
.num { font: 600 .8rem var(--mono); color: var(--red-soft); display: block; margin-bottom: 14px; letter-spacing: .08em; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { padding-left: 26px; position: relative; margin-bottom: 9px; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 2px; background: var(--red); }

/* status tags */
.tag { display: inline-block; font: 600 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.tag.live { color: var(--ok); border-color: rgba(88, 209, 154, .45); }
.tag.dev { color: var(--warn); border-color: rgba(242, 184, 75, .45); }
.tag.plan { color: var(--fg-3); border-color: var(--line-2); }

/* pipeline: the signature diagram */
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: stage; margin-top: 44px; }
.stage { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; counter-increment: stage; display: flex; flex-direction: column; }
.stage::before { content: "0" counter(stage); font: 600 .74rem var(--mono); color: var(--fg-3); letter-spacing: .1em; }
.stage h3 { margin: 8px 0 12px; font-size: 1.02rem; }
.stage p { font-size: .88rem; margin: 0; }
.stage .ai { color: var(--fg-2); padding-bottom: 12px; flex: 1; }
.stage .hu { color: var(--human); border-top: 1px dashed var(--line-2); padding-top: 12px; }
.stage .ai::before, .stage .hu::before { display: block; font: 600 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; }
.stage .ai::before { content: "Machine"; color: var(--red-soft); }
.stage .hu::before { content: "Human"; color: var(--human); opacity: .8; }
@media (max-width: 1040px) { .pipeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .pipeline { grid-template-columns: 1fr; } }

/* levels */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.level { padding: 28px; background: var(--panel); border-right: 1px solid var(--line); }
.level:last-child { border-right: 0; }
.level .num { margin-bottom: 10px; }
.level p { color: var(--fg-2); font-size: .97rem; margin: 0; }
.level .dial { height: 4px; background: var(--line-2); border-radius: 2px; margin-bottom: 20px; position: relative; }
.level .dial i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); border-radius: 2px; }
@media (max-width: 800px) { .levels { grid-template-columns: 1fr; } .level { border-right: 0; border-bottom: 1px solid var(--line); } .level:last-child { border-bottom: 0; } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 600 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); background: var(--bg-2); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--fg); white-space: nowrap; }
td { color: var(--fg-2); }
.price { color: var(--fg); font-weight: 600; }
.price-tbd { color: var(--fg-3); font-weight: 400; font-size: .88rem; }

/* callouts */
.quote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.25; max-width: 24em; margin: 0; }
.note { border-left: 3px solid var(--red); background: var(--panel); padding: 20px 24px; border-radius: 0 12px 12px 0; max-width: 52em; }
.note p:last-child { margin: 0; }
.cta-band { background: linear-gradient(135deg, #1a0b09, var(--bg-2) 60%); }
.cta-band h2 { max-width: 16em; }

/* long-form */
.prose { max-width: 42em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose p, .prose li { color: #d6d7dc; font-size: 1.06rem; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 3px solid var(--red); font-family: var(--serif); font-size: 1.25rem; color: var(--fg); }
.byline { color: var(--fg-3); font: .82rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
dl.glossary dt { font-weight: 600; margin-top: 1.1em; color: var(--fg); }
dl.glossary dd { margin: .2em 0 0; color: var(--fg-2); }
ol.questions { counter-reset: q; list-style: none; padding: 0; display: grid; gap: 12px; }
ol.questions li { counter-increment: q; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px 62px; position: relative; font-size: 1.04rem; }
ol.questions li::before { content: counter(q); position: absolute; left: 20px; top: 16px; font: 500 1.5rem var(--serif); color: var(--red); }

/* forms */
.lead-form { max-width: 640px; display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.lead-form label { display: grid; gap: 6px; font-size: .9rem; color: var(--fg-2); }
.lead-form input:not([type=checkbox]), .lead-form select, .lead-form textarea { font: inherit; font-size: 1rem; color: var(--fg); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px; width: 100%; }
.lead-form .check { display: flex; gap: 10px; align-items: flex-start; }
.lead-form .check input { margin-top: 5px; }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-form button { justify-self: start; }
.form-status { min-height: 1.5em; color: var(--human); margin: 0; }
.form-fallback .fine { margin-top: 14px; max-width: 34em; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font: 600 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.site-footer a { display: block; color: var(--fg-2); text-decoration: none; padding: 5px 0; }
.site-footer a:hover { color: var(--fg); }
.tagline { font-family: var(--serif); font-size: 1.15rem; margin: 14px 0 8px; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: .8rem; }
.legal a { display: inline; }
.mt { margin-top: 28px; }
.dial i.d1 { width: 33%; }
.dial i.d2 { width: 66%; }
.dial i.d3 { width: 100%; }
.eyebrow .tag { margin-left: 10px; vertical-align: middle; }
.card > .tag { margin-bottom: 16px; }
.pipeline + .fine { margin-top: 16px; }
@media (max-width: 700px) {
  table { min-width: 0; }
  thead { display: none; }
  table, tbody, tr, tbody th, td { display: block; }
  tbody tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  tbody th, td { padding: 0; border: 0; white-space: normal; }
  tbody th { font-size: 1.05rem; margin-bottom: 6px; }
  td + td { margin-top: 8px; }
}
.launch-bar { background: #1a0b09; border-bottom: 1px solid #3a1712; font-size: .9rem; }
.launch-bar[hidden] { display: none; }
.launch-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px; min-height: 42px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.launch-label { color: var(--fg-2); }
.launch-count { font: 600 .95rem var(--mono); color: var(--fg); font-variant-numeric: tabular-nums; }
.launch-count:empty { display: none; }
.launch-bar a { color: var(--red-soft); font-weight: 600; }
#nav { gap: 18px; }
.mk { display: inline-block; font-weight: 600; margin-right: 4px; }
.mk.yes { color: var(--ok); }
.mk.part { color: var(--warn); }
.mk.na { color: var(--fg-3); font-weight: 400; }
.matrix td { font-size: .88rem; }
.matrix td .tag { font-size: .62rem; padding: 4px 6px; margin-top: 6px; }
.matrix tr.us th, .matrix tr.us td { background: rgba(255, 45, 26, .07); }
.matrix tr.us th { color: var(--red-soft); }
.matrix thead th { min-width: 120px; }
@media (max-width: 700px) {
  td[data-label]::before { content: attr(data-label); display: block; font: 600 .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 4px; }
}
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }
.shot { margin: 0; }
.shot a { display: block; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg); transition: border-color .15s, transform .15s; }
.shot a:hover { border-color: var(--red); }
@media (prefers-reduced-motion: no-preference) { .shot a:hover { transform: translateY(-2px); } }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 12px; font-size: .92rem; color: var(--fg-2); }
.shot figcaption strong { color: var(--fg); }
.shot-hero a { border-radius: 16px; box-shadow: 0 30px 80px -30px rgba(255, 45, 26, .35); }
.shot-hero figcaption { font-size: .82rem; color: var(--fg-3); }
section.showcase { border-top: 0; padding-top: 0; }
