/* ==========================================================================
   GovFab — Generative Optimized Virtual Fabrication
   Design system.

   Colour carries the brand argument: blueprint-blue is everything digital
   (design, analysis, data); molten-orange is everything physical (heat,
   cutting, delivery). Pages move blue -> orange as they move idea -> object.
   ========================================================================== */

:root {
  /* Ground */
  --void:        #06080b;
  --panel:       #0e1218;
  --panel-2:     #131821;
  --rule:        #1e252f;
  --rule-soft:   #161c24;

  /* Ink */
  --chalk:       #eaeef3;
  --zinc:        #8a96a5;
  --zinc-dim:    #5d6875;

  /* Signal */
  --blueprint:   #6e9fd4;
  --blueprint-d: #2f4a68;
  --molten:      #ff5e1a;
  --molten-d:    #6d2a0f;

  /* Type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Metrics */
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --maxw:    1320px;
  --rail:    clamp(0px, 3vw, 54px);
  --ease:    cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 102px;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--molten);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--molten); color: #fff; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--molten); color: #fff; padding: .75rem 1.25rem;
  font-family: var(--mono); font-size: .8rem;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------- typography -- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  letter-spacing: -.025em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.t-hero {
  font-size: clamp(2.55rem, 6.1vw, 5.1rem);
  line-height: .97;
  letter-spacing: -.035em;
  font-variation-settings: "wdth" 88;
}
.t-xl  { font-size: clamp(2rem, 4.2vw, 3.35rem); }
.t-lg  { font-size: clamp(1.6rem, 2.9vw, 2.3rem); }
.t-md  { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 600; letter-spacing: -.015em; }
.t-sm  { font-size: 1.02rem; font-weight: 600; letter-spacing: -.005em; }

/* The name emerges out of the phrase it stands for. */
.acr { color: var(--chalk); }
.acr-rest { color: var(--zinc-dim); font-variation-settings: "wdth" 88; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.6;
  color: var(--zinc);
  font-weight: 300;
  max-width: 62ch;
  margin: 0;
}

p { margin: 0 0 1.1em; color: var(--zinc); }
p:last-child { margin-bottom: 0; }
strong { color: var(--chalk); font-weight: 500; }

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blueprint);
  margin: 0 0 1.35rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--blueprint);
  flex: none;
}
.eyebrow--molten { color: var(--molten); }
.eyebrow--molten::before { background: var(--molten); }

.mono {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--zinc-dim);
}
.mono-up {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--zinc-dim);
}

/* ------------------------------------------------------------- layout -- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 8.5vw, 8.5rem);
  border-top: 1px solid var(--rule-soft);
}
.section--flush { border-top: 0; }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--panel { background: var(--panel); }

/* Drawing-sheet zone marker down the left border of each section. */
.section[data-sheet]::before {
  content: attr(data-sheet);
  position: absolute;
  left: calc(var(--gutter) / 2 - 4px);
  top: clamp(4.5rem, 8.5vw, 8.5rem);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  opacity: .55;
  pointer-events: none;
}
@media (max-width: 900px) {
  .section[data-sheet]::before { display: none; }
}

.head { max-width: 72ch; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.head .lede { margin-top: 1.25rem; }

.grid { display: grid; gap: 1px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--gap { gap: clamp(1.5rem, 3vw, 2.75rem); }

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--wide { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
@media (max-width: 900px) {
  .split, .split--wide { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------ chrome --- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(6, 8, 11, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--rule);
  background: rgba(6, 8, 11, .92);
}
.nav__in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 74px;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.brand { display: flex; align-items: center; gap: .68rem; flex: none; }
.brand__mark { width: 33px; height: 33px; flex: none; }
.brand__word {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 88;
  font-size: 1.28rem;
  letter-spacing: .005em;
  text-transform: uppercase;
  line-height: 1;
}
.foot__about .brand { margin-top: -.2rem; }
.foot__about .brand__mark { width: 38px; height: 38px; }
.foot__about .brand__word { font-size: 1.45rem; }
.brand__word b { color: var(--chalk); font-weight: 800; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.35rem, 1.1vw, 1.05rem);
  margin-left: auto;
}
.nav__links a {
  font-size: .82rem;
  font-weight: 400;
  color: var(--zinc);
  padding: .4rem .1rem;
  position: relative;
  white-space: nowrap;
  transition: color .18s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .05rem;
  height: 1px;
  background: var(--molten);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__links a:hover { color: var(--chalk); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.is-here { color: var(--chalk); }
.nav__links a.is-here::after { transform: scaleX(1); background: var(--blueprint); }

.nav__cta { margin-left: clamp(.5rem, 1.5vw, 1.25rem); flex: none; }

.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--rule);
  width: 40px; height: 36px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}
.burger span { display: block; width: 16px; height: 1px; background: var(--chalk); transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(2.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-2.5px) rotate(-45deg); }

@media (max-width: 1120px) {
  .burger { display: flex; }
  .nav__links {
    position: fixed;
    inset: 74px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.5rem;
    margin: 0;
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    font-size: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  .nav__links a::after { display: none; }
  /* Scoped to .nav so it outranks the later .btn rule, which shares its
     specificity and would otherwise win on source order and keep the CTA
     visible — overflowing the header on narrow screens. */
  .nav .nav__cta { display: none; }
}

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .78rem 1.35rem;
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--chalk);
  cursor: pointer;
  position: relative;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.btn__ar { transition: transform .25s var(--ease); }
.btn:hover .btn__ar { transform: translateX(3px); }

.btn--primary {
  background: var(--molten);
  border-color: var(--molten);
  color: #fff;
}
.btn--primary:hover { background: #ff7238; border-color: #ff7238; }

.btn--ghost:hover { border-color: var(--blueprint); color: var(--blueprint); }

.btn--sm { padding: .55rem 1rem; font-size: .7rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blueprint);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s var(--ease);
}
.tlink:hover { border-bottom-color: var(--blueprint); }
.tlink .btn__ar { transition: transform .25s var(--ease); }
.tlink:hover .btn__ar { transform: translateX(3px); }

/* --------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  padding-top: clamp(7rem, 12vh, 10rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -18%; right: -12%;
  width: min(900px, 85vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(110,159,212,.13) 0%, rgba(110,159,212,0) 62%);
  pointer-events: none;
}
.hero__glow--m {
  top: auto; bottom: -30%; right: 8%;
  width: min(620px, 70vw);
  background: radial-gradient(circle, rgba(255,94,26,.10) 0%, rgba(255,94,26,0) 65%);
}
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 980px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
}
.hero__copy .lede { margin-top: 1.6rem; }
.hero .btn-row { margin-top: 2.4rem; }

.hero__strip {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
}
.hero__strip span {
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  padding: .95rem clamp(.9rem, 2vw, 1.6rem);
  border-right: 1px solid var(--rule-soft);
  flex: 1 1 auto;
  text-align: center;
  white-space: nowrap;
}
.hero__strip span:first-child { color: var(--zinc); padding-left: 0; }
.hero__strip span:last-child { border-right: 0; }

/* ----------------------------------------------------------- viewport -- */
/* The solver canvas and its instrumentation.                             */

.vp {
  position: relative;
  border: 1px solid var(--rule);
  background:
    linear-gradient(rgba(110,159,212,.028) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(110,159,212,.028) 1px, transparent 1px) 0 0 / 28px 100%,
    var(--panel);
}
.vp::before, .vp::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--blueprint-d);
  pointer-events: none;
}
.vp::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.vp::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.vp__bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .85rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--zinc-dim);
}
.vp__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blueprint);
  flex: none;
  box-shadow: 0 0 0 3px rgba(110,159,212,.16);
}
.vp__dot.is-done { background: var(--molten); box-shadow: 0 0 0 3px rgba(255,94,26,.16); }
.vp__bar .sp { margin-left: auto; }

.vp__stage { position: relative; aspect-ratio: 8 / 5.4; }
.vp__stage canvas { width: 100%; height: 100%; }

.vp__read {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.vp__read div {
  padding: .8rem .85rem;
  border-right: 1px solid var(--rule-soft);
}
.vp__read div:last-child { border-right: 0; }
.vp__read dt {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  margin: 0 0 .3rem;
}
.vp__read dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--chalk);
  font-variant-numeric: tabular-nums;
}
.vp__read dd em { font-style: normal; color: var(--zinc-dim); font-size: .74rem; }

/* ------------------------------------------------------------- route --- */
/* Shop-floor traveler: a part moves station to station, digital to physical. */

.route { position: relative; }
.route__line {
  position: absolute;
  top: 27px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blueprint) 0%, var(--blueprint) 22%, #8a7a6a 52%, var(--molten) 82%, var(--molten) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s var(--ease);
}
.route.is-in .route__line { transform: scaleX(1); }
@media (max-width: 680px) { .route__line { display: none; } }

.route__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
@media (max-width: 900px) { .route__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .route__grid { grid-template-columns: minmax(0, 1fr); } }

.stn { position: relative; padding-top: 0; }
.stn__node {
  width: 14px; height: 14px;
  border: 1px solid var(--st, var(--blueprint));
  background: var(--void);
  position: relative;
  margin: 20px 0 1.5rem;
}
.stn__node::after {
  content: "";
  position: absolute; inset: 3px;
  background: var(--st, var(--blueprint));
  transform: scale(0);
  transition: transform .4s var(--ease) var(--d, 0s);
}
.route.is-in .stn__node::after { transform: scale(1); }

.stn__code {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--st, var(--blueprint));
  margin-bottom: .55rem;
}
.stn h3 { font-size: 1.5rem; margin-bottom: .7rem; font-variation-settings: "wdth" 90; }
.stn p { font-size: .93rem; }

.stn__quote {
  margin-top: 1rem;
  padding: .8rem .9rem;
  border-left: 1px solid var(--rule);
  background: var(--panel);
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.55;
  color: var(--chalk);
}
.stn__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.stn__list li {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--zinc);
  padding: .38rem 0;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.stn__list li span { color: var(--zinc-dim); }

/* ------------------------------------------------------------ ledger --- */
/* Reasons as a ruled ledger rather than floating cards. */

.ledger { border-top: 1px solid var(--rule); }
.ledger__row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--rule);
  transition: background .25s var(--ease);
}
.ledger__row:hover { background: rgba(110,159,212,.03); }
.ledger__row:hover .ledger__i { color: var(--molten); }
.ledger__i {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--zinc-dim);
  padding-top: .35rem;
  transition: color .25s var(--ease);
}
.ledger__row h3 { font-size: clamp(1.3rem, 2.1vw, 1.75rem); }
.ledger__row p { font-size: .96rem; margin: 0; }
@media (max-width: 780px) {
  .ledger__row { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .ledger__i { padding-top: 0; }
}

/* -------------------------------------------------------------- cards -- */

.card {
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  position: relative;
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.card:hover { border-color: var(--rule); background: var(--panel-2); }
.card__code {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blueprint);
  margin-bottom: 1.1rem;
  display: block;
}
.card h3 { font-size: 1.18rem; margin-bottom: .6rem; font-variation-settings: "wdth" 96; }
.card p { font-size: .92rem; margin: 0; }

.grid--1px { gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
.grid--1px .card { border: 0; }

/* --------------------------------------------------------------- spec -- */
/* A datasheet reads more honestly here than a row of hero numbers. */

.spec { width: 100%; border-collapse: collapse; font-family: var(--mono); }
.spec caption {
  text-align: left;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  padding-bottom: .85rem;
}
.spec th, .spec td {
  text-align: left;
  padding: .78rem .9rem .78rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: .8rem;
  font-weight: 400;
  vertical-align: top;
}
.spec thead th {
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  border-bottom-color: var(--rule);
  padding-top: 0;
}
.spec tbody th { color: var(--chalk); font-weight: 500; white-space: nowrap; }
.spec td { color: var(--zinc); }
.spec tbody tr:hover td, .spec tbody tr:hover th { background: rgba(110,159,212,.03); }
.spec .num { color: var(--molten); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spec-scroll { overflow-x: auto; }

/* ------------------------------------------------------------ console -- */
/* The product experience mock. */

.con {
  border: 1px solid var(--rule);
  background: var(--panel);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
}
@media (max-width: 900px) { .con { grid-template-columns: minmax(0, 1fr); } }

.con__l { border-right: 1px solid var(--rule); }
@media (max-width: 900px) { .con__l { border-right: 0; border-bottom: 1px solid var(--rule); } }

.con__bar {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem .95rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--zinc-dim);
}
.con__body { padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1.1rem, 2vw, 1.6rem) 1.6rem; }

.msg { margin-bottom: 1.5rem; }
.msg__who {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  margin-bottom: .5rem;
}
.msg--user .msg__who { color: var(--zinc); }
.msg--ai .msg__who { color: var(--blueprint); }
.msg__text {
  font-family: var(--mono);
  font-size: .87rem;
  line-height: 1.6;
  color: var(--chalk);
  min-height: 1.6em;
}
.msg--ai .msg__text { color: var(--zinc); font-family: var(--body); font-size: .95rem; }
.caret {
  display: inline-block;
  width: 7px; height: 1.05em;
  background: var(--molten);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.plan { list-style: none; margin: 0; padding: 0; }
.plan li {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--zinc-dim);
  padding: .45rem 0;
  opacity: .35;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.plan li.is-on { opacity: 1; color: var(--zinc); }
.plan li.is-done { opacity: 1; color: var(--chalk); }
.plan__tick { width: 12px; height: 12px; flex: none; border: 1px solid currentColor; position: relative; }
.plan li.is-done .plan__tick { background: var(--blueprint); border-color: var(--blueprint); }
.plan li.is-on .plan__tick { border-color: var(--molten); animation: pulse 1s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 3px rgba(255,94,26,.18); } }

.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border-bottom: 1px solid var(--rule); }
@media (max-width: 560px) { .opts { grid-template-columns: minmax(0, 1fr); } }
.opt {
  background: var(--panel);
  padding: .95rem;
  cursor: pointer;
  border: 0;
  text-align: left;
  display: block;
  width: 100%;
  transition: background .2s var(--ease);
}
.opt:hover { background: var(--panel-2); }
.opt.is-sel { background: var(--panel-2); box-shadow: inset 0 2px 0 var(--molten); }
.opt canvas { width: 100%; aspect-ratio: 4 / 3; margin-bottom: .65rem; }
.opt__name { display: block; font-family: var(--mono); font-size: .68rem; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; color: var(--chalk); }
.opt__meta { display: block; font-family: var(--mono); font-size: .68rem; color: var(--zinc-dim); margin-top: .3rem; }

.quote { padding: clamp(1.1rem, 2vw, 1.6rem); }
.quote__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .62rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: .79rem;
}
.quote__row dt { color: var(--zinc-dim); }
.quote__row dd { margin: 0; color: var(--chalk); text-align: right; font-variant-numeric: tabular-nums; }
.quote__row--total { border-bottom: 0; padding-top: 1rem; }
.quote__row--total dt { color: var(--chalk); }
.quote__row--total dd { color: var(--molten); font-size: 1.15rem; font-weight: 500; }
.quote__foot { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.15rem; align-items: center; }

/* ---------------------------------------------------------- use cases -- */

.uc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
@media (max-width: 900px) { .uc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .uc { grid-template-columns: minmax(0, 1fr); } }
.uc__i {
  background: var(--void);
  padding: clamp(1.3rem, 2.2vw, 1.9rem);
  transition: background .25s var(--ease);
}
.uc__i:hover { background: var(--panel); }
.uc__i .mono-up { color: var(--molten); display: block; margin-bottom: .9rem; }
.uc__i h3 { font-size: 1.1rem; margin-bottom: .5rem; font-variation-settings: "wdth" 96; }
.uc__i p { font-size: .9rem; margin: 0; }

/* ------------------------------------------------------------ compl. --- */

.compl {
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
.compl span {
  background: var(--void);
  flex: 1 1 190px;
  padding: 1rem 1.1rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--zinc);
  display: block;
}
.compl span b { display: block; color: var(--chalk); font-weight: 500; letter-spacing: .13em; text-transform: uppercase; font-size: .68rem; margin-bottom: .3rem; }

/* ----------------------------------------------------------- network --- */

.net { position: relative; border: 1px solid var(--rule); background: var(--void); }
.net canvas { width: 100%; aspect-ratio: 16 / 7; }
@media (max-width: 700px) { .net canvas { aspect-ratio: 4 / 3; } }
.net__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .7rem .95rem;
  border-top: 1px solid var(--rule);
  background: linear-gradient(transparent, rgba(6,8,11,.9) 40%);
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* --------------------------------------------------------------- cta --- */

.cta {
  border: 1px solid var(--rule);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(255,94,26,.10), transparent 55%),
    radial-gradient(100% 140% at 0% 100%, rgba(110,159,212,.09), transparent 55%),
    var(--panel);
  padding: clamp(2.2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 820px) { .cta { grid-template-columns: minmax(0, 1fr); } }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
.cta p { margin: 1.1rem 0 0; }

/* ------------------------------------------------------------- forms --- */

.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .45rem; }
.field > label {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--zinc-dim);
}
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 300;
  color: var(--chalk);
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: .78rem .85rem;
  width: 100%;
  transition: border-color .2s var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--zinc) 50%), linear-gradient(135deg, var(--zinc) 50%, transparent 50%);
  background-position: right 1.05rem center, right .8rem center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blueprint); outline-offset: 1px; }
.field input::placeholder, .field textarea::placeholder { color: var(--zinc-dim); }
.hp { position: absolute; left: -9999px; }

.note {
  border-left: 2px solid var(--molten);
  background: var(--panel);
  padding: .95rem 1.1rem;
  font-size: .88rem;
}
.note--ok { border-left-color: var(--blueprint); }
.note p { margin: 0; }

/* ------------------------------------------------------------ footer --- */

.foot { border-top: 1px solid var(--rule); background: var(--panel); }
.foot__stmt {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
}
.foot__stmt p {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "wdth" 92;
  font-size: clamp(1.4rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--chalk);
  max-width: 24ch;
  margin: 0;
}
.foot__stmt p em { font-style: normal; color: var(--molten); }

.foot__cols {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (max-width: 860px) { .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot__cols { grid-template-columns: minmax(0, 1fr); } }
.foot__col h4 {
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  margin: 0 0 1.05rem;
}
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot__col a { font-size: .89rem; color: var(--zinc); transition: color .18s var(--ease); }
.foot__col a:hover { color: var(--chalk); }
.foot__about p { font-size: .89rem; margin: 1.1rem 0 0; max-width: 34ch; }

.foot__bar {
  border-top: 1px solid var(--rule);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.foot__bar p { margin: 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: var(--zinc-dim); }

/* -------------------------------------------------------------- misc --- */

.pagehead {
  padding-top: clamp(7rem, 11vh, 9.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.pagehead__glow {
  position: absolute; top: -40%; left: 30%;
  width: min(760px, 80vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(110,159,212,.10), transparent 62%);
  pointer-events: none;
}
.pagehead h1 { max-width: 18ch; }
.pagehead .lede { margin-top: 1.5rem; }
.pagehead .btn-row { margin-top: 2.2rem; }

.prose { max-width: 68ch; }
.prose h3 { margin: 2.5rem 0 .8rem; font-size: 1.3rem; }
.prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.1rem; color: var(--zinc); }
.prose li { margin-bottom: .5rem; }

.kv { display: grid; gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
.kv > div { background: var(--void); padding: 1.15rem 1.25rem; display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.kv dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--zinc-dim); margin: 0; }
.kv dd { margin: 0; font-size: .93rem; color: var(--chalk); text-align: right; }

/* Scroll reveal — one pass, no repeat.
   Gated on .js so that without scripting (or if site.js fails to load) the
   content is simply visible rather than permanently transparent. */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .rv { opacity: 1; transform: none; }
  .route__line { transform: scaleX(1); }
  .stn__node::after { transform: scale(1); }
}

/* ------------------------------------------------------------- chat ---- */
/* The live design engine. Shares the console shell so the working tool and
   the homepage demo read as the same product. */

.con--live { min-height: 560px; }
.con--live .con__l { display: flex; flex-direction: column; }

.chat__log {
  flex: 1;
  overflow-y: auto;
  max-height: 460px;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.chat__log::-webkit-scrollbar { width: 6px; }
.chat__log::-webkit-scrollbar-thumb { background: var(--rule); }

.bub__who {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .45rem;
}
.bub--user .bub__who { color: var(--zinc); }
.bub--ai   .bub__who { color: var(--blueprint); }
.bub--err  .bub__who { color: var(--molten); }

.bub__text { font-size: .95rem; line-height: 1.62; color: var(--zinc); }
.bub--user .bub__text { font-family: var(--mono); font-size: .87rem; color: var(--chalk); }
.bub__text strong { color: var(--chalk); font-weight: 500; }
.bub__text p { margin: 0 0 .75em; }
.bub__text p:last-child { margin-bottom: 0; }
.bub__text ul, .bub__text ol { margin: .3rem 0 .8rem; padding-left: 1.15rem; }
.bub__text li { margin-bottom: .3rem; }
.bub--err .bub__text { color: var(--chalk); }

.chat__dots { display: inline-flex; gap: 4px; align-items: center; height: 1.4em; }
.chat__dots i {
  width: 5px; height: 5px; background: var(--blueprint); display: block;
  animation: cdot 1.1s var(--ease) infinite;
}
.chat__dots i:nth-child(2) { animation-delay: .15s; }
.chat__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cdot { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }

.chat__foot { border-top: 1px solid var(--rule); padding: .9rem; }
.chat__form { display: flex; gap: .6rem; align-items: flex-end; }
.chat__form textarea {
  flex: 1;
  font-family: var(--mono);
  font-size: .85rem;
  line-height: 1.5;
  color: var(--chalk);
  background: var(--void);
  border: 1px solid var(--rule);
  padding: .65rem .75rem;
  resize: none;
  min-height: 46px;
  max-height: 130px;
  border-radius: 0;
}
.chat__form textarea:focus { border-color: var(--blueprint); outline-offset: 1px; }
.chat__form textarea::placeholder { color: var(--zinc-dim); }
.chat__form button { flex: none; height: 46px; }
.chat__form button[disabled] { opacity: .45; cursor: not-allowed; }

.chat__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.chat__chips button {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .05em;
  color: var(--zinc);
  background: var(--void);
  border: 1px solid var(--rule);
  padding: .4rem .6rem;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.chat__chips button:hover { border-color: var(--blueprint); color: var(--chalk); }

/* ----- geometry preview ----- */

.pv { position: relative; background: var(--void); border-bottom: 1px solid var(--rule); }
.pv canvas { width: 100%; aspect-ratio: 4 / 3; cursor: grab; touch-action: none; }
.pv canvas:active { cursor: grabbing; }
.pv__empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem;
  font-family: var(--mono);
  font-size: .74rem;
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--zinc-dim);
}
.pv__hint {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .5rem .75rem;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  background: linear-gradient(transparent, rgba(6,8,11,.85));
  pointer-events: none;
}
.pv__meta { padding: clamp(1rem, 2vw, 1.35rem); }
.pv__meta .quote__foot { margin-top: 1.1rem; }

/* Server-rendered part views. The browser never receives geometry, so the
   preview is an image with an orthographic-style view switcher rather than a
   live canvas. */
.pv__stage { position: relative; }
.pv__img { width: 100%; height: auto; display: block; background: var(--panel); }
.pv__tabs {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
}
.pv__tabs button {
  flex: 1;
  background: rgba(6,8,11,.82);
  border: 0;
  padding: .5rem .4rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--zinc-dim);
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.pv__tabs button:hover { color: var(--chalk); }
.pv__tabs button.is-on { color: var(--chalk); background: rgba(255,94,26,.14); box-shadow: inset 0 1px 0 var(--molten); }
