/* Micro Motion design system.
 *
 * The world is a machined bench: green-black ink, warm metal grey type, and a
 * quiet oxidized copper used tonally rather than as a bright accent. Depth
 * comes from tone and a self-coloured edge, never from a bloomed shadow.
 *
 * One piece of geometry signs the site: the chamfer. It is the corner relief
 * cut on a motor endbell, and it appears only where something is a physical
 * object in the composition - the navigation bar, the drawing sheet, the
 * result panel. It is not applied to every box.
 */

@font-face {
  font-family: "Tanker";
  src: url("/assets/fonts/tanker-regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  /* Surface, deepest to raised. These are SURFACES, not text colours. The
   * text scale is --metal .. --metal-4 on dark and --paper-ink .. --paper-ink-3
   * on the drawing sheet. */
  --ink: #11140f;
  --carbon: #191d18;
  --carbon-2: #222820;
  --carbon-3: #2a3329;
  --machine: #26362a;
  --machine-2: #304638;

  /* Edges are the surface's own colour at low opacity, so they read as a lip
   * catching light rather than as a drawn outline. */
  --edge: rgba(214, 213, 202, 0.09);
  --edge-strong: rgba(214, 213, 202, 0.17);
  --edge-light: rgba(255, 255, 255, 0.055);

  /* Text on dark. --metal-3 is the smallest step that still clears 4.5:1
   * against every surface in this palette, so it is the floor for body-sized
   * text. --metal-4 is a rule and separator tone, never running text. */
  --metal: #f0efe5;
  --metal-2: #cbd0c5;
  --metal-3: #b2bbae;
  --metal-4: #7f897e;

  /* The accent is a tonal step, not a saturated swatch. --copper is the only
   * one of the three that clears 4.5:1 as small text on the dark surfaces;
   * --copper-deep and --copper-quiet are edge and fill tones. */
  --copper: #b98b67;
  --copper-deep: #7b5b45;
  --copper-quiet: #8d6d54;

  /* The drawing sheet. */
  --paper: #e7e6dc;
  --paper-2: #d8d8cc;
  --paper-3: #c5c6b9;
  --paper-ink: #14170f;
  --paper-ink-2: #454b41;
  --paper-ink-3: #4f554b;
  --paper-edge: rgba(20, 23, 15, 0.16);

  --warn: #c98a5e;

  --display: "Tanker", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1.15rem, 4.4vw, 5.5rem);
  --band-pad: clamp(3.5rem, 6vw, 6.5rem);
  --measure-width: 66ch;
  --chamfer: 14px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Reset and base
   -------------------------------------------------------------------------- */

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

html {
  background: var(--carbon);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--metal);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* One continuous surface for the whole document. It scrolls with the
   * content; nothing is pinned behind the page. */
  background-color: var(--carbon);
  background-image: linear-gradient(
    180deg,
    #191d18 0%,
    #1d231c 26%,
    #192119 52%,
    #161d16 76%,
    #121712 100%
  );
  background-attachment: scroll;
  overflow-x: hidden;
  /* Technical copy carries file extensions, hashes, part numbers and unit
   * strings that a narrow column cannot break at a space. Without this one
   * of them eventually pushes the whole page sideways. */
  overflow-wrap: break-word;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

/* Any author `display` beats the user-agent rule for [hidden], so state it
 * once here rather than discovering it element by element. */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

::selection {
  background: var(--copper-deep);
  color: #f2f0e6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--metal);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
  scroll-margin-top: 6.5rem;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 0.92;
  color: #e4e2d5;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 6.2vw, 6.2rem);
  line-height: 0.84;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.95rem, 3.8vw, 3.5rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.05;
}

h4 {
  scroll-margin-top: 6.5rem;
  margin: 0;
  font-family: var(--body);
  font-size: 0.94rem;
  font-weight: 650;
  color: var(--metal);
}

@media (max-width: 31rem) {
  h1 {
    font-size: 2.15rem;
    line-height: 0.9;
  }

  .open-statement h1.statement {
    max-width: none;
    font-size: 2.05rem;
    line-height: 0.94;
  }
}

.measure {
  max-width: var(--measure-width);
}

.stack > * + * {
  margin-top: 1.1rem;
}

.lede {
  max-width: 56ch;
  color: var(--metal-2);
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.62;
}

.dropline {
  color: var(--metal-3);
  font-size: 0.86rem;
  line-height: 1.6;
}

code,
kbd,
samp {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--metal);
}

/* The one role label on the site: the small word that names what a value is,
 * above or beside it. It is deliberately the ONLY letterspaced-uppercase
 * treatment in the system. The navigation, the buttons, the stats, the section
 * openers and the footer are all set some other way, so this does not become a
 * costume every small string wears. */
.role-label,
.app-result-label,
.tools-entry-label,
.lib-process-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--metal-3);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Marks
   -------------------------------------------------------------------------- */

.mark {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.mark-action {
  width: 0.95em;
  height: 0.95em;
  stroke-width: 1.6;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem var(--gutter) 0;
}

.nav-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.6rem);
  min-height: 62px;
  padding: 0.5rem 0.55rem 0.5rem 1.15rem;
  background: transparent;
}

/* The shell silhouette belongs to a paint layer, not the navigation's
 * clipping context. The compact drawer can now extend below it and remain
 * pointer-accessible while the authored chamfer stays intact. */
.nav-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(14, 17, 13, 0.96);
  box-shadow: inset 0 1px 0 var(--edge-light), inset 0 0 0 1px var(--edge);
  clip-path: polygon(
    0 0,
    calc(100% - var(--chamfer)) 0,
    100% var(--chamfer),
    100% 100%,
    var(--chamfer) 100%,
    0 calc(100% - var(--chamfer))
  );
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  fill: none;
  stroke: var(--metal);
  stroke-width: 1.3;
}

.brand-mark circle:nth-of-type(2) {
  fill: var(--copper-deep);
  stroke: var(--copper);
}

.brand-word {
  font-family: var(--display);
  font-size: 0.92rem;
  line-height: 0.86;
  letter-spacing: 0.03em;
  color: var(--metal);
  text-transform: uppercase;
}

.nav-routes {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.9vw, 2.1rem);
  min-width: 0;
}

.nav-routes a {
  color: var(--metal-3);
  font-size: 0.79rem;
  font-weight: 550;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.nav-routes a:hover {
  color: var(--metal);
}

/* The current route reads through weight and value, not a mark bolted on. */
.nav-routes a.is-current {
  color: var(--metal);
  font-weight: 700;
}

.nav-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 44px;
  padding: 0 1.05rem;
  background: var(--metal);
  color: var(--ink);
  font-size: 0.79rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.16s ease;
}

.nav-action:hover {
  background: #efeee1;
}

.nav-action:hover .mark-action {
  transform: translate(2px, -2px);
}

/* The compact menu is a native disclosure, so it opens with no JavaScript at
 * all. Nothing in the navigation depends on a script running. */
.nav-menu {
  display: none;
  position: relative;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 44px;
  cursor: pointer;
  list-style: none;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-toggle-bars {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.nav-toggle-bars i {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--metal);
  transition: width 0.18s ease;
}

.nav-toggle-bars i:last-child {
  width: 13px;
}

.nav-menu[open] .nav-toggle-bars i:last-child {
  width: 20px;
}

.nav-drawer {
  position: absolute;
  z-index: 110;
  top: calc(100% + 0.5rem);
  right: -0.55rem;
  display: grid;
  min-width: min(19rem, calc(100vw - 2 * var(--gutter)));
  padding: 0.4rem 0;
  background: #14180f;
  box-shadow: inset 0 0 0 1px var(--edge-strong);
  clip-path: polygon(
    0 0,
    calc(100% - var(--chamfer)) 0,
    100% var(--chamfer),
    100% 100%,
    var(--chamfer) 100%,
    0 calc(100% - var(--chamfer))
  );
}

.nav-drawer-link {
  padding: 0.85rem 1.25rem;
  color: var(--metal-2);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-drawer-link:hover {
  color: var(--metal);
  background: rgba(214, 213, 202, 0.06);
}

.nav-drawer-link.is-current {
  color: var(--metal);
  font-weight: 700;
}

.nav-drawer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
  padding-top: 1rem;
  color: var(--copper);
  box-shadow: inset 0 1px 0 var(--edge);
}

@media (max-width: 1140px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto;
  }

  .nav-routes {
    display: none;
  }

  .nav-menu {
    display: block;
  }
}

@media (max-width: 560px) {
  .brand-word {
    font-size: 0.8rem;
  }

  .nav-action {
    padding: 0 0.85rem;
    font-size: 0.74rem;
  }
}

@media (max-width: 400px) {
  /* The full action remains in the drawer. Removing the square arrow-only
   * version keeps the compact header legible instead of turning the action
   * into an unexplained icon tile. */
  .nav-action {
    display: none;
  }

  .nav-menu {
    grid-column: 3;
  }
}

/* --------------------------------------------------------------------------
   Bands
   -------------------------------------------------------------------------- */

.band {
  position: relative;
  padding: var(--band-pad) var(--gutter);
  isolation: isolate;
}

.band-inner {
  position: relative;
  z-index: 1;
  max-width: 1560px;
  margin: 0 auto;
}

.band-wide .band-inner {
  max-width: none;
}

/* Grain sits on the substrate, always behind text and controls. */
.band::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0.038;
  background-image: var(--grain);
  pointer-events: none;
}

.band-deep {
  background: linear-gradient(180deg, rgba(8, 10, 8, 0) 0%, rgba(8, 10, 8, 0.55) 22%, rgba(8, 10, 8, 0.55) 78%, rgba(8, 10, 8, 0) 100%);
}

/* The machine step dissolves into the surface above and below instead of
 * cutting at a hard line. */
.band-machine {
  background: linear-gradient(
    180deg,
    rgba(38, 54, 42, 0) 0%,
    rgba(38, 54, 42, 0.5) 14%,
    rgba(38, 54, 42, 0.62) 50%,
    rgba(38, 54, 42, 0.5) 86%,
    rgba(38, 54, 42, 0) 100%
  );
}

/* The drawing sheet. This is the one deliberate hard break on the page: a
 * light sheet laid on the dark bench, chamfered at the leading corner so it
 * reads as an object rather than a band of different paint. */
.band-light {
  margin: clamp(2rem, 4vw, 4.5rem) var(--gutter);
  padding: var(--band-pad) clamp(1.5rem, 4vw, 4.5rem);
  background: var(--paper);
  color: var(--paper-ink);
  clip-path: polygon(
    0 calc(var(--chamfer) * 2),
    calc(var(--chamfer) * 2) 0,
    100% 0,
    100% calc(100% - var(--chamfer) * 2),
    calc(100% - var(--chamfer) * 2) 100%,
    0 100%
  );
}

.band-light::before {
  opacity: 0.05;
  mix-blend-mode: multiply;
}

.band-light h1,
.band-light h2,
.band-light h3 {
  color: var(--paper-ink);
}

.band-light .lede,
.band-light p {
  color: var(--paper-ink-2);
}

.band-light .dropline {
  color: var(--paper-ink-3);
}

/* --------------------------------------------------------------------------
   Section openers
   -------------------------------------------------------------------------- */

.open-statement .statement {
  max-width: 22ch;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.4vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: -0.022em;
  color: #e4e2d5;
  text-wrap: balance;
}

.band-light .open-statement .statement {
  color: var(--paper-ink);
}

.open-statement .statement-lead {
  max-width: 58ch;
  margin-top: clamp(1.4rem, 2.4vw, 2.4rem);
  color: var(--metal-2);
  font-size: 1.02rem;
  line-height: 1.66;
}

.band-light .open-statement .statement-lead {
  color: var(--paper-ink-2);
}

/* The sheet number is a margin annotation on the right, the way a drawing
 * numbers its zones. Putting it there keeps every section's heading on the
 * same left edge as the rest of the page. */
.open-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 clamp(1rem, 2.5vw, 2.5rem);
  align-items: baseline;
}

.sheet-index {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--copper);
}

.band-light .sheet-index {
  color: var(--copper-deep);
}

.open-sheet h2 {
  grid-column: 1;
  grid-row: 1;
  max-width: 18ch;
}

.sheet-index {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.open-sheet .open-lead {
  grid-column: 1;
  max-width: 56ch;
  margin-top: 1.3rem;
  color: var(--metal-2);
  line-height: 1.66;
}

.open-inline h2,
.open-inline h3 {
  max-width: 20ch;
}

.open-inline .open-lead {
  max-width: 58ch;
  margin-top: 1.1rem;
  color: var(--metal-2);
  line-height: 1.66;
}

/* Pages are built from the same engineering primitives, but their rhythm is
 * intentionally not uniform. Alternating the opener's anchor gives the eye a
 * new entry point as the reader moves through a long technical page. This is
 * structural variation, not decoration: copy stays in a readable measure and
 * the underlying source order remains unchanged. */
.band:nth-of-type(3n + 2) .open-inline {
  max-width: 54rem;
  margin-left: auto;
  text-align: right;
}

.band:nth-of-type(3n + 2) .open-inline .open-lead {
  margin-left: auto;
}

.band:nth-of-type(3n) .open-statement {
  max-width: 70rem;
  margin-left: clamp(1rem, 9vw, 9rem);
}

.band:nth-of-type(4n) .open-sheet {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(1rem, 2.5vw, 2.5rem);
}

.band:nth-of-type(4n) .open-sheet .sheet-index {
  grid-column: 1;
  justify-self: start;
}

.band:nth-of-type(4n) .open-sheet h2,
.band:nth-of-type(4n) .open-sheet .open-lead {
  grid-column: 2;
}

/* Tone-specific compositions keep the principal pages visibly authored even
 * when a route has a different number of sections. These are the dependable
 * anchors for the home page and the core landing pages; nth-of-type above adds
 * further variation on longer pages. */
.band-machine .open-sheet {
  max-width: 58rem;
  margin-left: auto;
  text-align: right;
}

.band-light .open-inline {
  max-width: 54rem;
  margin-left: auto;
  text-align: right;
}

.band-light .open-inline .open-lead {
  margin-left: auto;
  text-align: center;
}

.band-base .open-statement {
  max-width: 66rem;
  margin-left: clamp(1rem, 8vw, 8rem);
}

.band-light .open-sheet .open-lead,
.band-light .open-inline .open-lead {
  color: var(--paper-ink-2);
}

@media (max-width: 720px) {
  .open-sheet {
    grid-template-columns: minmax(0, 1fr);
  }

  .sheet-index {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin-top: 0.6rem;
  }

  .band:nth-of-type(3n + 2) .open-inline,
  .band:nth-of-type(3n) .open-statement,
  .band-machine .open-sheet,
  .band-light .open-inline,
  .band-base .open-statement {
    max-width: none;
    margin-left: 0;
    text-align: left;
  }

  .band:nth-of-type(3n + 2) .open-inline .open-lead,
  .band-light .open-inline .open-lead {
    margin-left: 0;
    text-align: left;
  }

  .band:nth-of-type(4n) .open-sheet {
    grid-template-columns: minmax(0, 1fr);
  }

  .band:nth-of-type(4n) .open-sheet h2,
  .band:nth-of-type(4n) .open-sheet .open-lead {
    grid-column: 1;
  }
}

/* --------------------------------------------------------------------------
   Actions
   -------------------------------------------------------------------------- */

.action {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 44px;
  color: var(--metal);
  font-size: 0.86rem;
  font-weight: 680;
  box-shadow: inset 0 -1px 0 var(--edge-strong);
  transition: color 0.16s ease, box-shadow 0.16s ease;
}

.action:hover {
  color: #f0eee1;
  box-shadow: inset 0 -1px 0 var(--copper);
}

.action:hover .mark-action {
  transform: translate(2px, -2px);
}

.action-primary {
  padding: 0 1.2rem;
  border: 0;
  background: var(--metal);
  color: var(--ink);
  box-shadow: none;
  cursor: pointer;
}

.action-primary:hover {
  background: #efeee1;
  color: var(--ink);
  box-shadow: none;
}

.band-light .action {
  color: var(--paper-ink);
  box-shadow: inset 0 -1px 0 var(--paper-edge);
}

.band-light .action:hover {
  box-shadow: inset 0 -1px 0 var(--copper-deep);
}

.band-light .action-primary {
  background: var(--paper-ink);
  color: var(--paper);
}

.band-light .action-primary:hover {
  background: #22271c;
  color: var(--paper);
}

/* Onward routes. Each row is a decision with its reason, on one grid. */
.route-list {
  display: grid;
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  background: var(--edge);
}

.route {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto;
  gap: 0.35rem clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  padding: 1.35rem 1.1rem;
  background: var(--carbon);
  transition: background 0.16s ease;
}

.route:hover {
  background: var(--carbon-3);
}

.route-label {
  color: var(--metal);
  font-size: 0.98rem;
  font-weight: 650;
}

.route-why {
  color: var(--metal-3);
  font-size: 0.87rem;
  line-height: 1.55;
}

.route .mark-action {
  align-self: center;
  color: var(--metal-3);
}

.route:hover .mark-action {
  color: var(--copper);
  transform: translate(2px, -2px);
}

.band-light .route-list {
  background: var(--paper-edge);
}

.band-light .route {
  background: var(--paper);
}

.band-light .route:hover {
  background: var(--paper-2);
}

.band-light .route-label {
  color: var(--paper-ink);
}

.band-light .route-why {
  color: var(--paper-ink-3);
}

@media (max-width: 760px) {
  .route {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .route-why {
    grid-column: 1;
  }

  .route .mark-action {
    grid-row: 1;
    grid-column: 2;
  }
}

/* --------------------------------------------------------------------------
   Values and evidence basis
   -------------------------------------------------------------------------- */

.value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.value-number {
  color: var(--metal);
  font-size: 0.95em;
  font-weight: 600;
}

.value-unit {
  color: var(--metal-3);
  font-size: 0.82em;
}

.value-unknown {
  color: var(--metal-3);
  font-family: var(--body);
  font-size: 0.86em;
  font-style: italic;
}

.band-light .value-number {
  color: var(--paper-ink);
}

.band-light .value-unit {
  color: var(--paper-ink-3);
}

.band-light .value-unknown {
  color: var(--paper-ink-3);
}

/* Basis is set as type, not as a tinted chip. */
.basis {
  font-family: var(--body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--metal-3);
  cursor: help;
}

.basis-published {
  color: var(--metal-2);
}

.basis-calculated {
  color: var(--copper);
}

.basis-typical,
.basis-target {
  color: var(--metal-3);
  font-style: italic;
}

.basis-maximum {
  color: var(--warn);
}

.basis-unknown {
  color: var(--metal-3);
  font-style: italic;
}

.band-light .basis {
  color: var(--paper-ink-3);
}

.band-light .basis-published {
  color: var(--paper-ink-2);
}

.band-light .basis-calculated,
.band-light .basis-maximum {
  color: var(--copper-deep);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--metal-4) transparent;
}

.spec-table,
.data-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.spec-table caption,
.data-table caption {
  padding-bottom: 1rem;
  color: var(--metal-3);
  font-size: 0.85rem;
  text-align: left;
}

.spec-table th,
.spec-table td,
.data-table th,
.data-table td {
  padding: 0.72rem 1rem 0.72rem 0;
  text-align: left;
  vertical-align: baseline;
  box-shadow: inset 0 -1px 0 var(--edge);
}

.spec-table thead th,
.data-table thead th {
  padding-bottom: 0.6rem;
  color: var(--metal-3);
  font-size: 0.76rem;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 var(--edge-strong);
}

.spec-table tbody th,
.data-table tbody th {
  color: var(--metal);
  font-weight: 600;
  padding-right: 2rem;
}

.spec-table td,
.data-table td {
  color: var(--metal-2);
}

.data-table td.is-numeric,
.data-table th.is-numeric {
  text-align: right;
  padding-right: 1.4rem;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.data-table thead th.is-numeric {
  font-family: var(--body);
}

.column-unit {
  color: var(--metal-3);
  font-weight: 500;
}

.cell-note {
  max-width: 34ch;
  color: var(--metal-3);
  font-size: 0.82rem;
  line-height: 1.5;
}

.data-table tbody tr:hover td,
.data-table tbody tr:hover th {
  background: rgba(214, 213, 202, 0.035);
}

.band-light .spec-table th,
.band-light .spec-table td,
.band-light .data-table th,
.band-light .data-table td {
  box-shadow: inset 0 -1px 0 var(--paper-edge);
}

.band-light .spec-table thead th,
.band-light .data-table thead th {
  color: var(--paper-ink-3);
  box-shadow: inset 0 -1px 0 rgba(20, 23, 15, 0.3);
}

.band-light .spec-table tbody th,
.band-light .data-table tbody th {
  color: var(--paper-ink);
}

.band-light .spec-table td,
.band-light .data-table td {
  color: var(--paper-ink-2);
}

.band-light .cell-note {
  color: var(--paper-ink-3);
}

.band-light .data-table tbody tr:hover td,
.band-light .data-table tbody tr:hover th {
  background: rgba(20, 23, 15, 0.04);
}

/* --------------------------------------------------------------------------
   Comparison grid
   -------------------------------------------------------------------------- */

.compare-grid {
  --compare-columns: 3;
  min-width: 40rem;
}

.compare-of-2 { --compare-columns: 2; }
.compare-of-3 { --compare-columns: 3; }
.compare-of-4 { --compare-columns: 4; }
.compare-of-5 { --compare-columns: 5; }

.compare-row {
  display: grid;
  grid-template-columns: minmax(9rem, 0.9fr) repeat(var(--compare-columns), minmax(0, 1fr));
  gap: 0 clamp(1rem, 2vw, 2rem);
  align-items: start;
  padding: 0.8rem 0;
  box-shadow: inset 0 -1px 0 var(--edge);
}

.compare-head {
  align-items: end;
  padding-bottom: 1.1rem;
  box-shadow: inset 0 -1px 0 var(--edge-strong);
}

.compare-head .compare-rowlabel {
  visibility: hidden;
}

.compare-rowlabel {
  color: var(--metal-3);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
}

.compare-cell {
  display: block;
  min-width: 0;
  color: var(--metal-2);
  font-size: 0.88rem;
  line-height: 1.5;
}

.compare-title {
  display: block;
  color: var(--metal);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.compare-subtitle {
  display: block;
  min-height: 1.4em;
  margin-top: 0.35rem;
  color: var(--metal-3);
  font-size: 0.79rem;
}

/* --------------------------------------------------------------------------
   Notes
   -------------------------------------------------------------------------- */

.note {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.5rem 1.6rem;
  max-width: 74ch;
  margin: clamp(1.6rem, 3vw, 2.6rem) 0;
  padding: 1.15rem 0 1.15rem 0;
  box-shadow: inset 0 1px 0 var(--edge-strong), inset 0 -1px 0 var(--edge);
}

.note-kind {
  color: var(--metal-3);
  font-size: 0.76rem;
  font-weight: 700;
}

.note-warning .note-kind,
.note-limit .note-kind {
  color: var(--warn);
}

.note-evidence .note-kind {
  color: var(--copper);
}

.note-body {
  color: var(--metal-2);
  font-size: 0.92rem;
  line-height: 1.62;
}

.note-body > * + * {
  margin-top: 0.7rem;
}

.note-title {
  color: var(--metal);
  font-weight: 650;
}

.band-light .note {
  box-shadow: inset 0 1px 0 rgba(20, 23, 15, 0.28), inset 0 -1px 0 var(--paper-edge);
}

.band-light .note-kind {
  color: var(--paper-ink-3);
}

.band-light .note-body {
  color: var(--paper-ink-2);
}

.band-light .note-title {
  color: var(--paper-ink);
}

@media (max-width: 640px) {
  .note {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Equations, figures, facts, steps
   -------------------------------------------------------------------------- */

.equation {
  max-width: 68ch;
  margin: clamp(1.6rem, 3vw, 2.4rem) 0;
  padding: 1.3rem 1.4rem;
  background: rgba(214, 213, 202, 0.032);
  box-shadow: inset 0 0 0 1px var(--edge);
}

.equation-expression {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  letter-spacing: 0.01em;
  color: var(--metal);
  overflow-wrap: anywhere;
}

.equation-where {
  display: grid;
  gap: 0.4rem 1.2rem;
  margin-top: 1.1rem;
}

.equation-where > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
}

.equation-where dt {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--copper);
}

.equation-where dd {
  margin: 0;
  color: var(--metal-3);
  font-size: 0.85rem;
  line-height: 1.5;
}

.equation figcaption {
  margin-top: 1rem;
  color: var(--metal-3);
  font-size: 0.82rem;
  line-height: 1.55;
}

.band-light .equation {
  background: rgba(20, 23, 15, 0.045);
  box-shadow: inset 0 0 0 1px var(--paper-edge);
}

.band-light .equation-expression {
  color: var(--paper-ink);
}

.band-light .equation-where dt {
  color: var(--copper-deep);
}

.band-light .equation-where dd,
.band-light .equation figcaption {
  color: var(--paper-ink-3);
}

.plate {
  margin: clamp(1.8rem, 3.5vw, 3rem) 0;
}

.plate > svg,
.plate > img {
  width: 100%;
  height: auto;
}

.plate figcaption {
  max-width: 62ch;
  margin-top: 0.9rem;
  color: var(--metal-3);
  font-size: 0.83rem;
  line-height: 1.55;
}

.band-light .plate figcaption {
  color: var(--paper-ink-3);
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.6rem clamp(1.5rem, 3vw, 3rem);
  margin: clamp(1.8rem, 3vw, 2.6rem) 0;
}

.fact-row > div {
  min-width: 0;
}

.fact-row dt {
  margin-bottom: 0.45rem;
  color: var(--metal-3);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
}

.fact-row dd {
  margin: 0;
  color: var(--metal);
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  line-height: 1;
  letter-spacing: 0.005em;
}

.fact-row dd .value {
  font-family: var(--display);
}

.fact-row dd .value-unit {
  font-size: 0.5em;
  color: var(--metal-3);
}

/* A fact whose value is a phrase, not a measurement. */
.fact-row .fact-phrase dd {
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  max-width: 22ch;
}

.band-light .fact-row dt {
  color: var(--paper-ink-3);
}

.band-light .fact-row dd {
  color: var(--paper-ink);
}

.steps {
  display: grid;
  gap: 0;
  margin: clamp(1.8rem, 3vw, 2.6rem) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.35rem 1.4rem;
  padding: 1.3rem 0;
  box-shadow: inset 0 -1px 0 var(--edge);
}

.steps > li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

.steps.is-unordered > li::before {
  content: "";
}

.step-title {
  color: var(--metal);
  font-size: 1rem;
  font-weight: 650;
}

.step-body {
  max-width: 62ch;
  color: var(--metal-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.band-light .steps > li {
  box-shadow: inset 0 -1px 0 var(--paper-edge);
}

.band-light .steps > li::before {
  color: var(--copper-deep);
}

.band-light .step-title {
  color: var(--paper-ink);
}

.band-light .step-body {
  color: var(--paper-ink-2);
}

@media (max-width: 560px) {
  .steps > li {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps > li::before {
    grid-row: auto;
  }
}

/* --------------------------------------------------------------------------
   Grids
   -------------------------------------------------------------------------- */

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: clamp(1.6rem, 3vw, 3rem);
  align-items: start;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
}

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */

.prose {
  max-width: var(--measure-width);
  color: var(--metal-2);
  font-size: 1.02rem;
  line-height: 1.72;
}

.prose > * + * {
  margin-top: 1.15rem;
}

.prose h2 {
  margin-top: clamp(2.6rem, 4.5vw, 4rem);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

.prose h3 {
  margin-top: clamp(2rem, 3.5vw, 3rem);
  font-family: var(--body);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--metal);
}

.prose strong {
  color: var(--metal);
  font-weight: 650;
}

.prose a {
  color: var(--metal);
  box-shadow: inset 0 -1px 0 var(--copper-deep);
}

.prose a:hover {
  box-shadow: inset 0 -1px 0 var(--copper);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul > li {
  padding-left: 1.4rem;
  position: relative;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: var(--copper-quiet);
}

.prose .table-scroll,
.prose .equation,
.prose .note,
.prose .plate {
  max-width: none;
}

.band-light .prose {
  color: var(--paper-ink-2);
}

.band-light .prose h3,
.band-light .prose strong,
.band-light .prose a {
  color: var(--paper-ink);
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */

.breadcrumb {
  padding: 1.2rem var(--gutter) 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  color: var(--metal-3);
  font-size: 0.76rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.75rem;
  color: var(--metal-3);
}

.breadcrumb a {
  color: var(--metal-3);
}

.breadcrumb a:hover {
  color: var(--metal);
}

.breadcrumb [aria-current] {
  color: var(--metal-2);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.intake {
  display: grid;
  gap: 1.5rem clamp(1.2rem, 2.4vw, 2.4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin-top: clamp(2rem, 4vw, 3rem);
}

.field {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0;
  color: var(--metal);
  font-size: 0.85rem;
  font-weight: 650;
}

.req {
  color: var(--copper);
  font-size: 0.7rem;
  font-weight: 600;
}

.field-help {
  color: var(--metal-3);
  font-size: 0.79rem;
  line-height: 1.5;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.85rem;
  border: 0;
  border-radius: 0;
  background: rgba(214, 213, 202, 0.05);
  color: var(--metal);
  font-size: 0.92rem;
  box-shadow: inset 0 0 0 1px var(--edge-strong);
  transition: box-shadow 0.16s ease, background 0.16s ease;
}

.field textarea {
  min-height: 8rem;
  line-height: 1.6;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--metal-4);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  background: rgba(214, 213, 202, 0.075);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  background: rgba(214, 213, 202, 0.085);
  box-shadow: inset 0 0 0 1px var(--copper);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  box-shadow: inset 0 0 0 1px var(--warn);
}

.field-error {
  color: var(--warn);
  font-size: 0.81rem;
  line-height: 1.5;
}

.field-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.6rem 1.4rem;
  margin-top: 0.7rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--metal-2);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--copper);
  cursor: pointer;
}

.field-file input[type="file"] {
  padding: 0.75rem;
  background: rgba(214, 213, 202, 0.04);
  font-size: 0.85rem;
  cursor: pointer;
}

.field-file input[type="file"]::file-selector-button {
  margin-right: 1rem;
  padding: 0.5rem 0.9rem;
  border: 0;
  background: var(--metal);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.intake-submit {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.8rem;
  padding-top: 0.8rem;
}

.intake-note {
  max-width: 46ch;
  color: var(--metal-3);
  font-size: 0.8rem;
  line-height: 1.55;
}

.intake-status {
  grid-column: 1 / -1;
  color: var(--metal-2);
  font-size: 0.88rem;
}

.intake-status:empty {
  display: none;
}

.band-light .field label,
.band-light .field legend {
  color: var(--paper-ink);
}

.band-light .field-help,
.band-light .intake-note {
  color: var(--paper-ink-3);
}

.band-light .field input,
.band-light .field select,
.band-light .field textarea {
  background: rgba(255, 255, 255, 0.4);
  color: var(--paper-ink);
  box-shadow: inset 0 0 0 1px var(--paper-edge);
}

.band-light .check {
  color: var(--paper-ink-2);
}

/* --------------------------------------------------------------------------
   Footer: the title block
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  margin-top: clamp(4rem, 8vw, 8rem);
  padding: clamp(3rem, 5vw, 5rem) var(--gutter) 0;
  background: var(--ink);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: var(--grain);
  pointer-events: none;
}

.title-block {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1.8rem, 3vw, 2.8rem) clamp(1.5rem, 2.5vw, 2.5rem);
  max-width: 1560px;
  margin: 0 auto;
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.title-block-identity {
  grid-column: span 2;
}

.title-block-name {
  color: var(--metal);
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.title-block-line {
  max-width: 26ch;
  margin-top: 0.7rem;
  color: var(--metal-3);
  font-size: 0.86rem;
  line-height: 1.55;
}

.title-block-action {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
  color: var(--metal);
  font-size: 0.84rem;
  font-weight: 650;
  box-shadow: inset 0 -1px 0 var(--edge-strong);
}

.title-block-action:hover {
  box-shadow: inset 0 -1px 0 var(--copper);
}

.title-block-action:hover .mark-action {
  transform: translate(2px, -2px);
}

.title-block-stamp {
  grid-column: span 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-content: start;
  padding-bottom: 1.4rem;
  box-shadow: inset 0 -1px 0 var(--edge);
}

.title-block-stamp dt {
  color: var(--metal-3);
  font-size: 0.7rem;
  font-weight: 650;
}

.title-block-stamp dd {
  margin: 0.35rem 0 0;
  color: var(--metal-2);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.title-block-group {
  grid-column: span 1;
}

.title-block-group h2 {
  margin-bottom: 0.9rem;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--metal-2);
}

.title-block-group ul {
  padding: 0;
  list-style: none;
}

.title-block-group li + li {
  margin-top: 0.5rem;
}

.title-block-group a {
  color: var(--metal-3);
  font-size: 0.83rem;
  line-height: 1.5;
}

.title-block-group a:hover {
  color: var(--metal);
}

.title-block-legal {
  grid-column: 1 / -1;
  max-width: 74ch;
  padding-top: 1.4rem;
  color: var(--metal-3);
  font-size: 0.78rem;
  line-height: 1.6;
  box-shadow: inset 0 1px 0 var(--edge);
}

/* The sheet mark. Set in the display face, tracked open, anchored flush to the
 * bottom edge with no gap under it, above the grain, and clipped only where it
 * is meant to bleed. Its own box is padded so no cap or descender is shaved. */
.sheet-mark {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 1560px;
  padding-top: 0.12em;
  color: #191d17;
  font-family: var(--display);
  font-size: clamp(3.6rem, 15.2vw, 15rem);
  line-height: 0.78;
  letter-spacing: 0.02em;
  text-align: center;
  user-select: none;
}

@media (max-width: 1080px) {
  .title-block {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .title-block-identity,
  .title-block-stamp {
    grid-column: span 4;
  }
}

@media (max-width: 640px) {
  .title-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .title-block-identity,
  .title-block-stamp {
    grid-column: span 2;
  }

  .title-block-stamp {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .nav-drawer,
  .sheet-mark,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .band,
  .site-footer {
    padding: 1rem 0;
    background: none;
  }

  .band::before,
  .site-footer::before {
    display: none;
  }

  h1,
  h2,
  h3,
  .value-number,
  .step-title,
  .note-title {
    color: #000;
  }

  .table-scroll {
    overflow: visible;
  }
}

/* A page that opens with a full-bleed scene lets the navigation float over it;
 * the hero carries its own top padding so nothing is ever under the bar. */
.has-flush-hero .site-header {
  position: fixed;
  inset: 0 0 auto;
}

.has-flush-hero main {
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   CAD workbench
   --------------------------------------------------------------------------
   The host always contains a dimensioned static elevation. These rules style
   the interactive view that replaces it once the geometry has loaded, and the
   elevation it can be switched back to. */

.cad-host {
  position: relative;
  /* Bench light from the upper left, the same direction as the key light in
   * the model, rather than a symmetric halo sitting behind the part. */
  background: linear-gradient(147deg, #2e3931 0%, #253029 34%, #1a2019 66%, #12160f 100%);
  box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 var(--edge-light);
  clip-path: polygon(
    0 0,
    calc(100% - var(--chamfer)) 0,
    100% var(--chamfer),
    100% 100%,
    var(--chamfer) 100%,
    0 calc(100% - var(--chamfer))
  );
}

.cad-static {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.cad-static svg {
  width: 100%;
  height: auto;
}

.cad-viewport {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto;
  min-height: clamp(19rem, 32vw, 27rem);
}

.cad-canvas {
  grid-row: 1 / span 3;
  grid-column: 1;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  outline: 0;
}

.cad-canvas:active {
  cursor: grabbing;
}

.cad-canvas:focus-visible {
  box-shadow: inset 0 0 0 3px var(--copper);
}

.cad-readout {
  grid-row: 1;
  grid-column: 1;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.6rem;
  margin: 0;
  padding: 1.1rem 1.2rem;
  pointer-events: none;
}

.cad-readout dt {
  color: var(--metal-3);
  font-size: 0.68rem;
  font-weight: 650;
}

.cad-readout dt::after {
  content: " ";
}

.cad-readout dd {
  margin: 0 1rem 0 0.5rem;
  color: var(--metal-2);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.cad-controls {
  grid-row: 3;
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(180deg, rgba(11, 13, 10, 0) 0%, rgba(11, 13, 10, 0.72) 55%, rgba(11, 13, 10, 0.86) 100%);
}

.cad-hint {
  flex: 1 1 14rem;
  min-width: 0;
  color: var(--metal-3);
  font-size: 0.75rem;
  line-height: 1.5;
}

.cad-button {
  min-height: 40px;
  padding: 0 0.9rem;
  border: 0;
  background: rgba(214, 213, 202, 0.09);
  color: var(--metal-2);
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--edge-strong);
  transition: background 0.16s ease, color 0.16s ease;
}

.cad-button:hover {
  background: rgba(214, 213, 202, 0.16);
  color: var(--metal);
}

.cad-button[aria-pressed="true"] {
  background: var(--metal);
  color: var(--ink);
  box-shadow: none;
}
