/* Mechanical Superiority
   Two brand colours on white: black, and the chartreuse off the logo.
   --brand-accent is 1.1:1 on white, so it is a field, rule and highlight
   colour only. Type and links stay near-black. */

:root {
  --brand-ink: #000000;
  --brand-accent: #e5fe15;

  --ink: #14161a;
  --ink-soft: #5b6068;
  --paper: #ffffff;
  --paper-alt: #f4f5f6;
  --rule: #d9dbde;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 34rem;
  --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { background: var(--brand-accent); }

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* .prose keeps the page's centred column and left rule; the measure is
   applied to its children so text never runs long. */
.prose > * { max-width: var(--measure); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: var(--gutter); top: var(--gutter); z-index: 20;
  background: var(--brand-accent); color: var(--brand-ink);
  padding: 0.5rem 0.75rem; font-weight: 600;
}

/* ---------- header ---------- */

/* The logo is black and chartreuse on an opaque white plate, so the header is
   white and the chartreuse does the dividing. Inverting the mark for a dark
   header merges the bearing's ring with its balls; it has to sit on white. */
.site-header {
  background: var(--paper);
  border-bottom: 4px solid var(--brand-accent);
}

.bar {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: block; line-height: 0; }
.brand:hover { background: none; }
.brand img { height: 2.5rem; width: auto; display: block; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  background: none;
  border-bottom-color: var(--brand-accent);
}

/* ---------- headings ---------- */

h1, h2, h3, .band-head {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.5rem; }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}

.hero h1 { max-width: 18ch; }

.hero .lead {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 2rem;
}

.page-hero {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--rule);
}

.page-intro {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0.75rem 0 0;
}

/* ---------- buttons ---------- */

.button {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  background: var(--brand-ink);
  color: var(--paper);
  border: 2px solid var(--brand-ink);
}
.button:hover { background: var(--brand-accent); color: var(--brand-ink); }

.button.ghost { background: transparent; color: var(--brand-ink); }
.button.ghost:hover { background: var(--brand-accent); }

.cta-line { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }

/* A phone number never breaks at its hyphens. */
a[href^="tel:"] { white-space: nowrap; }

/* ---------- bands ---------- */

.band { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.band + .band { border-top: 1px solid var(--rule); }

.band-head { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 0 0 0.25rem; }
.band-sub { color: var(--ink-soft); margin: 0 0 1.5rem; max-width: 52ch; }

.pillars { background: var(--paper-alt); border-top: 1px solid var(--rule); }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
}

.pillar { border-top: 4px solid var(--brand-accent); padding-top: 1rem; }
.pillar h2, .pillar h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.pillar p { margin: 0; color: var(--ink-soft); }

.more-link { margin: 2rem 0 0; font-family: var(--display); font-weight: 700; }

/* ---------- post lists ---------- */

.post-list { list-style: none; margin: 0; padding: 0; }

.post-list li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  max-width: 52rem;
}
.post-list li:last-child { border-bottom: 1px solid var(--rule); }

.post-list li > a {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.2;
  text-decoration: none;
  display: inline-block;
}
.post-list li > a:hover { background: var(--brand-accent); }

.post-meta {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
}

.post-excerpt { color: var(--ink-soft); margin: 0.6rem 0 0; max-width: 60ch; }

/* ---------- prose ---------- */

.prose ul, .prose ol { padding-left: 1.25rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose > *:first-child { margin-top: 0; }

.prose { padding: clamp(2rem, 5vw, 3rem) var(--gutter); }

.band > .wrap.prose,
.band .prose { padding-top: 0; padding-bottom: 0; }

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
  max-width: var(--measure);
}

.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 4px solid var(--brand-accent);
  color: var(--ink-soft);
}

.prose strong { font-weight: 600; }

.essay { font-size: 1.125rem; --measure: 38rem; }
.essay p { margin: 0 0 1.4rem; }

.essay img {
  display: block;
  margin: 2rem 0 0.5rem;
  border: 1px solid var(--rule);
}

.essay em { color: var(--ink-soft); }

/* Pre-rendered MathML — no script on the page, so it has to hold up alone. */
.math-block {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  background: var(--paper-alt);
  border-left: 4px solid var(--brand-accent);
  overflow-x: auto;
  max-width: var(--measure);
}
math { font-size: 1.15em; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--brand-ink);
  color: var(--paper);
  border-top: 4px solid var(--brand-accent);
  padding: clamp(2rem, 5vw, 3rem) 0;
  margin-top: 0;
}

.footer-inner p { margin: 0 0 0.35rem; }

.footer-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.site-footer a { color: var(--brand-accent); }
.site-footer a:hover { background: var(--brand-accent); color: var(--brand-ink); }

.site-footer .subtle {
  color: #9aa0a6;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ---------- work: models beside builds ----------
   Every project is shown as what was drawn, then what was built. CAD
   renders are shown whole on their own grey (.fit); photographs are
   cropped to fill (.crop). */

figure { margin: 0; }
figcaption { font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.5rem; line-height: 1.45; }
.shot { display: block; width: 100%; border: 1px solid var(--rule); background: var(--paper-alt); }
.crop { object-fit: cover; }
.fit { object-fit: contain; background: #e9ebf0; }
.r43 { aspect-ratio: 4 / 3; }
.r11 { aspect-ratio: 1 / 1; }
.r34 { aspect-ratio: 3 / 4; }
.r32 { aspect-ratio: 3 / 2; }

.tag {
  display: inline-block; font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.08em; text-transform: uppercase; background: var(--brand-ink);
  color: var(--paper); padding: 0.15rem 0.45rem; margin-bottom: 0.4rem;
}
.tag.model { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.seq { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(9rem, 1fr); gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; margin-top: 1rem; }
.step-no { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-soft); display: block; }

.project { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--rule); }
.project:first-of-type { border-top: 0; }
.project-head { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem 3rem; margin-bottom: 1.5rem; }
.project-head h2 { margin: 0; }
.project-head h2 a { text-decoration: none; }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 0.4rem 0; border-top: 1px solid var(--rule); }
.facts li:first-child { border-top: 0; padding-top: 0; }
.facts b {
  display: block; font-family: var(--display); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 2rem 1.5rem; }
.card > a { text-decoration: none; display: block; }
.card > a:hover { background: none; }
.card > a:hover h3 { background: var(--brand-accent); }
.card h3 { margin: 0.75rem 0 0.25rem; display: inline; font-size: 1.1rem; }
.card p { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); border: 2px solid var(--ink); margin-bottom: 0.75rem; }
.duo img { width: 100%; }

/* ---------- home and page sections ---------- */

.split { display: grid; grid-template-columns: 5fr 4fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split.flip { grid-template-columns: 4fr 5fr; }
.split > * { min-width: 0; }

.offer-list { display: grid; gap: 0; }
.offer { display: grid; grid-template-columns: 3rem 1fr 18rem; gap: 1.5rem; align-items: start; padding: 2rem 0; border-top: 1px solid var(--rule); }
.offer:first-child { border-top: 2px solid var(--ink); }
.offer .no { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-soft); padding-top: 0.35rem; }
.offer h2, .offer h3 { margin: 0 0 0.5rem; }
.offer p { margin: 0 0 0.6rem; max-width: 40rem; }
.offer .more { font-family: var(--display); font-weight: 700; }

.straight-talk { background: var(--brand-ink); color: var(--paper); border-top: 4px solid var(--brand-accent); }
.straight-talk p.big {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 3.6vw, 2.1rem);
  line-height: 1.2; letter-spacing: -0.01em; margin: 0; max-width: 34ch; text-wrap: balance;
}
.straight-talk p.small { color: #b8bcc2; margin: 1rem 0 0; max-width: 52ch; }
.straight-talk a { color: var(--brand-accent); }

.pull {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  line-height: 1.3; margin: 0; text-wrap: pretty;
}
.pull::before { content: ""; display: block; width: 3rem; height: 6px; background: var(--brand-accent); margin-bottom: 1rem; }
.cite { font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.9rem; color: var(--ink-soft); }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 4px solid var(--brand-accent); }
.timeline li { padding: 0 0 1.1rem 1.25rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 0.55rem; width: 14px; height: 14px; background: var(--ink); border-radius: 50%; }
.timeline .yr { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); display: block; }
.timeline b { font-family: var(--display); }

.method { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
.method li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 0.75rem; }
.method li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 0.8rem; display: block; color: var(--ink-soft); }
.method li[data-step]::before { content: attr(data-step); }
.method h3 { margin: 0.25rem 0 0.35rem; font-size: 1.1rem; }
.method p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.send { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.send li { background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--brand-accent); padding: 0.9rem 1rem; }
.send b { display: block; font-family: var(--display); }

.intro-video { width: 100%; border: 1px solid var(--rule); background: var(--brand-ink); }

/* The broken-part drawing on the replacement-parts page */
.part-hero { display: grid; grid-template-columns: 3fr 2fr; gap: 2rem; align-items: center; }
.part-hero svg { width: 100%; height: auto; }
.dim { position: relative; margin: 0.25rem 0 1.25rem; height: 1.5rem; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); max-width: 30rem; }
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--ink); }
.dim span { white-space: nowrap; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--paper); padding: 0 0.5rem; font-family: var(--mono); font-size: 0.8rem; }

/* ---------- Gov. Customers: the capability statement as a page ---------- */

.sheet-page { background: #f6f7f4; }
.sheet-page main {
  background-image:
    linear-gradient(rgba(20,22,26,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,22,26,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: clamp(1rem, 4vw, 2.5rem) var(--gutter);
}
.sheet { border: 2px solid var(--ink); background: var(--paper); max-width: 64rem; margin: 0 auto; }
.sheet-sec { padding: clamp(1.25rem, 4vw, 2.25rem); border-top: 2px solid var(--ink); }
.sheet-sec:first-child { border-top: 0; }
.sheet-sec h2 { margin-top: 0; }
.sheet-label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.9rem; }
.titleblock { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); font-family: var(--mono); font-size: 0.82rem; }
.titleblock div { padding: 0.55rem 0.75rem; border-left: 1px solid var(--ink); }
.titleblock div:first-child { border-left: 0; }
.titleblock span { display: block; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.two-shops { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.two-shops .shop { border: 2px solid var(--ink); padding: 1rem 1.25rem; }
.two-shops .shop h3 { margin-top: 0; }
.two-shops .shop p { margin: 0 0 0.5rem; }
.two-shops .link { align-self: center; font-family: var(--mono); font-size: 0.8rem; text-align: center; }
.two-shops .link::before { content: ""; display: block; height: 4px; background: var(--brand-accent); margin-bottom: 0.4rem; min-width: 4rem; }
.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data th, .data td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-top: 1px solid var(--rule); }
.data th { font-family: var(--display); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); width: 11rem; font-weight: 700; }
.mono { font-family: var(--mono); font-size: 0.9em; font-variant-numeric: tabular-nums; }
.site-nav .gov { border-left: 1px solid var(--rule); padding-left: 1.25rem; }

/* ---------- small screens ---------- */

@media (max-width: 48rem) {
  .project-head, .split, .split.flip, .part-hero, .two-shops { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 2rem 1fr; }
  .offer figure { grid-column: 2; }
}

@media (max-width: 40rem) {
  .pair { grid-template-columns: 1fr; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock div:nth-child(3) { border-left: 0; }
  .titleblock div:nth-child(n+3) { border-top: 1px solid var(--ink); }
  .data th { width: 7rem; }
  .site-nav .gov { border-left: 0; padding-left: 0; }
  .bar { align-items: flex-start; }
  .brand img { height: 1.75rem; }
  .site-nav { gap: 1rem; font-size: 0.75rem; width: 100%; }
  /* Tighter, so the email address fits a phone's width in one piece. */
  .button { padding: 0.85rem 1rem; letter-spacing: 0.02em; }
}
