/* 3D Industrial Trainer - (c) 2026 Locke Design Firm LLC. All rights reserved. */
:root {
  --table: #d7dddc;
  --paper: #f4f6f5;
  --ink: #1c2a31;
  --ink-2: #4f5f66;
  --rule: #aeb9bc;
  --tint: #e7ecea;
  --red: #b3372c;
  --vp: #1e252b;
  --vp-text: #a3b3b9;
  --yellow: #f0c43a;
  --sans: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --cond: "Barlow Semi Condensed", "Barlow", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--table);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- drawing sheet ---------- */
.sheet { position: relative; margin: 14px; padding: 20px; background: var(--paper); border: 1px solid var(--ink); }
.frame { border: 1.5px solid var(--ink); }
.zones-t, .zones-b { position: absolute; left: 20px; right: 20px; height: 20px; display: grid; grid-template-columns: repeat(8, 1fr); }
.zones-t { top: 0; }
.zones-b { bottom: 0; }
.zones-l, .zones-r { position: absolute; top: 20px; bottom: 20px; width: 20px; display: flex; flex-direction: column; }
.zones-l { left: 0; }
.zones-r { right: 0; }
.zones-t span, .zones-b span, .zones-l span, .zones-r span {
  position: relative; display: flex; align-items: center; justify-content: center;
  font: 500 11px/1 var(--cond); color: var(--ink-2); flex: 1;
}
.zones-t span + span::before, .zones-b span + span::before { content: ""; position: absolute; left: 0; height: 8px; border-left: 1px solid var(--ink); }
.zones-t span + span::before { bottom: 0; }
.zones-b span + span::before { top: 0; }
.zones-l span + span::before, .zones-r span + span::before { content: ""; position: absolute; top: 0; width: 8px; border-top: 1px solid var(--ink); }
.zones-l span + span::before { right: 0; }
.zones-r span + span::before { left: 0; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 16px var(--pad); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand .name { display: block; font: 600 1.3125rem/1.05 var(--cond); }
.brand .by { display: block; font: 500 0.8125rem/1.3 var(--sans); color: var(--ink-2); }
.top nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.top nav a { font: 500 1rem/1 var(--cond); text-decoration: none; padding: 8px 0 6px; border-bottom: 1.5px solid transparent; }
.top nav a:hover { border-bottom-color: var(--red); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(32px, 5vw, 68px) var(--pad) clamp(36px, 5vw, 72px); }
h1 { font: 600 clamp(2.5rem, 1.3rem + 3.4vw, 4.2rem)/1.02 var(--cond); letter-spacing: -0.012em; margin: 0 0 22px; max-width: 15ch; }
.lede { font-size: 1.1875rem; line-height: 1.55; margin: 0; max-width: 34em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; font: 600 1.0625rem/1 var(--cond); text-decoration: none; border: 1.5px solid var(--ink); border-radius: 2px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2b3d46; }
.btn-ghost:hover { background: var(--tint); }
.fine { font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); margin: 0; max-width: 34em; }

/* ---------- live viewport ---------- */
.viewer { min-width: 0; }
.vp { position: relative; aspect-ratio: 4 / 3; background: var(--vp); border: 1.5px solid var(--ink); overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.vp.grabbing { cursor: grabbing; }
.vp canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vp-label, .vp-hint { position: absolute; top: 10px; font: 500 0.8125rem/1 var(--cond); color: var(--vp-text); pointer-events: none; letter-spacing: 0.02em; }
.vp-label { left: 12px; }
.vp-hint { right: 12px; color: #7b8d94; }
.vp-caption { position: absolute; left: 70px; right: 12px; bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; pointer-events: none; }
.vp-caption strong { display: block; font: 600 1.1875rem/1.15 var(--cond); color: #eef2f3; }
.vp-caption span { display: block; font-size: 0.8125rem; line-height: 1.35; color: var(--vp-text); }
.vp-open { pointer-events: auto; flex: none; font: 600 0.9375rem/1 var(--cond); color: var(--vp); background: var(--yellow); padding: 10px 14px; border-radius: 2px; text-decoration: none; }
.vp-open:hover { background: #f6d462; }
.vp-open:focus-visible { outline-color: var(--yellow); }
.tabs { display: flex; overflow-x: auto; scrollbar-width: thin; }
.tabs button {
  flex: none; font: 500 0.875rem/1 var(--cond); color: var(--ink-2); background: var(--tint);
  border: 1px solid var(--rule); border-top: 0; margin-right: -1px; padding: 9px 10px 10px; cursor: pointer; border-radius: 0 0 3px 3px;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); font-weight: 600; border-color: var(--ink); position: relative; z-index: 1; }
.tabs button:focus-visible { outline-offset: -3px; }
@media (min-width: 641px) {
  .tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); overflow: visible; border-left: 1px solid var(--rule); }
  .tabs button { white-space: nowrap; }
  .tabs button { border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0; border-radius: 0; }
  .tabs button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--ink); }
}

/* ---------- sections ---------- */
.section { padding: clamp(44px, 6vw, 84px) var(--pad); border-top: 1px solid var(--rule); scroll-margin-top: 12px; }
.dwg { position: relative; display: inline-block; font: 600 clamp(1.8rem, 1.25rem + 1.4vw, 2.5rem)/1.1 var(--cond); margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2.5px solid var(--ink); }
.dwg::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; border-bottom: 1px solid var(--ink); }
.intro { margin: 22px 0 0; max-width: 40em; color: var(--ink-2); }

/* ---------- trainer catalog ---------- */
.group { margin-top: 48px; }
.group h3 { display: flex; align-items: center; gap: 14px; font: 600 1.25rem/1.2 var(--cond); margin: 0 0 20px; }
.group h3::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 36px 34px; }
.detail { display: flex; flex-direction: column; }
.fig { position: relative; display: block; aspect-ratio: 3 / 2; border: 1px solid var(--rule); background: var(--paper); overflow: hidden; }
.fig:hover { border-color: var(--ink); }
.fig svg { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); display: block; }
.ln { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.ln.hl { stroke: var(--red); stroke-width: 1.6; }
.vt { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.bubble { flex: none; width: 46px; height: 46px; }
.bubble text { font: 600 13px var(--cond); fill: var(--ink); }
.vt h4 { position: relative; display: inline-block; font: 600 1.25rem/1.15 var(--cond); margin: 0; padding-bottom: 3px; border-bottom: 2px solid var(--ink); }
.vt h4::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; border-bottom: 1px solid var(--ink); }
.scope { font-size: 0.875rem; line-height: 1.35; color: var(--ink-2); margin: 9px 0 0; }
.desc { margin: 14px 0 8px; }
.specs { margin: 0 0 16px; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); }
.specs dt { font: 600 0.8125rem/1.3 var(--cond); color: var(--ink); margin-top: 8px; }
.specs dt:first-child { margin-top: 0; }
.specs dd { margin: 2px 0 0; }
.specs a { color: var(--ink); }
.specs a:hover { color: var(--red); }
.notes { margin-top: 56px; max-width: 58em; border: 1px solid var(--ink); padding: 18px 22px 20px; }
.notes h3 { font: 600 1.125rem/1.2 var(--cond); margin: 0 0 10px; }
.notes ol { margin: 0; padding-left: 1.35em; }
.notes li { margin: 6px 0 0; font-size: 0.9375rem; line-height: 1.5; padding-left: 4px; }
.open { align-self: flex-start; margin-top: auto; font: 600 1rem/1.2 var(--cond); text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 1px; }
.open:hover { color: var(--red); border-bottom-color: var(--red); }

/* ---------- tools legend ---------- */
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; margin: 32px 0 0; padding: 0; list-style: none; }
.legend li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--rule); }
.legend svg { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.legend b { display: block; font: 600 1.0625rem/1.25 var(--cond); }
.legend span { display: block; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); margin-top: 3px; }
.legend-intro { margin: 22px 0 0; max-width: 40em; color: var(--ink-2); }

/* ---------- about ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); margin-top: 30px; align-items: start; }
.prose p { margin: 0 0 16px; max-width: 36em; }
.prose p:last-child { margin-bottom: 0; }
.refs { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.refs caption { text-align: left; font: 600 1.125rem/1.2 var(--cond); padding-bottom: 12px; }
.refs th, .refs td { border: 1px solid var(--rule); padding: 9px 12px; text-align: left; vertical-align: top; }
.refs th { width: 44%; font: 600 0.9375rem/1.35 var(--cond); background: var(--tint); }
.refs-note { margin: 12px 0 0; font-size: 0.875rem; color: var(--ink-2); }
.form-note { margin: 14px 0 0; font-size: 0.875rem; color: var(--ink-2); }
.form-note a { color: var(--ink-2); }

/* ---------- contact ---------- */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form .field { margin-bottom: 16px; }
label { display: block; font: 600 0.9375rem/1.2 var(--cond); margin-bottom: 6px; }
label .opt { font-weight: 500; color: var(--ink-2); }
input, select, textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #889599; border-radius: 2px; padding: 11px 12px; }
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
button.btn { cursor: pointer; }

/* ---------- title block ---------- */
.revs { display: flex; justify-content: flex-end; }
.revs table { border-collapse: collapse; font: 500 0.8125rem/1.3 var(--cond); text-transform: uppercase; letter-spacing: 0.03em; }
.revs th, .revs td { border: 1px solid var(--ink); padding: 5px 10px; text-align: left; }
.revs td:last-child { white-space: nowrap; }
.revs th { font-weight: 600; color: var(--ink-2); }
.revs tr:first-child td { border-top-width: 1px; }
.tb { display: grid; grid-template-columns: 3fr 1.2fr 0.6fr 0.8fr 0.8fr; border-top: 1.5px solid var(--ink); margin-top: -1px; }
.tb > div { padding: 9px 12px 11px; border-left: 1px solid var(--ink); }
.tb > div:first-child { border-left: 0; }
.tb .k { display: block; font: 500 0.6875rem/1.2 var(--cond); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.tb .v { display: block; font: 600 0.9375rem/1.25 var(--cond); letter-spacing: 0.03em; text-transform: uppercase; margin-top: 4px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 10px 12px; border-top: 1px solid var(--ink); font-size: 0.8125rem; color: var(--ink-2); }
.legal a { color: var(--ink-2); }
.legal a:hover { color: var(--red); }

/* ---------- simple pages ---------- */
.page { padding: clamp(40px, 6vw, 80px) var(--pad); max-width: 52em; }
.page h1 { font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.2rem); max-width: none; }
.page h2 { font: 600 1.375rem/1.2 var(--cond); margin: 34px 0 10px; }
.page p, .page li { max-width: 40em; }
.page ul { padding-left: 1.2em; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  h1 { max-width: 18ch; }
  .tb { grid-template-columns: repeat(4, 1fr); }
  .tb > div:first-child { grid-column: 1 / -1; }
  .tb > div:nth-child(n+2) { border-top: 1px solid var(--ink); }
  .tb > div:nth-child(2) { border-left: 0; }
}
@media (max-width: 760px) {
  .legend, .two { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .sheet { margin: 6px; padding: 6px; }
  .zones-t, .zones-b, .zones-l, .zones-r { display: none; }
  .top { padding-top: 12px; padding-bottom: 12px; }
  .brand svg { width: 36px; height: 36px; }
  .brand .name { font-size: 1.1875rem; }
  .lede { font-size: 1.0625rem; }
  .vp { aspect-ratio: 6 / 7; }
  .vp-hint { display: none; }
  .vp-caption { left: 62px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .revs { padding: 0; }
  .revs table { width: 100%; }
  .tb { grid-template-columns: 1fr 1fr; }
  .tb > div:nth-child(4) { border-left: 0; }
  .revs th:nth-child(2), .revs td:nth-child(2) { width: 100%; }
}
