:root {
  --page: #f7f8f6;
  --surface: #ffffff;
  --vellum: #f4eee2;
  --ink: #172f54;
  --text: #252a31;
  --muted: #66707b;
  --rule: #cfd4d7;
  --rule-dark: #9ca6ad;
  --signal: #e23b2f;
  --soft: #edf0ee;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Jost", Arial, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
  --content: 1500px;
  --gutter: 40px;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  min-width: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-height);
  padding: 0 max(var(--gutter), calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--rule);
  background: rgba(247, 248, 246, 0.96);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 100%;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--signal);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.showcase {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
  gap: 18px 52px;
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 16px var(--gutter) 0;
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#archive-title {
  max-width: 38ch;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 44px;
  margin-top: 16px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-transform: uppercase;
}

.machine-copy {
  margin-top: 24px;
}

.machine-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
}

.machine-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.machine-status i {
  width: 7px;
  height: 7px;
  background: var(--signal);
  border-radius: 50%;
  flex: 0 0 auto;
}

.machine-plate-name {
  min-width: 0;
  padding: 11px 18px 12px;
  border-bottom: 1px solid rgba(38, 64, 102, 0.2);
  border-left: 3px solid var(--signal);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

#machine-story-title {
  margin-top: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

#machine-story {
  max-width: 48ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.machine-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  margin-top: 18px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  list-style: none;
}

.machine-specs li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.machine-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  border-bottom: 1px solid var(--rule);
}

.view-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 44px;
}

.view-tabs button {
  position: relative;
  min-height: 44px;
  padding: 0 0 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}

.view-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--signal);
  content: "";
  opacity: 0;
}

.view-tabs button[aria-pressed="true"] {
  color: var(--text);
}

.view-tabs button[aria-pressed="true"]::after {
  opacity: 1;
}

.view-tabs button:disabled {
  color: #aeb5ba;
  cursor: not-allowed;
}

.view-caption {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  min-height: 48px;
  padding-top: 9px;
}

.view-subtitle {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
}

.view-description {
  max-width: 60ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.machine-media {
  width: 100%;
  max-width: 900px;
  min-width: 0;
  justify-self: end;
}

.machine-stage {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background: var(--vellum);
}

.machine-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--vellum);
}

.machine-stage img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  transition: opacity 160ms ease, top 220ms ease, left 220ms ease, width 220ms ease, height 220ms ease;
}

.machine-image-frame[data-detail="front"] img {
  top: -10%;
  width: 240%;
  height: 240%;
}

.machine-image-frame[data-detail="side"] img {
  left: -60%;
  width: 160%;
  height: 160%;
}

.machine-image-frame[data-detail="rear"] img {
  top: -140%;
  width: 240%;
  height: 240%;
}

.machine-image-frame[data-detail="plan"] img {
  top: -60%;
  left: -60%;
  width: 160%;
  height: 160%;
}

.machine-stage img.is-loading {
  opacity: 0.28;
}

.stage-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.detail-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  overflow-x: auto;
  border-bottom: 1px solid var(--rule);
  scrollbar-width: none;
}

.detail-tabs::-webkit-scrollbar {
  display: none;
}

.detail-tabs button {
  position: relative;
  min-height: 40px;
  padding: 0 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.detail-tabs button::after {
  position: absolute;
  right: 6px;
  bottom: -1px;
  left: 6px;
  height: 2px;
  background: var(--signal);
  content: "";
  opacity: 0;
}

.detail-tabs button[aria-pressed="true"] {
  color: var(--ink);
}

.detail-tabs button[aria-pressed="true"]::after {
  opacity: 1;
}

.detail-tabs button:disabled {
  color: #aeb5ba;
  cursor: not-allowed;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--soft);
}

.icon-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.6;
}

.filmstrip {
  grid-column: 1 / -1;
  min-width: 0;
  margin-inline: calc(var(--gutter) * -1);
  padding: 7px var(--gutter) 9px;
  border-top: 1px solid var(--rule);
  background: #fafbfa;
}

.filmstrip-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.filmstrip-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rail-scroll-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.rail-scroll-button:hover:not(:disabled) {
  background: var(--soft);
}

.rail-scroll-button:disabled {
  color: #aeb5ba;
  cursor: not-allowed;
}

.rail-scroll-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.6;
}

.machine-rail {
  display: grid;
  grid-auto-columns: 156px;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 0 5px;
  scrollbar-color: var(--rule-dark) transparent;
  scrollbar-width: thin;
  scroll-snap-type: inline proximity;
}

.rail-item,
.collection-item {
  min-width: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.rail-item {
  position: relative;
  padding-bottom: 7px;
  border-bottom: 3px solid transparent;
  scroll-snap-align: start;
}

.rail-item[aria-current="true"] {
  border-color: var(--signal);
}

.rail-image,
.collection-image {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e1ddd5;
  background: var(--vellum);
}

.rail-image img,
.collection-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.rail-item:hover img,
.collection-item:hover img {
  transform: scale(1.012);
}

.rail-label {
  display: flex;
  gap: 7px;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.35;
}

.rail-label b {
  color: var(--ink);
  font-weight: 700;
}

.collection {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 32px var(--gutter) 72px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.section-heading h2,
.shop h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
}

.section-heading p {
  max-width: 54ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.collection-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.collection-grid,
.noscript-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px 16px;
}

.collection-item {
  padding-bottom: 8px;
  border-bottom: 3px solid transparent;
}

.collection-item[aria-current="true"] {
  border-color: var(--signal);
}

.collection-label,
.noscript-grid figcaption {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  margin-top: 7px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
}

.collection-label b {
  color: var(--ink);
}

.noscript-grid figure {
  min-width: 0;
}

.noscript-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid #e1ddd5;
  background: var(--vellum);
  object-fit: contain;
}

.shop {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 64px;
  width: min(calc(100% - (var(--gutter) * 2)), calc(var(--content) - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 54px 0 64px;
  border-top: 3px solid var(--signal);
}

.shop-copy {
  padding-right: 48px;
  border-right: 1px solid var(--rule-dark);
}

.shop h2 {
  max-width: 14ch;
}

.shop-copy p {
  max-width: 48ch;
  margin-top: 18px;
  color: var(--muted);
}

.contact h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
}

#lm-form {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 1.28fr);
  gap: 8px 14px;
  margin-top: 20px;
}

#lm-form label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

#lm-form label[for="lm-message"] {
  grid-column: 2;
  grid-row: 1;
}

#lm-form input[type="email"],
#lm-form textarea {
  width: 100%;
  border: 1px solid var(--rule-dark);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  outline: 0;
}

#lm-form input[type="email"] {
  grid-column: 1;
  grid-row: 2;
  height: 48px;
  padding: 0 14px;
}

#lm-form textarea {
  grid-column: 2;
  grid-row: 2 / span 2;
  min-height: 104px;
  padding: 12px 14px;
  resize: vertical;
}

#lm-form input:focus,
#lm-form textarea:focus {
  border-color: var(--signal);
  box-shadow: inset 0 0 0 1px var(--signal);
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.submit-button {
  grid-column: 1;
  grid-row: 3;
  min-height: 48px;
  border: 1px solid var(--signal);
  background: transparent;
  color: var(--signal);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.submit-button:hover {
  background: var(--signal);
  color: var(--surface);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.5em;
  color: var(--muted);
  font-size: 13px;
}

.practice-link {
  max-width: 74ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.practice-link a {
  color: var(--signal);
  font-weight: 500;
  text-underline-offset: 4px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 24px;
  width: min(calc(100% - (var(--gutter) * 2)), calc(var(--content) - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
}

@media (max-width: 1180px) {
  :root {
    --gutter: 28px;
  }

  .showcase-grid {
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
    gap: 18px 34px;
  }

  .machine-plate-name {
    font-size: 24px;
  }

  .machine-copy {
    margin-top: 18px;
  }

  .collection-grid,
  .noscript-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shop {
    gap: 44px;
  }
}

@media (min-width: 961px) and (max-height: 820px) {
  .showcase-grid {
    gap: 12px 34px;
    padding-top: 12px;
  }

  #archive-title {
    font-size: 15px;
    line-height: 1.35;
  }

  .text-link {
    min-height: 36px;
    margin-top: 4px;
  }

  .machine-copy {
    margin-top: 10px;
  }

  .machine-kicker {
    margin-bottom: 0;
  }

  .machine-plate-name {
    padding: 8px 14px 9px;
    font-size: 22px;
  }

  #machine-story-title {
    margin-top: 16px;
    padding-bottom: 8px;
    font-size: 16px;
  }

  #machine-story {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
  }

  .machine-specs {
    gap: 4px 16px;
    margin-top: 10px;
  }

  .machine-view-toolbar,
  .view-tabs {
    min-height: 40px;
  }

  .view-tabs button {
    min-height: 40px;
  }

  .machine-media {
    max-width: min(900px, calc((100vh - 320px) * 1.6));
  }

  .view-caption {
    min-height: 42px;
    padding-top: 6px;
  }

  .filmstrip {
    padding-top: 4px;
  }

  .machine-rail {
    grid-auto-columns: 136px;
  }
}

@media (max-width: 960px) {
  :root {
    --gutter: 24px;
  }

  .showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px var(--gutter) 0;
  }

  .showcase-copy,
  .machine-copy {
    display: contents;
  }

  #archive-title {
    order: 6;
    margin-top: 12px;
  }

  .text-link {
    order: 7;
    margin-top: 0;
  }

  .machine-kicker {
    order: 1;
    margin: 0;
  }

  .machine-media {
    order: 2;
    max-width: 820px;
    justify-self: center;
  }

  #machine-story-title {
    order: 3;
    margin-top: 4px;
  }

  #machine-story {
    order: 4;
    max-width: 64ch;
    margin-top: 0;
  }

  .machine-specs {
    order: 5;
    margin-top: 4px;
  }

  .filmstrip {
    order: 8;
  }

  .machine-rail {
    grid-auto-columns: minmax(150px, 24vw);
  }

  .collection {
    padding: 76px var(--gutter) 64px;
  }

  .collection-grid,
  .noscript-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    width: calc(100% - (var(--gutter) * 2));
  }

  .shop-copy {
    padding: 0 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--rule-dark);
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    width: calc(100% - (var(--gutter) * 2));
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 58px;
  }

  .site-header {
    padding-inline: var(--gutter);
  }

  .wordmark {
    font-size: 15px;
  }

  .site-nav {
    gap: 18px;
    font-size: 12px;
  }

  .site-nav .zorro-link {
    min-width: 44px;
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  .site-header {
    gap: 14px;
  }

  .wordmark {
    font-size: 14px;
  }

  .site-nav {
    gap: 12px;
    font-size: 11px;
  }

  .site-nav .choose-word {
    display: none;
  }

  #archive-title {
    max-width: 31ch;
    font-size: 15px;
  }

  .machine-plate-name {
    padding: 9px 12px 10px;
    font-size: 22px;
  }

  .machine-view-toolbar {
    gap: 4px;
  }

  .view-tabs {
    gap: 18px;
  }

  .stage-controls {
    gap: 0;
  }

  .view-caption {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    padding: 8px 0 3px;
  }

  .view-description {
    font-size: 12px;
  }

  #machine-story-title {
    font-size: 17px;
  }

  .machine-specs {
    grid-template-columns: minmax(0, 1fr);
  }

  .machine-rail {
    grid-auto-columns: minmax(154px, 58vw);
  }

  .section-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .section-heading h2,
  .shop h2 {
    font-size: 39px;
  }

  .collection-count {
    padding-top: 8px;
  }

  .collection-grid,
  .noscript-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 10px;
  }

  #lm-form {
    grid-template-columns: minmax(0, 1fr);
  }

  #lm-form label[for="lm-message"],
  #lm-form input[type="email"],
  #lm-form textarea,
  .submit-button {
    grid-column: 1;
    grid-row: auto;
  }

  #lm-form textarea {
    min-height: 118px;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 380px) {
  :root {
    --gutter: 12px;
  }

  .site-header {
    gap: 8px;
  }

  .wordmark {
    font-size: 13px;
  }

  .site-nav {
    gap: 8px;
    font-size: 10px;
  }

  .machine-plate-name {
    font-size: 20px;
  }

  .view-tabs {
    gap: 12px;
  }

  .machine-rail {
    grid-auto-columns: minmax(148px, 64vw);
  }

  .collection-grid,
  .noscript-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Workbench document system */
:root {
  --page: #5a3923;
  --surface: #faf6ec;
  --vellum: #f3ead9;
  --index-card: #f4edc9;
  --ink: #264066;
  --text: #2d2b27;
  --muted: #625f57;
  --rule: #b7b09f;
  --rule-dark: #807b70;
  --signal: #c73a32;
  --soft: #e8dfcf;
  --hand: "Caveat", "Bradley Hand", cursive;
  --mono: "Courier New", Courier, monospace;
  --paper-shadow: 0 14px 30px rgba(28, 17, 10, 0.28), 0 3px 8px rgba(28, 17, 10, 0.2);
  --card-shadow: 0 7px 15px rgba(28, 17, 10, 0.22), 0 1px 3px rgba(28, 17, 10, 0.25);
}

[hidden] {
  display: none !important;
}

.color-filter-definitions {
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.machine-image-frame > .plate-image,
.xray-vellum .plate-image,
.rail-image img,
.collection-image img,
.noscript-grid img {
  filter: url("#plotter-palette");
}

body {
  background-color: #8a603f;
  background-image: url("images/textures/workbench-worn.jpg");
  background-attachment: fixed;
  background-position: center top;
  background-size: 720px 720px;
  color: var(--text);
}

.site-header {
  border-bottom: 1px solid rgba(64, 43, 29, 0.45);
  background: rgba(246, 239, 220, 0.96);
  box-shadow: 0 3px 12px rgba(28, 17, 10, 0.18);
  backdrop-filter: blur(8px);
}

.site-header::before {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: rgba(38, 64, 102, 0.14);
  content: "";
}

.wordmark,
.site-nav {
  font-family: var(--mono);
}

.showcase {
  border-bottom: 0;
  background: transparent;
}

.showcase-grid {
  gap: 20px 52px;
  padding-top: 22px;
}

#archive-title {
  position: relative;
  padding: 18px 20px 20px;
  border: 1px solid rgba(98, 88, 62, 0.42);
  background: var(--index-card);
  box-shadow: var(--card-shadow);
  color: #4d4a43;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  transform: rotate(-0.35deg);
}

#archive-title::before,
.machine-story-card::before,
.service-index-card::before {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 72px;
  height: 16px;
  background: rgba(216, 198, 156, 0.8);
  box-shadow: 0 1px 2px rgba(54, 39, 25, 0.15);
  content: "";
  transform: translateX(-50%) rotate(-1deg);
}

.text-link {
  min-height: 38px;
  margin-top: 13px;
  padding: 0 12px;
  border: 1px solid rgba(98, 88, 62, 0.42);
  background: rgba(244, 237, 201, 0.94);
  box-shadow: 0 3px 8px rgba(28, 17, 10, 0.18);
  color: var(--ink);
}

.machine-copy {
  margin-top: 18px;
}

.machine-kicker {
  padding: 8px 10px;
  border: 1px solid rgba(98, 88, 62, 0.38);
  background: rgba(244, 237, 201, 0.94);
  box-shadow: 0 3px 8px rgba(28, 17, 10, 0.16);
}

.machine-story-card,
.service-index-card {
  position: relative;
  border: 1px solid rgba(98, 88, 62, 0.42);
  border-radius: 2px;
  background-color: var(--index-card);
  background-image:
    linear-gradient(90deg, transparent 0 32px, rgba(199, 58, 50, 0.23) 32px 33px, transparent 33px),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(38, 64, 102, 0.13) 31px 32px);
  background-position: 0 0, 0 18px;
  box-shadow: var(--card-shadow);
}

.machine-story-card {
  margin-top: 17px;
  padding: 20px 18px 18px 44px;
  transform: rotate(0.2deg);
}

#machine-story-title {
  margin-top: 0;
  padding-bottom: 2px;
  border-bottom: 0;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.05;
}

#machine-story {
  margin-top: 11px;
  color: #4e4b45;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
}

.machine-specs {
  gap: 6px 16px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 10px;
}

.machine-specs li::before {
  color: var(--signal);
  content: "+ ";
}

.machine-media {
  max-width: 960px;
}

.machine-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(83, 75, 62, 0.5);
  background: var(--vellum);
  box-shadow: var(--paper-shadow);
  isolation: isolate;
  transform: rotate(-0.18deg);
}

.machine-stage::after {
  position: absolute;
  right: 16px;
  bottom: 10px;
  z-index: 6;
  color: rgba(38, 64, 102, 0.42);
  content: "LEX / SHOP COPY";
  font-family: var(--mono);
  font-size: 8px;
  pointer-events: none;
}

.machine-plate-name {
  position: relative;
  z-index: 7;
  padding: 10px 16px 11px;
  border-bottom: 1px solid rgba(38, 64, 102, 0.28);
  border-left: 4px solid var(--signal);
  background: rgba(248, 242, 228, 0.98);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
}

.machine-image-frame {
  background: var(--vellum);
}

.machine-image-frame .plate-image {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.machine-image-frame[data-detail-mode="asset"] .plate-image {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.machine-image-frame[data-detail-mode="crop"][data-layout="quad"][data-detail="front"] .plate-image {
  top: -15%;
  left: 0;
  width: 260%;
  height: 260%;
}

.machine-image-frame[data-detail-mode="crop"][data-layout="quad"][data-detail="side"] .plate-image {
  top: 0;
  left: -60%;
  width: 160%;
  height: 160%;
}

.machine-image-frame[data-detail-mode="crop"][data-layout="quad"][data-detail="rear"] .plate-image {
  top: -150%;
  left: 0;
  width: 260%;
  height: 260%;
}

.machine-image-frame[data-detail-mode="crop"][data-layout="quad"][data-detail="plan"] .plate-image {
  top: -60%;
  left: -60%;
  width: 160%;
  height: 160%;
}

.machine-image-frame[data-detail-mode="crop"][data-layout="three"][data-detail="front"] .plate-image {
  top: -12%;
  left: 0;
  width: 240%;
  height: 240%;
}

.machine-image-frame[data-detail-mode="crop"][data-layout="three"][data-detail="side"] .plate-image {
  top: 0;
  left: -48%;
  width: 150%;
  height: 150%;
}

.machine-image-frame[data-detail-mode="crop"][data-layout="three"][data-detail="plan"] .plate-image {
  top: -45%;
  left: -24%;
  width: 145%;
  height: 145%;
}

.machine-image-frame[data-detail-mode="crop"][data-detail="front"]::before,
.machine-image-frame[data-detail-mode="crop"][data-detail="rear"]::before,
.machine-image-frame[data-detail-mode="crop"][data-detail="side"]::before,
.machine-image-frame[data-detail-mode="crop"][data-layout="three"][data-detail="plan"]::before {
  position: absolute;
  z-index: 4;
  background: var(--vellum);
  content: "";
  pointer-events: none;
}

.machine-image-frame[data-detail-mode="crop"][data-detail="front"]::before,
.machine-image-frame[data-detail-mode="crop"][data-detail="rear"]::before {
  top: 0;
  right: 0;
  bottom: 0;
  width: 10%;
}

.machine-image-frame[data-detail-mode="crop"][data-detail="side"]::before {
  right: 0;
  bottom: 0;
  left: 0;
  height: 10%;
}

.machine-image-frame[data-detail-mode="crop"][data-layout="three"][data-detail="side"]::before {
  height: 14%;
}

.machine-image-frame[data-detail-mode="crop"][data-layout="three"][data-detail="plan"]::before {
  top: 0;
  right: 0;
  left: 0;
  height: 18%;
}

.xray-vellum {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-left: 1px solid rgba(38, 64, 102, 0.18);
  background: rgba(243, 234, 217, 0.22);
  box-shadow: -7px 0 16px rgba(43, 32, 22, 0.16);
  transform-origin: left center;
  animation: unroll-vellum 320ms ease-out both;
}

.xray-vellum .plate-image {
  z-index: 1;
  opacity: 0.72;
  filter: url("#plotter-palette");
  mix-blend-mode: normal;
}

.vellum-layer-label {
  position: absolute;
  top: 8px;
  right: 9px;
  z-index: 2;
  padding: 3px 6px;
  border: 1px solid rgba(38, 64, 102, 0.34);
  background: rgba(246, 239, 220, 0.82);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.machine-image-frame[data-detail="front"] .vellum-layer-label,
.machine-image-frame[data-detail="rear"] .vellum-layer-label {
  right: 12%;
}

@keyframes unroll-vellum {
  from {
    opacity: 0;
    transform: translateX(-2%) scaleX(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
}

.annotation-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.plot-annotation {
  position: absolute;
  max-width: 33%;
  padding: 3px 6px 4px;
  border-left: 2px solid var(--signal);
  background: rgba(249, 243, 227, 0.88);
  box-shadow: 0 2px 5px rgba(43, 32, 22, 0.12);
  color: var(--ink);
  transform: rotate(-1deg);
  animation: hand-note-in 220ms ease-out both;
}

.plot-annotation span {
  display: block;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1;
  text-transform: uppercase;
}

.plot-annotation strong {
  display: block;
  font-family: var(--hand);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.hand-arrow {
  position: absolute;
  width: 94px;
  height: 56px;
  overflow: visible;
  color: var(--signal);
  transform-origin: 4px 6px;
}

.hand-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.hand-arrow path:first-child {
  stroke-dasharray: 112;
  stroke-dashoffset: 112;
  animation: hand-arrow-draw 420ms 90ms ease-out forwards;
}

.hand-arrow path:last-child {
  opacity: 0;
  animation: hand-arrow-head 120ms 390ms ease-out forwards;
}

.annotation-engine {
  top: 5%;
  left: 32%;
}

.annotation-engine .hand-arrow {
  top: calc(100% - 4px);
  left: 12px;
  transform: rotate(3deg);
}

.annotation-wheelbase {
  bottom: 6%;
  left: 33%;
}

.annotation-wheelbase .hand-arrow {
  top: calc(100% - 2px);
  left: 8px;
  transform: rotate(-55deg);
}

.plot-annotation.is-hold strong,
.service-data dd.is-hold,
.service-index-card header b.is-hold {
  color: #8a4b38;
}

.annotation-note {
  right: 3%;
  bottom: 4%;
  max-width: 28%;
  transform: rotate(1.4deg);
}

.annotation-note .hand-arrow {
  top: calc(100% - 2px);
  left: 8px;
  transform: rotate(-125deg);
}

.machine-image-frame[data-detail="front"] .annotation-engine {
  top: 7%;
  left: 7%;
}

.machine-image-frame[data-detail="front"] .annotation-engine .hand-arrow {
  width: 150px;
  height: 210px;
  transform: rotate(5deg);
}

.machine-image-frame[data-detail="side"] .annotation-engine {
  top: 7%;
  left: 5%;
}

.machine-image-frame[data-detail="side"] .annotation-wheelbase {
  right: 5%;
  bottom: 5%;
  left: auto;
}

.machine-image-frame[data-detail="side"] .annotation-wheelbase .hand-arrow {
  transform: rotate(-125deg);
}

.machine-image-frame[data-detail="rear"] .annotation-note {
  right: 6%;
  bottom: 7%;
}

.machine-image-frame[data-detail="rear"] .annotation-note .hand-arrow {
  width: 210px;
  height: 300px;
  transform: rotate(-166deg);
}

.machine-image-frame[data-detail="plan"] .annotation-engine {
  top: 6%;
  left: 5%;
}

.machine-image-frame[data-detail="plan"] .annotation-wheelbase {
  bottom: 5%;
  left: 6%;
}

.machine-image-frame[data-detail="front"] .annotation-wheelbase,
.machine-image-frame[data-detail="front"] .annotation-note,
.machine-image-frame[data-detail="side"] .annotation-note,
.machine-image-frame[data-detail="rear"] .annotation-engine,
.machine-image-frame[data-detail="rear"] .annotation-wheelbase,
.machine-image-frame[data-detail="plan"] .annotation-note {
  display: none;
}

@keyframes hand-note-in {
  from {
    opacity: 0;
    transform: translateY(-3px) rotate(-1.8deg);
  }
  to {
    opacity: 1;
  }
}

@keyframes hand-arrow-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hand-arrow-head {
  to {
    opacity: 1;
  }
}

.machine-sheet-placeholder {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px;
  background:
    linear-gradient(rgba(38, 64, 102, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 64, 102, 0.07) 1px, transparent 1px),
    var(--vellum);
  background-size: 24px 24px;
  color: var(--ink);
  text-align: center;
}

.machine-sheet-placeholder span,
.machine-sheet-placeholder p {
  font-family: var(--mono);
}

.machine-sheet-placeholder span {
  color: var(--signal);
  font-size: 9px;
  text-transform: uppercase;
}

.machine-sheet-placeholder strong {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 29px;
}

.machine-sheet-placeholder p {
  max-width: 54ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.machine-stage[data-sheet="maintenance"] .machine-image-frame {
  aspect-ratio: 16 / 10;
  min-height: 390px;
}

.maintenance-sheet {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: auto;
  padding: 24px 28px 22px;
  background:
    linear-gradient(rgba(38, 64, 102, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 64, 102, 0.06) 1px, transparent 1px),
    var(--vellum);
  background-size: 20px 20px;
  color: var(--ink);
}

.maintenance-sheet header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.maintenance-sheet header span,
.maintenance-sheet header b,
.maintenance-sheet footer {
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.maintenance-sheet h4 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.1;
}

.maintenance-grid {
  display: grid;
  margin-top: 10px;
  border-top: 1px solid rgba(38, 64, 102, 0.35);
}

.maintenance-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.28fr) minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid rgba(38, 64, 102, 0.27);
  font-family: var(--mono);
  font-size: 10px;
}

.maintenance-row p {
  line-height: 1.35;
}

.maintenance-row b {
  justify-self: end;
  padding: 3px 4px;
  border: 1px solid currentColor;
  color: var(--muted);
  font-size: 7px;
  text-transform: uppercase;
}

.maintenance-row.is-verified b {
  color: #35684d;
}

.maintenance-row.is-review b {
  color: #866b29;
}

.maintenance-row.is-hold b {
  color: #8a4b38;
}

.maintenance-sheet footer {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
  text-transform: none;
}

.machine-view-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 0;
  margin-top: 10px;
  padding: 7px 9px 7px 12px;
  border: 1px solid rgba(84, 74, 59, 0.4);
  background: rgba(246, 239, 220, 0.96);
  box-shadow: 0 4px 10px rgba(28, 17, 10, 0.16);
}

.sheet-control-group {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.view-tabs {
  gap: 20px;
  min-height: 36px;
}

.view-tabs button {
  min-height: 36px;
  padding-bottom: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.overlay-toggles {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.layer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.layer-toggle:has(input:disabled) {
  color: #989187;
  cursor: not-allowed;
}

.layer-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--signal);
  cursor: inherit;
}

.stage-controls {
  gap: 2px;
}

.icon-button,
.rail-scroll-button {
  color: var(--ink);
}

.icon-button:hover,
.rail-scroll-button:hover:not(:disabled) {
  background: rgba(38, 64, 102, 0.09);
}

.detail-tabs {
  min-height: 38px;
  margin-top: 5px;
  padding-inline: 4px;
  border: 1px solid rgba(84, 74, 59, 0.3);
  background: rgba(246, 239, 220, 0.88);
}

.detail-tabs button {
  min-height: 36px;
}

.view-caption {
  min-height: 0;
  margin-top: 5px;
  padding: 9px 11px 10px;
  border-left: 3px solid var(--signal);
  background: rgba(244, 237, 201, 0.95);
  box-shadow: 0 3px 8px rgba(28, 17, 10, 0.15);
}

.view-subtitle,
.view-description {
  font-family: var(--mono);
}

.service-index-card {
  margin-top: 14px;
  padding: 19px 20px 18px 40px;
  transform: rotate(0.16deg);
}

.service-index-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(38, 64, 102, 0.38);
}

.service-index-card header span,
.service-index-card header b {
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.service-index-card header b {
  color: #35684d;
}

.service-index-card h4 {
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 22px;
  line-height: 1;
}

.service-data {
  display: grid;
  grid-template-columns: minmax(128px, 0.34fr) minmax(0, 1fr);
  gap: 0 16px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
}

.service-data dt,
.service-data dd {
  min-width: 0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(38, 64, 102, 0.16);
  overflow-wrap: anywhere;
}

.service-data dt {
  color: var(--muted);
  text-transform: uppercase;
}

.service-source {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
}

.service-source a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.filmstrip {
  margin-top: 10px;
  border-top: 1px solid rgba(245, 235, 213, 0.22);
  border-bottom: 1px solid rgba(26, 17, 11, 0.48);
  background: rgba(42, 31, 23, 0.86);
  box-shadow: inset 0 7px 15px rgba(18, 11, 7, 0.26), 0 -2px 8px rgba(28, 17, 10, 0.15);
}

.filmstrip-heading,
.filmstrip-heading .rail-scroll-button,
.rail-label,
.rail-label b {
  color: #efe5d4;
}

.filmstrip-heading {
  letter-spacing: 0;
}

.rail-scroll-button:disabled {
  color: #7f7468;
}

.rail-image {
  border: 1px solid rgba(239, 229, 212, 0.42);
  background: var(--vellum);
  box-shadow: 0 3px 8px rgba(18, 11, 7, 0.28);
}

.collection {
  padding-top: 50px;
}

.section-heading {
  position: relative;
  width: min(100%, 760px);
  padding: 20px 22px;
  border: 1px solid rgba(98, 88, 62, 0.42);
  background: var(--index-card);
  box-shadow: var(--card-shadow);
  transform: rotate(-0.18deg);
}

.section-heading h2,
.section-heading p,
.collection-count {
  font-family: var(--mono);
}

.section-heading h2 {
  font-size: 34px;
}

.section-heading p {
  color: #4e4b45;
  font-size: 13px;
}

.collection-item {
  padding: 8px 8px 10px;
  border: 1px solid rgba(83, 75, 62, 0.48);
  border-bottom-width: 1px;
  background: var(--vellum);
  box-shadow: var(--card-shadow);
  transform: rotate(-0.25deg);
}

.collection-item:nth-child(3n) {
  transform: rotate(0.22deg);
}

.collection-item:nth-child(4n) {
  transform: rotate(-0.08deg);
}

.collection-item[aria-current="true"] {
  border-color: var(--signal);
  box-shadow: 0 0 0 2px var(--signal), var(--card-shadow);
}

.collection-image {
  border-color: rgba(38, 64, 102, 0.2);
}

.collection-label {
  color: var(--ink);
}

.shop {
  gap: 24px;
  padding-top: 34px;
  border-top: 0;
}

.shop-copy,
.contact {
  position: relative;
  padding: 28px 30px;
  border: 1px solid rgba(98, 88, 62, 0.42);
  background: var(--index-card);
  box-shadow: var(--card-shadow);
}

.shop-copy {
  border-right: 1px solid rgba(98, 88, 62, 0.42);
  transform: rotate(-0.22deg);
}

.contact {
  transform: rotate(0.12deg);
}

.shop h2,
.contact h3 {
  color: var(--ink);
  font-family: var(--hand);
}

.shop h2 {
  font-size: 43px;
}

.shop-copy p,
.practice-link,
#lm-form,
.form-status {
  font-family: var(--mono);
}

#lm-form input[type="email"],
#lm-form textarea {
  background: rgba(250, 246, 236, 0.76);
}

.site-footer {
  width: 100%;
  max-width: none;
  margin-top: 36px;
  padding: 24px max(var(--gutter), calc((100vw - var(--content)) / 2)) 30px;
  border-top: 1px solid rgba(239, 229, 212, 0.24);
  background: rgba(39, 29, 22, 0.88);
  color: #d8cdbb;
}

.site-footer strong {
  color: #f1e7d7;
  font-family: var(--mono);
}

@media (max-width: 1180px) {
  .sheet-control-group {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .overlay-toggles {
    min-height: 28px;
  }
}

@media (min-width: 961px) {
  .machine-media {
    max-width: 850px;
  }
}

@media (min-width: 961px) and (max-height: 820px) {
  #archive-title,
  .text-link {
    display: none;
  }

  .machine-copy {
    margin-top: 0;
  }

  .machine-media {
    max-width: min(850px, calc((100vh - 330px) * 1.48));
  }
}

@media (max-width: 960px) {
  .showcase-grid {
    padding-top: 12px;
  }

  .machine-story-card {
    order: 3;
    margin-top: 3px;
    transform: none;
  }

  .machine-stage,
  .service-index-card,
  .section-heading,
  .collection-item,
  .shop-copy,
  .contact {
    transform: none;
  }

  .filmstrip {
    margin-top: 14px;
  }

  .shop-copy {
    padding: 28px 30px;
    border-bottom: 1px solid rgba(98, 88, 62, 0.42);
  }
}

@media (max-width: 600px) {
  body {
    background-attachment: scroll;
    background-size: 520px 520px;
  }

  #archive-title {
    padding: 14px 16px 16px;
    font-size: 12px;
  }

  .machine-story-card {
    padding: 18px 14px 16px 32px;
  }

  #machine-story-title {
    font-size: 22px;
  }

  #machine-story {
    font-size: 11px;
  }

  .machine-plate-name {
    padding: 8px 10px 9px;
    font-size: 17px;
  }

  .machine-stage::after {
    right: 7px;
    bottom: 5px;
    font-size: 6px;
  }

  .machine-view-toolbar {
    gap: 5px;
    padding: 5px 5px 5px 8px;
  }

  .view-tabs {
    gap: 12px;
  }

  .view-tabs button {
    font-size: 8px;
  }

  .overlay-toggles {
    flex-wrap: wrap;
    gap: 0 10px;
  }

  .layer-toggle {
    min-height: 26px;
    font-size: 8px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .detail-tabs {
    gap: 3px;
    margin-top: 4px;
  }

  .detail-tabs button {
    padding-inline: 5px;
    font-size: 8px;
  }

  .view-caption {
    padding: 7px 8px 8px;
  }

  .plot-annotation {
    max-width: 43%;
    padding: 2px 4px 3px;
  }

  .plot-annotation strong {
    font-size: 11px;
  }

  .hand-arrow {
    width: 58px;
    height: 36px;
  }

  .machine-image-frame[data-detail="front"] .annotation-engine .hand-arrow {
    width: 84px;
    height: 112px;
    transform: rotate(5deg);
  }

  .machine-image-frame[data-detail="rear"] .annotation-note .hand-arrow {
    width: 92px;
    height: 130px;
    transform: rotate(-166deg);
  }

  .annotation-engine {
    top: 3%;
    left: 28%;
  }

  .annotation-wheelbase {
    bottom: 4%;
    left: 25%;
  }

  .annotation-note {
    right: 2%;
    bottom: 3%;
  }

  .machine-stage[data-sheet="maintenance"] .machine-image-frame {
    min-height: 430px;
  }

  .maintenance-sheet {
    padding: 15px 13px 16px;
  }

  .maintenance-sheet h4 {
    font-size: 17px;
  }

  .maintenance-row {
    grid-template-columns: minmax(74px, 0.32fr) minmax(0, 1fr) 43px;
    gap: 6px;
    min-height: 52px;
    font-size: 8px;
  }

  .maintenance-row b {
    font-size: 6px;
  }

  .service-index-card {
    padding: 17px 13px 15px 30px;
  }

  .service-index-card header {
    gap: 8px;
  }

  .service-index-card h4 {
    font-size: 19px;
  }

  .service-data {
    grid-template-columns: minmax(95px, 0.4fr) minmax(0, 1fr);
    gap: 0 9px;
    font-size: 8px;
  }

  .section-heading {
    padding: 16px 18px;
  }

  .section-heading h2,
  .shop h2 {
    font-size: 32px;
  }

  .collection-grid,
  .noscript-grid {
    gap: 16px 10px;
  }

  .shop-copy,
  .contact {
    padding: 22px 20px;
  }
}

@media (max-width: 380px) {
  .site-nav {
    gap: 6px;
  }

  .machine-view-toolbar {
    grid-template-columns: minmax(0, 1fr) 70px;
  }

  .view-tabs {
    gap: 8px;
  }

  .layer-toggle input {
    width: 13px;
    height: 13px;
  }

  .icon-button {
    width: 34px;
  }

  .detail-tabs button {
    padding-inline: 4px;
    font-size: 7px;
  }

  .service-data {
    grid-template-columns: minmax(86px, 0.42fr) minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .xray-vellum {
    animation: none;
  }

  .plot-annotation,
  .hand-arrow path {
    animation: none;
  }

  .hand-arrow path:first-child {
    stroke-dashoffset: 0;
  }

  .hand-arrow path:last-child {
    opacity: 1;
  }
}
