@font-face {
  font-family: Anton;
  src: url('../fonts/anton-latin.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-semibold.ttf') format('truetype');
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --display: Anton, 'Arial Narrow', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --max: 1020px;
  --pad: 24px;
  --surround: #e8e8e6;
  --yellow: #ffe438;
  --radius-pill: 0;
  --radius-btn: 0;
}

body { font-family: var(--mono); font-size: 13px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
.page { padding: 26px 24px; }
.doc { padding: 16px var(--pad) 20px; border-color: #b7b9ba; box-shadow: 0 12px 30px #0000000c; }
.kicker-top { font-family: var(--mono); font-size: 8px; letter-spacing: 0; margin-bottom: 7px; }
.cmyk { gap: 3px; }
.cmyk i { width: 12px; height: 12px; border: 0; }
.header-row { padding-bottom: 16px; border-bottom: 2px solid var(--ink); gap: 18px; }
.brand { gap: 12px; }
.brand-mark { display: block; width: 42px; height: 48px; overflow: hidden; }
.brand-mark img { width: 64px; max-width: none; height: 48px; }
.wordmark { font: 400 29px/1 var(--display); letter-spacing: 1.2px; }
.site-nav { gap: 36px; }
.site-nav ul { gap: 8px; }
.pill { padding: 7px 19px; font-size: 12px; border-color: #222; box-shadow: 1px 1px 0 #222; }
.pill.is-active, .pill.is-active:hover { background: #f5f5f3; color: #111; font-weight: 600; }
.pill:hover { background: #fff4ad; }
.btn-yellow, .btn-green { border-radius: 0; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 8px 12px; box-shadow: 2px 2px 0 #111; transition: transform 150ms, box-shadow 150ms, background 150ms; }
.btn-yellow:hover, .btn-green:hover { filter: none; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 #111; }
.btn-yellow:hover { background: #ffed70; }
.btn-yellow:active, .btn-green:active { transform: translate(2px, 2px); box-shadow: none; }
.nav-toggle { border-radius: 0; font-family: var(--mono); min-height: 44px; }
h1, .h1, h2, .h2, .wordmark, .stat strong { font-family: var(--display); font-weight: 400; }
h1, .h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.08; letter-spacing: -1.4px; }
h2, .h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.6px; }
h3, .h3 { font: 600 13px/1.4 var(--mono); }
.kicker { font: 400 11px/1.3 var(--mono); letter-spacing: 0; margin-bottom: 8px; }
.lede { font-size: 16px; font-weight: 600; line-height: 1.35; }
.sublede { font-size: 13px; line-height: 1.4; }
.rule-dot, .rule { border-top: 1px dashed #8c8c8c; margin: 16px 0; }
.rule-solid { border-top-width: 2px; }
.figcap { font-size: 8px; color: #444; letter-spacing: .4px; }
.inner-page #main { padding-top: 22px; }
.inner-page .prose, .inner-page .method { line-height: 1.65; }
.inner-page .method h2 { font: 400 25px/1.15 var(--display); }
.inner-page .method p { font-size: 13px; }
.inner-page .figure { max-width: 800px; margin: 20px auto; }
.inner-page .lede { max-width: 78ch; }
.inner-page .card-wide { max-width: none; display: grid; grid-template-columns: 220px 1fr; column-gap: 24px; align-content: center; }
.inner-page .card-wide img { grid-row: span 2; }
.inner-page .card-wide h3 { align-self: end; }
.inner-page .card-wide p { max-width: 62ch; }
.quote { font-size: 13px; }
.steps .n { font: 400 12px/1.5 var(--mono); }
.cta-band { grid-template-columns: auto 1fr auto; gap: 28px; padding: 2px 0; }
.cta-band h2 { font-size: 27px; white-space: nowrap; }
.cta-band p { border-left: 1px dashed #777; padding-left: 28px; font-size: 10px; }
.cta-band .btn-yellow { padding: 10px 20px; font-size: 14px; }
.site-footer { font-size: 9px; gap: 8px; }
.site-footer p { margin: 0; }
.tagline { font-size: 8px; letter-spacing: 0; }
.subnav { font-size: 9px; padding-top: 10px; margin-top: 10px; gap: 8px 20px; border-color: #aaa; }
input[type='text'], input[type='email'], input[type='tel'], select, textarea { font-family: var(--mono); font-size: 14px; }
.form-error { font-size: 12px; }

/* The homepage is a single technical sheet; interior pages retain reading space. */
.home-page .hero { grid-template-columns: minmax(0, 38%) minmax(0, 62%); gap: 0; padding: 14px 0 0; align-items: start; }
.home-page .hero > div { padding: 6px 14px 0 0; min-width: 0; }
.home-page .hero h1 { margin: 14px 0 17px; font-size: 49px; letter-spacing: -1.4px; line-height: 1.2; }
.home-page .hero h1 span { display: block; white-space: nowrap; }
.home-page .hero h1 span:last-child { transform: scaleX(.8); transform-origin: left; }
.home-page .hero .lede { font-size: 15px; line-height: 1.35; letter-spacing: -.5px; margin-bottom: 12px; }
.home-page .hero .sublede { font-size: 12px; max-width: 38ch; margin-bottom: 18px; }
.home-page .hero .btn-yellow { font-size: 13px; padding: 8px 12px; }
.meta-row { font: 400 7px/1.5 var(--mono); gap: 7px; margin-top: 22px; letter-spacing: 0; white-space: nowrap; }
.meta-row span { padding-left: 7px; border-color: #777; }
.factory-figure { position: relative; min-width: 0; padding-top: 0; }
.figure-heading { display: flex; justify-content: space-between; font: 400 8px/1.35 var(--mono); text-transform: uppercase; padding: 8px 10px 0; }
.figure-heading span:last-child { text-align: right; }
.drawing-open { position: relative; display: block; width: 100%; border: 0; padding: 0; background: #fff; color: var(--ink); cursor: zoom-in; }
.drawing-open img { width: 100%; height: 365px; object-fit: contain; border: 0; background: white; transition: transform 180ms ease-out; }
.drawing-hint { position: absolute; right: 8px; bottom: 8px; background: #fff; border: 1px solid #bbb; padding: 4px 6px; font: 400 8px var(--mono); opacity: 0; transition: opacity 160ms; }
.drawing-open:hover .drawing-hint, .drawing-open:focus-visible .drawing-hint { opacity: 1; }
.home-method { gap: 18px; padding: 0; }
.home-method article { border-left: 1px solid #555; padding-left: 12px; display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
.home-method h2 { font: 400 19px/1.2 var(--display); text-transform: uppercase; margin: 0 0 5px; letter-spacing: 0; }
.home-method .num { font: 400 29px/1 var(--display); display: inline-block; min-width: 42px; vertical-align: -3px; }
.home-method p { font-size: 10px; line-height: 1.5; padding-left: 42px; margin-bottom: 4px; max-width: 34ch; }
.home-method img { width: 100%; height: 115px; object-fit: contain; align-self: end; }
.home-services { gap: 14px; }
.home-services .panel { padding: 8px 10px 10px; }
.home-services h2 { font-size: 27px; margin-bottom: 4px; }
.home-services h2 a { text-decoration: none; }
.panel-lede { font-size: 12px; margin: 0 0 8px; letter-spacing: -.4px; }
.home-services .split { grid-template-columns: 1.3fr .8fr; gap: 8px; align-items: stretch; }
.home-services .split > div { min-width: 0; }
.home-services .split p { font-size: 9px; line-height: 1.5; margin: 0; }
.home-services .steps { margin: 0; border: 1px solid #888; }
.home-services .steps li { grid-template-columns: 28px 1fr; padding: 6px 6px 6px 0; gap: 8px; min-height: 59px; border-color: #888; }
.home-services .steps .n { text-align: center; border-right: 1px solid #aaa; }
.home-services .steps h3 { font-size: 10px; margin-bottom: 3px; }
.home-services .stack-img { width: 100%; height: 182px; object-fit: contain; }
.home-services .sysgraft-img { width: 100%; height: 194px; object-fit: contain; }
.home-services .bullets { padding-left: 13px; margin: 8px 0 10px; font-size: 9px; list-style-type: '– '; }
.home-services .bullets li { margin: 0; }
.home-services .btn-yellow { font-size: 11px; padding: 6px 10px; }
.home-page .stats { grid-template-columns: 1fr 1.15fr 1.1fr .62fr; align-items: stretch; gap: 0; padding: 0; }
.home-page .stat { padding: 0 22px 0 10px; border-right: 1px dashed #888; }
.home-page .stat + .stat { padding-left: 26px; }
.home-page .stat strong { font-size: 55px; line-height: 1; letter-spacing: -1.5px; white-space: nowrap; }
.home-page .stat p { font-size: 11px; line-height: 1.4; max-width: none; margin-top: 6px; }
.home-page .disclaimer { margin: 0; border: 0; font-size: 8px; padding: 3px 0 0 22px; line-height: 1.65; }
.section-label { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.section-label > a { font-size: 9px; }
.delivery-note { border-top: 1px dashed #888; border-bottom: 1px dashed #888; padding: 18px 0; margin: 20px 0; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.delivery-note p { margin: 0; }
.section-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 0; padding-bottom: 12px; border-bottom: 1px dashed #aaa; font-size: 10px; }
.section-nav [aria-current='page'] { font-weight: 600; text-decoration: none; }

/* Native dialog: the detailed drawing stays usable by keyboard and on touch. */
.drawing-dialog { width: min(1400px, 96vw); max-width: none; max-height: 95dvh; padding: 14px; border: 1px solid #111; background: #fff; }
.drawing-dialog::backdrop { background: #161616bc; }
.drawing-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #aaa; padding-bottom: 10px; }
.drawing-dialog h2 { font: 400 12px var(--mono); letter-spacing: 0; margin: 0; }
.drawing-dialog button { min-height: 44px; padding: 8px 12px; border: 1px solid #111; background: #ffe438; cursor: pointer; }
.drawing-dialog img { width: 100%; max-height: 75dvh; object-fit: contain; }
.drawing-dialog p { font: 400 10px/1.5 var(--mono); margin: 8px 0 0; }

@media (max-width: 1050px) and (min-width: 761px) {
  .page { padding: 18px; }
  .doc { --pad: 20px; }
  .site-nav { gap: 14px; }
  .pill { padding: 7px 12px; }
  .wordmark { font-size: 25px; }
  .home-page .hero h1 { font-size: clamp(36px, 4.4vw, 46px); }
  .home-page .hero .lede { font-size: 13px; }
  .home-page .hero .sublede { font-size: 11px; }
  .home-services h2 { font-size: 24px; }
  .home-services .panel-lede { font-size: 10px; }
  .cta-band { gap: 18px; }
  .cta-band p { padding-left: 18px; }
  .cta-band .btn-yellow { font-size: 11px; padding: 10px; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .home-page .hero { grid-template-columns: 38% 62%; }
  .home-method { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-services { grid-template-columns: 1fr 1fr; }
  .home-services .split { grid-template-columns: 1.3fr .8fr; }
  .home-method p { padding-left: 0; }
  .home-page .stat strong { font-size: 45px; }
  .home-page .stat p { font-size: 9px; }
  .site-nav { gap: 10px; }
  .site-nav ul { gap: 5px; }
  .pill { font-size: 10px; padding: 7px 10px; }
  .site-nav .btn-yellow { font-size: 10px; padding: 8px; }
  .brand { gap: 5px; }
  .wordmark { font-size: 23px; }
  .home-services h2 { font-size: 21px; }
}

@media (max-width: 760px) {
  body { font-size: 13px; }
  .page { padding: 0; }
  .doc { padding: 12px 18px 20px; border: 0; }
  .kicker-top { font-size: 6px; gap: 8px; justify-content: space-between; margin-bottom: 14px; }
  .kicker-top .cmyk i { width: 9px; height: 9px; }
  .header-row { flex-wrap: wrap; align-items: center; padding-bottom: 14px; }
  .wordmark { font-size: 27px; }
  .nav-toggle { display: block; margin-left: auto; padding: 8px 12px; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .pill, .site-nav .btn-yellow { border-radius: 0; width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
  .home-page .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 18px; }
  .home-page .hero > div { padding: 0; }
  .home-page .hero h1 { font-size: clamp(38px, 9.3vw, 58px); letter-spacing: -1.1px; line-height: 1.15; margin: 14px 0 18px; }
  .home-page .hero .lede { max-width: 42ch; font-size: 14px; }
  .home-page .hero .sublede { font-size: 12px; max-width: 44ch; }
  .home-page .hero .btn-yellow { padding: 12px; min-height: 44px; }
  .meta-row { font-size: 7px; gap: 8px; white-space: normal; margin-top: 20px; }
  .figure-heading { padding: 0 0 6px; }
  .drawing-open img { height: auto; aspect-ratio: 1.5; }
  .drawing-hint { opacity: 1; font-size: 7px; }
  .home-method { grid-template-columns: 1fr; gap: 20px; }
  .home-method article { padding-left: 12px; }
  .home-method h2 { font-size: 23px; }
  .home-method p { max-width: 40ch; padding-left: 42px; font-size: 11px; }
  .home-method img { height: auto; max-height: 180px; aspect-ratio: 2.5; object-fit: contain; margin-top: 10px; }
  .home-services { grid-template-columns: 1fr; }
  .home-services .panel { padding: 12px; }
  .home-services h2 { font-size: 27px; }
  .home-services .panel-lede { font-size: 11px; }
  .home-services .split { grid-template-columns: 1.2fr .8fr; }
  .home-services .split p, .home-services .bullets { font-size: 10px; }
  .home-services .steps li { min-height: 68px; }
  .home-services .stack-img, .home-services .sysgraft-img { height: 215px; }
  .home-services .btn-yellow { min-height: 44px; font-size: 11px; }
  .home-page .stats { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .home-page .stat, .home-page .stat + .stat { padding: 0 12px; }
  .home-page .stat:nth-child(2) { border-right: 0; }
  .home-page .stat strong { font-size: 48px; }
  .home-page .stat p { font-size: 10px; }
  .home-page .disclaimer { padding: 0 12px; font-size: 10px; align-self: center; }
  .cta-band { grid-template-columns: 1fr; gap: 12px; }
  .cta-band p { padding: 0; border: 0; max-width: 42ch; font-size: 12px; }
  .cta-band .btn-yellow { min-height: 44px; font-size: 13px; }
  .site-footer { align-items: flex-start; gap: 14px; }
  .footer-end { gap: 8px; }
  .tagline { font-size: 7px; }
  .subnav { gap: 4px 16px; }
  .subnav a { padding: 10px 0; }
  .inner-page .card-wide { grid-template-columns: 100px 1fr; gap: 8px 12px; }
  .inner-page h1 { font-size: 39px; }
  .inner-page .method, .inner-page .grid-2, .inner-page .grid-4 { grid-template-columns: 1fr; }
  .inner-page .case header { flex-wrap: wrap; }
  .delivery-note { grid-template-columns: 1fr; gap: 12px; }
  .section-nav { gap: 4px 16px; }
  .section-nav a { padding: 8px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .drawing-open img { transform: none !important; }
}

@media print {
  .page { padding: 0; }
  .doc { box-shadow: none; }
  .drawing-hint, .drawing-dialog { display: none; }
}
