:root {
  --bg: #e3e3e3;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

.stage {
  position: fixed;
  inset: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.stage.is-dragging { cursor: grabbing; }

.stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 500ms ease;
}
.stage.is-ready canvas { opacity: 1; }

/* ---- The bottom bar (Figma 425:25318) --------------------------------------
   Measured on a 1728px frame: a 1px rule 30px in from each side, then cells
   split by 38px-tall dividers that start 10px under the rule. The column
   fractions are the cell widths in px on that frame, so it scales with it. */

@font-face {
  font-family: 'Cygnito Mono';
  font-display: swap;
  src: url('assets/cygnito-mono.woff2') format('woff2');
}

.bar {
  --ink: #000;
  --chip-on: #13ff00;
  --chip-off: #010103;
  --chip-off-ink: #dfdfdf;

  position: fixed;
  left: 30px;
  right: 30px;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns:
    minmax(max-content, 132fr) minmax(max-content, 354.5fr) minmax(max-content, 589fr)
    minmax(0, 297.5fr) minmax(max-content, 295fr);
  align-items: start;
  padding: 10px 0 30px;
  border-top: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: 'Cygnito Mono', ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.5;
}

.bar-cell {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  min-height: 38px;
  padding: 0 32px;
}
.bar-cell + .bar-cell { border-left: 1px solid var(--ink); }

.bar-logo { padding: 1px 32px 0 13px; }
.bar-logo img { width: 92px; height: 33px; }

.bar-filter, .bar-nav > .chips { padding-top: 6px; }

.bar, .bar * { box-sizing: border-box; }
.bar ul { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.bar a:not(.chip) { color: inherit; }
.bar a { text-decoration: none; }
.bar button { margin: 0; border: 0; border-radius: 0; font: inherit; cursor: pointer; }
.bar img { display: block; }

/* Cap-height trimmed labels: a 10px text box inside 3px of padding. */
.bar-label,
.chip {
  text-transform: uppercase;
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
}
.bar-label { padding-top: 3px; }

.chip {
  display: block;
  padding: 3px;
  background: var(--chip-off);
  color: var(--chip-off-ink);
}
.chip.is-active {
  background: var(--chip-on);
  color: var(--ink);
}
.chip:hover:not(.is-active) { background: #333; }

.bar-contact {
  justify-content: space-between;
  padding-right: 0;
  font-size: 12px;
  line-height: 1.037;
}
.bar-contact address { font-style: normal; }
.bar-contact address a:hover { text-decoration: underline; }

.social { gap: 10px !important; padding-top: 2px; }
.social a { display: block; width: 16px; height: 16px; }
.social a:hover { opacity: 0.6; }
.social img { width: 100%; height: 100%; }

/* Narrower than the design: cells keep their content width (the empty one
   gives way first), and below 1420px the filter row no longer fits at all. */
@media (max-width: 1420px) {
  .bar { grid-template-columns: auto auto 1fr; }
  .bar-filter, .bar-spacer { display: none; }
}
