  :root {
    --bg: #07090b;
    --panel: #0e1216;
    --fg: #e7ebee;
    --muted: #9aa6ae;
    --line: #1f272d;
    --ember: #ff7a3d;
    --ice: #b9d6e6;
    --aurora: #3fb39a;
    --code-bg: #0b0f12;
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html { background: var(--bg); }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  }
  .hero {
    margin: 0;
    background: #000;
    border-bottom: 1px solid var(--line);
  }
  .hero img {
    display: block;
    width: 100%;
    max-width: 1672px;
    height: auto;
    aspect-ratio: 1672 / 941;
    margin: 0 auto;
  }
  main { max-width: 46rem; margin: 0 auto; padding: 3rem 1.25rem 5rem; }
  h1 {
    font-size: clamp(1.9rem, 5.5vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--ice);
    letter-spacing: 0.01em;
  }
  h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ember);
    margin: 3.25rem 0 1rem;
  }
  p.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 2rem; }
  ol, ul { padding-left: 1.25rem; }
  li { margin: 0.45rem 0; }
  li::marker { color: var(--ember); }
  pre {
    background: var(--code-bg);
    border: 1px solid var(--line);
    border-left: 3px solid var(--aurora);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ice);
  }
  table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
  th, td { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
  th { font-weight: 600; color: var(--muted); }
  td:first-child { color: var(--ice); white-space: nowrap; padding-right: 1rem; }
  .status {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--aurora);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    color: var(--muted);
  }
  footer { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
  a { color: var(--ember); }
  @media (max-width: 30rem) {
    td:first-child { white-space: normal; }
  }

  /* Shared navigation and editorial pages. No scripts or downloaded fonts. */
  a { text-underline-offset: 0.2em; }
  a:hover { color: var(--ice); }
  a:focus-visible { outline: 2px solid var(--ice); outline-offset: 5px; }
  .skip-link {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    padding: 0.6rem 1rem;
    background: var(--panel);
    transform: translateY(-200%);
    z-index: 1;
  }
  .skip-link:focus { transform: translateY(0); }
  .site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    max-width: 74rem;
    margin: 0 auto;
    padding: 1rem 1.25rem;
  }
  .site-brand {
    display: block;
    flex: 0 0 auto;
    width: clamp(16rem, 27vw, 24rem);
    max-width: 100%;
  }
  .site-brand img {
    display: block;
    width: 100%;
    height: auto;
  }
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 0.9375rem;
  }
  .site-nav a {
    display: inline-block;
    padding: 0.5rem 0;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
  }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ice); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--ember); }
  .site-nav .nav-contact {
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--ember);
    border-radius: 6px;
    color: var(--ember);
  }
  .site-nav .nav-contact:hover, .site-nav .nav-contact[aria-current="page"] {
    color: var(--ice);
    border-color: var(--ice);
  }
  @media (max-width: 60rem) {
    .site-header .site-nav { flex-basis: 100%; }
  }
  .direction-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .direction-link {
    display: block;
    padding: 1.25rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
  }
  .direction-link:hover { border-color: var(--ember); }
  .direction-link strong { display: block; margin-bottom: 0.5rem; color: var(--ember); }
  .direction-link span { display: block; color: var(--muted); }
  .article { border-top: 1px solid var(--line); }
  .article h2 {
    font-size: 1.375rem;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: normal;
    color: var(--ice);
    margin: 3.5rem 0 1rem;
  }
  .article h3 { font-size: 1.0625rem; line-height: 1.4; color: var(--ice); }
  .eyebrow { font-size: 0.875rem; color: var(--ember); margin: 0 0 1rem; }
  .stage-note { margin: 2rem 0; }
  .stage-note p { margin: 0.65rem 0; }
  .stage-note strong { color: var(--fg); }
  .callout {
    margin: 2rem 0;
    padding: 0.25rem 0 0.25rem 1.25rem;
    border-left: 3px solid var(--ember);
    color: var(--ice);
    font-size: 1.1875rem;
  }
  .callout p { margin: 0.5rem 0; }
  .diagram {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
  }
  .diagram figcaption { margin-top: 1.25rem; color: var(--muted); font-size: 0.9375rem; }
  .flow { display: grid; gap: 0.6rem; text-align: center; }
  .node {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--code-bg);
    color: var(--ice);
  }
  .node.heat { color: var(--ember); border-color: #6b3c28; }
  .node small { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted); }
  .arrow { display: block; color: var(--muted); line-height: 1.2; }
  .flow-outputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.65rem; align-items: start; }
  .flow-outputs > .plus { padding-top: 0.75rem; color: var(--muted); }
  .flow-branch { display: grid; gap: 0.6rem; }
  .seasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .season h3 { margin-top: 0; }
  .season + .season { border-left: 1px solid var(--line); padding-left: 1.25rem; }
  .metrics, .dimensions { margin: 1.5rem 0; }
  .metrics > div, .dimensions > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .metrics dt, .dimensions dt { color: var(--ice); font-weight: 600; }
  .metrics dd, .dimensions dd { margin: 0.3rem 0 0; color: var(--muted); }
  .roadmap { list-style: none; padding: 0; counter-reset: stage; margin: 1.5rem 0; }
  .roadmap li { position: relative; margin: 0; padding: 0 0 1.5rem 2.5rem; counter-increment: stage; }
  .roadmap li::before { content: counter(stage); position: absolute; left: 0; top: 0; color: var(--ember); }
  .roadmap li:not(:last-child)::after {
    content: "↓";
    position: absolute;
    left: 0;
    top: 1.8rem;
    color: var(--muted);
  }
  .roadmap strong, .roadmap span { display: block; }
  .roadmap strong { color: var(--ice); }
  .roadmap span { color: var(--muted); margin-top: 0.25rem; }
  .article footer p { margin: 0.5rem 0; }
  @media (max-width: 36rem) {
    .direction-links, .seasons { grid-template-columns: 1fr; }
    .season + .season { border-left: 0; border-top: 1px solid var(--line); padding: 1.25rem 0 0; }
    .diagram { padding: 1rem; }
    .flow-outputs { grid-template-columns: 1fr; }
    .flow-outputs > .plus { padding: 0; }
    .site-nav { column-gap: 1.25rem; }
  }

/* Supplied concept views, with captions that distinguish feasibility from operation. */
.concept-sketch {
  margin: 2rem 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}
.sketch-image, .sketch-scene { display: block; border-radius: 5px 5px 0 0; overflow: hidden; }
.sketch-image img { display: block; width: 100%; height: auto; }
.sketch-scene { position: relative; aspect-ratio: 8 / 5; }
/* Each sheet cell is 800 × 520 px: a 20 px title above a 800 × 500 px view. */
.sketch-scene img {
  position: absolute;
  display: block;
  width: 200%;
  max-width: none;
  height: auto;
  left: 0;
  top: -4%;
}
.sketch-first-stage img, .sketch-growth img, .sketch-heat img { left: -100%; }
.sketch-growth img { top: -108%; }
.sketch-network img, .sketch-heat img { top: -316%; }
.concept-sketch figcaption { padding: 1rem 1.25rem; color: var(--muted); font-size: 0.9375rem; }
.concept-sketch figcaption strong { display: block; color: var(--ice); margin: 0.4rem 0; font-size: 1.0625rem; }
.sketch-label { display: block; color: var(--ember); font-size: 0.8125rem; }
.sketch-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 64rem; margin: 3rem auto; }
.sketch-pair .concept-sketch { margin: 0; }
@media (max-width: 48rem) {
  .sketch-pair { grid-template-columns: 1fr; }
}

/* Legal pages and the signup form */
.legal h2 { font-size: 1.1rem; }
.draftnote { color: var(--muted); font-size: 0.9rem; }
form.signup { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
form.signup label { display: grid; gap: 0.3rem; color: var(--muted); font-size: 0.95rem; }
form.signup input, form.signup select, form.signup textarea {
  background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 6px;
  padding: 0.6rem 0.75rem; font: inherit; width: 100%; }
form.signup .check { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--fg); }
form.signup .check input { width: auto; margin-top: 0.35rem; }
form.signup button { justify-self: start; background: var(--ember); color: #1a0c05; border: 0;
  border-radius: 6px; padding: 0.7rem 1.2rem; font: inherit; font-weight: 600; cursor: pointer; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error { color: #ff6b6b; }

/* Customer offer and the path from a workload review to API access. */
.commercial { max-width: 74rem; padding-top: 1.5rem; }
.commercial > section, .commercial > footer { max-width: 44rem; }
.home-hero { position: relative; isolation: isolate; padding: 1rem 0 2rem; }
.home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(100%, 34rem);
  height: 100%;
  background: url("assets/eldrim-rune-square.svg") center / contain no-repeat;
  opacity: 0.04;
  pointer-events: none;
}
.home-hero p, .home-hero .actions { max-width: 44rem; }
.home-hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.5rem); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.button {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--ember);
  border-radius: 6px;
  background: var(--ember);
  color: #1a0c05;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}
.button:hover { background: var(--ice); border-color: var(--ice); color: var(--bg); }
.button.secondary { background: transparent; color: var(--ice); border-color: var(--muted); }
.button.secondary:hover { background: var(--panel); border-color: var(--ice); }
.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.75rem 0 1rem;
  padding: 0;
  list-style: none;
  color: var(--ice);
  font-size: 0.875rem;
}
.capabilities li { margin: 0; }
.customer-questions { padding-left: 1.25rem; }
.customer-questions li { margin: 0.75rem 0; }
.review-offer {
  margin: 1.75rem 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  border-radius: 6px;
  background: var(--panel);
}
.review-offer h3 { margin-top: 0; }
.review-offer p:last-child { margin-bottom: 0; }
.production-plan { padding-left: 1.5rem; }
.production-plan li { padding-left: 0.5rem; margin: 1.5rem 0; }
.production-plan h3 { margin: 0 0 0.35rem; }
.production-plan p { margin: 0; }
.closing-invitation { margin-top: 3.5rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.form-hint { margin: -0.4rem 0 0; color: var(--muted); font-size: 0.9375rem; }

/* Developer guide: a local table of contents and keyboard-scrollable examples. */
.developer-docs { max-width: 74rem; }
.docs-hero { max-width: 48rem; }
.docs-hero h1 { font-size: clamp(2.4rem, 6.4vw, 4rem); }
.docs-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 3rem; margin-top: 2.5rem; }
.docs-nav { position: sticky; top: 1.5rem; align-self: start; border-left: 1px solid var(--line); padding-left: 1rem; }
.docs-nav p { color: var(--muted); font-size: 0.8125rem; margin: 0 0 0.75rem; }
.docs-nav a { display: block; padding: 0.35rem 0; font-size: 0.9375rem; text-decoration: none; }
.api-reference .docs-nav { max-height: calc(100vh - 3rem); overflow-y: auto; overflow-wrap: anywhere; }
.docs-content { min-width: 0; }
.docs-content > section:first-child h2 { margin-top: 0; }
.docs-content h2 { scroll-margin-top: 1.5rem; }
.docs-content code { font-size: 0.875em; overflow-wrap: anywhere; color: var(--ice); }
.docs-content pre code { font-size: inherit; overflow-wrap: normal; }
.docs-content pre { margin: 1.25rem 0; }
.docs-content details { margin: 1.5rem 0; padding: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.docs-content summary { cursor: pointer; color: var(--ice); }
.docs-content details pre { margin-bottom: 0; }
.developer-docs :is(pre, summary, .table-scroll):focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.table-scroll { overflow-x: auto; }
.docs-content table { min-width: 36rem; }
.docs-content td:first-child { white-space: normal; }
.job-flow { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; padding: 1rem 1rem 1rem 2.5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.job-flow li { padding-right: 0.75rem; font-size: 0.9375rem; color: var(--ice); }
@media (max-width: 60rem) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
  .docs-nav p { flex-basis: 100%; }
  .api-reference .docs-nav { max-height: none; overflow: visible; }
}
