@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
}

:root {
  --iron: #1a1612;
  --graphite: #2c2722;
  --ink: #1c1916;
  --muted: #5e574e;
  --ivory: #f4f0e6;
  --sheet: #e7e0d2;
  --line: #d3cbbc;
  --copper: #e25b2a;
  --copper-dark: #b8431c;
  --paper: #fbf8f2;
  --header: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  color-scheme: light;
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
}
p { margin: 0 0 12px; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--copper);
  color: var(--iron);
  padding: 8px 12px;
  z-index: 30;
}
.skip:focus { top: 12px; }

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--iron);
  color: var(--ivory);
  border-bottom: 1px solid #3a332c;
}
.bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo img { display: block; height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ivory);
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.nav-link[aria-current="page"] { border-bottom-color: var(--copper); color: #fff; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ivory); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-primary { background: var(--copper); color: var(--iron); }
.btn-primary:hover { background: #f07a4e; }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--iron);
  color: var(--ivory);
}
.hero-wash {
  position: absolute;
  inset: -36px;
  background: url("/assets/img/gear-herringbone.png") 68% center / cover no-repeat;
  filter: blur(3px);
  transform: scale(1.02);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 22, 18, 0.78) 0%, rgba(26, 22, 18, 0.5) 58%, rgba(26, 22, 18, 0.34) 100%);
}
.hero-plate {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  padding: 72px 0 56px;
}
.sheet-no {
  margin: 0 0 16px;
  color: var(--copper);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 { margin: 0 0 18px; font-size: clamp(44px, 4.4vw, 68px); max-width: 16ch; }
.lead { color: #d9d0c3; max-width: 42rem; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.nameplate {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: calc(100% - 220px);
  margin: 0;
  border: 1px solid rgba(226, 91, 42, 0.55);
}
.nameplate div { padding: 12px 14px; border-right: 1px solid rgba(226, 91, 42, 0.35); border-bottom: 1px solid rgba(226, 91, 42, 0.35); }
.nameplate div:nth-child(2n) { border-right: 0; }
.nameplate dt {
  color: var(--copper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nameplate dd {
  margin: 6px 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
}
.hero-photo {
  position: absolute;
  z-index: 1;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 56px;
  width: 210px;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, #000 16%);
}
.reducer { width: 100%; height: auto; color: var(--ivory); }
.reducer .case { stroke: var(--copper); stroke-width: 2; }
.reducer .shaft rect { fill: #4a433b; }
.reducer .centerline { stroke: var(--copper); stroke-width: 1; stroke-dasharray: 7 6; }
.reducer .rotor { transform-box: fill-box; transform-origin: center; animation: turn 6.4s linear infinite; }
.reducer .rotor-out { animation-duration: 16s; animation-direction: reverse; }
.reducer .hub { stroke: var(--copper); stroke-width: 4; }
.reducer text { display: none; }
@keyframes turn { to { transform: rotate(360deg); } }

.section { padding: 72px 0; }
.section-head { max-width: 40rem; margin-bottom: 28px; }
.section-head h2, .page-intro h1 { font-size: clamp(40px, 5vw, 64px); margin: 0 0 12px; }
.section-head p, .page-intro .lead { color: var(--muted); }

.lines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lines a {
  display: flex;
  flex-direction: column;
  min-height: 148px;
  padding: 14px;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
}
.lines a:hover { border-color: var(--copper); }
.lines .num { color: var(--copper); font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.14em; }
.lines strong { display: block; margin-top: auto; font-size: 28px; line-height: 0.95; }
.lines em { margin-top: 8px; font-style: normal; color: var(--muted); font-size: 14px; }

.duty-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px; }
.duty-grid article { border-top: 2px solid var(--copper); padding-top: 12px; }
.duty-grid h3 { margin: 0 0 8px; font-size: 28px; }
.duty-grid a { text-decoration: none; }
.duty-grid a:hover { color: var(--copper-dark); }
.duty-grid p { color: var(--muted); }

.frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.frames img { width: 100%; height: 150px; object-fit: contain; background: var(--paper); border: 1px solid var(--line); }

.band { background: var(--sheet); }
.cta { background: var(--iron); color: var(--ivory); }
.cta-inner { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.cta h2 { margin: 0 0 10px; font-size: clamp(36px, 4vw, 56px); max-width: 16ch; }
.cta p { color: #d9d0c3; max-width: 38rem; }

footer.site { background: var(--iron); color: #d9d0c3; padding: 48px 0 20px; }
.foot-top { display: grid; grid-template-columns: 280px 1fr; gap: 36px; margin-bottom: 28px; }
.foot-top img { height: 36px; width: auto; }
.foot-series { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 22px; }
.foot-series h2 {
  margin: 0 0 8px;
  color: var(--copper);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.foot-series ul { list-style: none; margin: 0; padding: 0; }
.foot-series a { color: #e7e0d2; text-decoration: none; font-size: 14px; line-height: 1.35; }
.foot-series a:hover { color: #fff; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid #3a332c; padding-top: 16px; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.04em; }
.foot-meta a { color: var(--copper); }

.page-intro { padding: 36px 0 8px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0 0 18px; padding: 0; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--copper); margin: 0 8px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.filters button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.filters button[aria-pressed="true"] { border-color: var(--copper); color: var(--copper-dark); background: #f8e7df; }

.sheet { margin-bottom: 28px; }
.sheet h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; font-size: 36px; }
.sheet h2 span { color: var(--copper); font-family: "IBM Plex Mono", monospace; font-size: 14px; letter-spacing: 0.12em; }
.ledger, .ledger-head { margin: 0; padding: 0; list-style: none; }
.ledger-head, .ledger a {
  display: grid;
  grid-template-columns: 84px 108px minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(160px, 0.9fr);
  gap: 14px;
  align-items: center;
}
.ledger-head {
  padding: 0 0 8px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
}
.ledger a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.ledger a:hover { background: rgba(226, 91, 42, 0.06); }
.ledger img { width: 84px; height: 60px; object-fit: contain; background: var(--paper); border: 1px solid var(--line); }
.ledger .code { color: var(--copper); font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: 0.04em; }
.ledger .name { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 22px; line-height: 1; }
.ledger .arrange, .ledger .rating { color: var(--muted); font-size: 14px; }

.detail { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
.gallery-main { background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; min-height: 280px; }
.gallery-main img { width: 100%; max-height: 460px; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumbs button { padding: 0; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.thumbs button.active { border-color: var(--copper); }
.thumbs img { display: block; width: 88px; height: 64px; object-fit: contain; }
.series-stamp {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 8px;
  border: 1px solid var(--copper);
  color: var(--copper-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.detail h1 { margin: 0 0 12px; font-size: clamp(40px, 5vw, 62px); }
.detail .desc { font-size: 17px; }
.plate { width: 100%; border-collapse: collapse; margin: 18px 0; }
.plate caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.plate th, .plate td { border-top: 1px solid var(--line); padding: 10px 8px 10px 0; text-align: left; vertical-align: top; }
.plate th { width: 3.2rem; color: var(--copper); font-family: "IBM Plex Mono", monospace; font-weight: 500; }
.used-in { color: var(--muted); }
.used-in a { color: var(--copper-dark); }

.faq { margin-top: 48px; }
.faq h2, .related h2 { font-size: 40px; margin: 0 0 16px; }
.faq-item { border-top: 1px solid var(--line); padding: 14px 0 14px 14px; border-left: 3px solid var(--copper); margin-bottom: 10px; }
.faq-item h3 { margin: 0 0 6px; font-size: 26px; }
.related { margin-top: 36px; }

.industries { display: grid; }
.industry { border-top: 1px solid var(--line); padding: 26px 0; }
.industry h2 { margin: 0 0 8px; font-size: 36px; }
.duty-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.duty-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.duty-links a:hover { border-color: var(--copper); color: var(--copper-dark); }

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 36px; align-items: start; }
.frame { background: var(--paper); border: 1px solid var(--line); }
.frame img { width: 100%; object-fit: contain; }
.cap-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.cap-list li { padding-left: 14px; border-left: 2px solid var(--copper); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.stat-row div { border-top: 2px solid var(--copper); background: var(--paper); padding: 14px; }
.stat-row .num { font-family: "IBM Plex Mono", monospace; font-size: 26px; }
.stat-row .lbl { color: var(--muted); font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 36px; }
.contact-card { border-top: 1px solid var(--line); padding: 14px 0; }
.contact-card h2 {
  margin: 0 0 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.contact-card address { font-style: normal; }
.quote { display: grid; gap: 14px; }
.quote label {
  display: block;
  margin-bottom: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.quote input, .quote textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 12px;
  font: inherit;
  border-radius: 0;
}
.quote textarea { min-height: 150px; resize: vertical; }
.form-note { color: var(--muted); font-size: 14px; }

@media (max-width: 980px) {
  .hero, .detail, .split, .contact-grid, .foot-top { grid-template-columns: 1fr; }
  .lines, .duty-grid { grid-template-columns: 1fr 1fr; }
  .foot-series, .stat-row, .cap-list { grid-template-columns: 1fr 1fr; }
  .frames { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-plate { padding: 48px 0 40px; }
  .nameplate { grid-template-columns: 1fr 1fr; width: calc(100% - 160px); }
  .hero-photo { width: 150px; bottom: 40px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--graphite);
    padding: 8px 20px 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links ul { flex-direction: column; }
  .lines, .duty-grid, .foot-series, .stat-row, .cap-list, .frames, .nameplate { grid-template-columns: 1fr; }
  .nameplate div { border-right: 0; }
  .ledger-head { display: none; }
  .ledger a {
    grid-template-columns: 84px 1fr;
    grid-template-areas:
      "photo code"
      "photo name"
      "photo arrange"
      "photo rating";
  }
  .ledger img { grid-area: photo; }
  .ledger .code { grid-area: code; }
  .ledger .name { grid-area: name; }
  .ledger .arrange { grid-area: arrange; }
  .ledger .rating { grid-area: rating; }
  .hero h1 { max-width: none; font-size: 48px; }
  .nameplate { width: 100%; }
  .hero-photo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reducer .rotor { animation: none; }
}
