.mech-page {
  --mech-cabinet: #eee2cf;
  --mech-rule: #b6a086;
  --mech-accent: #8c4938;
}

.mech-page-geneva {
  --mech-cabinet: #e2e2d1;
  --mech-rule: #969d87;
  --mech-accent: #385c4f;
}

.mech-page h1 { font-size: clamp(40px, 6.8vw, 93px); }
.mech-page .proof-intro { max-width: 63ch; }

.mech-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(270px, 1fr);
  align-items: start;
  gap: clamp(16px, 3vw, 37px);
  margin-top: clamp(16px, 3vw, 34px);
}

.mech-exhibit {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--mech-rule);
  padding: clamp(9px, 1.5vw, 19px);
  background: radial-gradient(ellipse at 45% 19%, #fff9ed 0%, var(--mech-cabinet) 74%);
}

.mech-plaque {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 5px 8px;
  border-bottom: 1px solid var(--mech-rule);
  color: #544638;
}

.mech-plaque span:first-child {
  font: italic 400 clamp(16px, 2vw, 23px)/1.1 var(--font-serif);
}

.mech-plaque span:last-child {
  font-size: 10px;
  letter-spacing: .12em;
  text-align: end;
  text-transform: uppercase;
}

.mech-assembly {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(1px 7px 7px #26180846);
}

.mech-svg-label {
  font: 700 12px/1 var(--font-sans);
  letter-spacing: 1.6px;
}

.mech-slice-edge { fill: none; stroke: #e8c399; stroke-opacity: .55; }
#cam-assembly[data-aligned="true"] .mech-slice-edge { stroke-opacity: 0; }
#cam-assembly[data-aligned="false"] .mech-register { opacity: .5; }
#geneva-assembly[data-engaged="true"] .mech-drive-pin { fill: #fff4bf; stroke: #fff4bf; }

.mech-exhibit figcaption {
  padding: 8px 5px 0;
  border-top: 1px solid var(--mech-rule);
  color: #554739;
  font-size: 12px;
}

.mech-console {
  padding: clamp(12px, 2vw, 23px) 0 0;
  border-top: 3px double var(--mech-rule);
}

.mech-console h2 {
  margin: 4px 0 8px;
  font: 300 clamp(28px, 3.4vw, 46px)/1.06 var(--font-serif);
  letter-spacing: -.045em;
}

.mech-console > p:not(.eyebrow) { max-width: 52ch; }
.mech-controls { margin-top: 15px; }

.mech-dial-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
}

.mech-dial-label span,
.mech-readings dd {
  color: var(--mech-accent);
  font-variant-numeric: tabular-nums;
}

.mech-controls input[type="range"] {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  cursor: ew-resize;
  accent-color: var(--mech-accent);
}

.mech-controls input[type="range"]:focus-visible {
  outline: 3px solid var(--mech-accent);
  outline-offset: 2px;
}

.mech-scale {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  margin: -3px 0 0;
  color: #625243;
  font-size: 10px;
}

.mech-buttons { margin: 12px 0 15px; }
.mech-buttons button:hover { border-color: var(--mech-accent); background: var(--mech-cabinet); }
.mech-buttons button:first-child {
  border-color: var(--mech-accent);
  background: var(--mech-accent);
  color: #fff9ef;
}
.mech-buttons button:first-child:hover { filter: brightness(1.12); }

.mech-readings,
.mech-stations {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.mech-readings div,
.mech-stations li {
  min-width: 0;
  padding: 5px 2px;
  border-block: 1px solid var(--mech-rule);
  text-align: center;
}

.mech-readings dt,
.mech-stations li span:last-child {
  display: block;
  color: #5d5146;
  font-size: 11px;
}

.mech-readings dd,
.mech-stations li span:first-child {
  display: block;
  margin: 0;
  font: 400 20px/1.15 var(--font-serif);
}

.mech-stations [aria-current="step"] {
  border-color: var(--mech-accent);
  background: var(--mech-accent);
  color: #fff9ef;
}
.mech-stations [aria-current="step"] span:last-child { color: inherit; }

.mech-status {
  min-height: 3.2em;
  margin-top: 8px;
  color: var(--mech-accent);
}

.mech-phase {
  margin-top: 8px;
  color: var(--mech-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mech-phase + .mech-status { margin-top: 2px; }

.mech-material {
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--mech-rule);
  font-size: 13px;
}

.mech-material p:not(.eyebrow) { margin-top: 3px; }
.mech-material a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 760px) {
  .mech-layout { grid-template-columns: 1fr; }
  .mech-exhibit figcaption { padding-top: 5px; }
}

@media (max-width: 420px) {
  .mech-plaque { margin-bottom: 4px; }
  .mech-exhibit figcaption { font-size: 11px; }
}
