/* DAC (Drew Arney CAD) — clean machine-shop layout. Matte black, steel, and white,
   with the logo's crimson used sparingly for accents.
   Utility bar → white nav → dark hero → facts strip →
   about + process → services → industries → quote banner → footer. */
:root {
  --white: #ffffff;
  --paper: #ffffff;
  --paper-2: #f4f5f6;          /* alternating sections */
  --ink: #141414;              /* headings, primary text (logo black) */
  --ink-2: #4f5357;            /* body copy */
  --ink-3: #787d82;            /* captions, kickers */
  --line: #e1e4e7;
  --line-2: #cdd2d7;
  --charcoal: #141414;         /* hero, buttons: matte black */
  --charcoal-2: #202020;
  --charcoal-3: #2f2f2f;
  --steel: #9aa4ae;
  --brand-red: #b0122f;        /* logo crimson, accents only */
  --viewer-bg: #eceef0;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ── utility bar ── */
.utility { background: var(--charcoal); color: #b9c0c7; font-size: 13.5px; }
.utility-in {
  max-width: var(--wrap); margin: 0 auto; padding: 7px var(--gut);
  display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap;
}
.util-right { display: flex; gap: 20px; flex-wrap: wrap; }
.utility a { text-decoration: none; }
.utility a:hover { color: var(--white); }

/* ── nav ── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut)));
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; color: var(--ink); }
.logo { display: block; height: 40px; width: auto; color: var(--ink); overflow: visible; flex: none; }
.logo-red { fill: var(--brand-red); }
.brand-full {
  font-family: var(--display); font-style: italic; font-weight: 700; font-size: 22px; line-height: 1;
  color: var(--ink); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
  padding-left: 12px; border-left: 2px solid var(--brand-red);
}
.topbar nav { display: flex; gap: 28px; align-items: center; }
.topbar nav a:not(.btn) {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.topbar nav a:not(.btn):hover { border-bottom-color: var(--ink); }
.topbar nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-quote { font-size: 14px !important; padding: 10px 18px !important; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border: 1.5px solid var(--charcoal); border-radius: 3px;
  text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 15px;
  letter-spacing: .02em;
  background: transparent; color: var(--charcoal); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--charcoal); color: var(--white); }
.btn-primary:hover { background: var(--charcoal-3); border-color: var(--charcoal-3); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--charcoal); }
.btn-light:hover { background: #dfe3e7; border-color: #dfe3e7; }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-lg { font-size: 16px; padding: 16px 30px; }

/* ── hero ── */
.hero-band {
  color: var(--white);
  background-color: var(--charcoal);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    radial-gradient(90% 120% at 80% 40%, #2a2a2a 0%, var(--charcoal) 70%);
  background-size: 32px 32px, 32px 32px, auto;
}
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gut);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
}
.eyebrow {
  font-size: 13.5px; font-weight: 600; color: var(--steel); letter-spacing: .16em; text-transform: uppercase;
  margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand-red); }
h1 {
  font-family: var(--display); font-weight: 700; color: var(--white);
  font-size: clamp(40px, 5.4vw, 66px); line-height: 1.02; margin: 0 0 22px;
  text-transform: uppercase; letter-spacing: .005em;
}
.lede { font-size: clamp(18px, 1.8vw, 20px); color: #c6ccd2; max-width: 46ch; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-text { grid-template-columns: minmax(0, 860px); }
.hero-text .lede { max-width: 58ch; }

/* ── facts strip ── */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.fact { padding: 26px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; }
.fact span { font-size: 15px; color: var(--ink-3); }

/* ── sections ── */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 8vw, 104px) var(--gut); }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker {
  margin: 0 0 10px; color: var(--ink-3); font-size: 13.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--brand-red); }
h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(32px, 4vw, 46px); line-height: 1.04; margin: 0 0 18px; letter-spacing: .005em;
}
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end;
  margin-bottom: 40px;
}
.section-head h2 { margin: 0; }
.section-head > p { margin: 0; max-width: 48ch; justify-self: end; }
.body-lg { font-size: 19px; color: var(--ink); }

/* photos */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.split > .photo { max-width: 400px; width: 100%; justify-self: end; }

/* about + process */
.about p { max-width: 58ch; }
.founder { margin-top: clamp(32px, 4vw, 44px); padding-top: clamp(28px, 3vw, 36px); border-top: 1px solid var(--line); }
.founder h3 { margin: 0 0 12px; font-family: var(--display); font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.split p { max-width: 58ch; }
.process { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--line); }
.process h3 { margin: 0 0 24px; font-family: var(--display); font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%;
  background: var(--charcoal); color: var(--white); font-family: var(--display); font-weight: 700; font-size: 17px;
}
.steps strong { display: block; color: var(--ink); font-weight: 600; font-size: 17px; line-height: 1.3; margin-bottom: 4px; }
.steps span { font-size: 15.5px; }

/* services */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service {
  padding: 30px 26px; background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.service:hover { border-color: var(--line-2); box-shadow: 0 10px 28px rgba(22, 25, 28, .08); transform: translateY(-2px); }
.service-num { display: block; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--steel); letter-spacing: .08em; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.service h3 { margin: 0 0 10px; font-family: var(--display); font-size: 23px; line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; }
.service p { margin: 0; font-size: 16px; }

.cad-row { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.cad-row .photo img { height: 100%; }
.cad-note {
  align-content: center; padding: 28px 32px; background: var(--charcoal); color: #c6ccd2; border-radius: 4px;
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 8px 32px; align-items: center;
}
.cad-note h3 { margin: 0; font-family: var(--display); font-size: 24px; text-transform: uppercase; letter-spacing: .02em; color: var(--white); }
.cad-note p { margin: 0; }
.cad-note strong { color: var(--white); font-weight: 600; }

/* industries */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tiles li {
  display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 20px 24px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white);
  font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--ink); text-transform: uppercase; letter-spacing: .02em;
}
.tiles li::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--brand-red); transform: rotate(45deg); flex: none; }

/* quote banner */
.cta-band { background: var(--charcoal); color: #c6ccd2; }
.cta-in {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(52px, 6vw, 80px) var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-in > div:first-child { min-width: 0; flex: 1 1 420px; }
.cta-in h2 { color: var(--white); margin: 0 0 10px; font-size: clamp(30px, 3.6vw, 42px); }
.cta-in p { margin: 0; max-width: 56ch; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-email { color: var(--white); font-size: 15px; user-select: all; }
a.cta-email { text-decoration: none; user-select: auto; }
a.cta-email:hover { text-decoration: underline; }

/* ── project card ── */
.project { border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; background: var(--white); box-shadow: 0 10px 28px rgba(22, 25, 28, .06); }
.project + .project { margin-top: 40px; }
.project-top { display: grid; grid-template-columns: 1.35fr 1fr; }
.viewer { position: relative; min-height: 440px; background: var(--viewer-bg); border-right: 1px solid var(--line-2); cursor: grab; touch-action: none; }
.viewer:active { cursor: grabbing; }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; position: absolute; inset: 0; }
.viewer-hint { position: absolute; left: 12px; bottom: 10px; font-size: 13px; color: var(--ink-3); pointer-events: none; }
.viewer-reset { position: absolute; right: 10px; bottom: 10px; font-family: var(--sans); font-size: 13px; background: var(--white); border: 1px solid var(--line-2); border-radius: 3px; padding: 4px 10px; cursor: pointer; }
.viewer-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 15px; color: var(--ink-3); padding: 24px; }
.info { padding: 30px; display: flex; flex-direction: column; min-width: 0; }
.info h3 { font-family: var(--display); font-size: 30px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .01em; }
.info p { margin: 0 0 18px; }
.info ul { margin: 0 0 22px; padding-left: 18px; font-size: 16px; }
.info li { margin-bottom: 6px; }
.info li::marker { color: var(--ink-3); }
.titleblock { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); font-size: 15px; color: var(--ink); }
.titleblock div { padding: 6px 9px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.titleblock div:nth-child(2n) { border-right: 0; }
.titleblock div:nth-last-child(-n+2) { border-bottom: 0; }
.titleblock .tb-wide { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--ink); }
.titleblock span { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.drawings { border-top: 1px solid var(--line-2); }
.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tab { font-family: var(--sans); font-size: 15px; padding: 11px 16px; background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer; color: var(--ink-3); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--paper-2); box-shadow: inset 0 -2px 0 var(--brand-red); }
.tab-pdf { margin-left: auto; text-decoration: none; border-left: 1px solid var(--line); border-right: 0; }
.sheet { padding: clamp(10px, 2vw, 22px); background: var(--paper-2); }
.sheet img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); cursor: zoom-in; }

/* ── footer ── */
.footer { background: var(--paper-2); color: var(--ink-2); border-top: 1px solid var(--line); font-size: 15.5px; }
.footer-in {
  max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gut) 36px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px;
}
.f-col { min-width: 0; }
.f-col h4 { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .12em; font-size: 13.5px; font-weight: 600; }
.f-col p { margin: 0 0 10px; }
.f-col a { text-decoration: none; overflow-wrap: anywhere; }
.f-col a:hover { color: var(--ink); text-decoration: underline; }
.f-logo { margin-bottom: 14px; }
.f-logo .logo { height: 36px; }
.f-bottom {
  width: min(calc(var(--wrap) - 2 * var(--gut)), calc(100% - 2 * var(--gut))); margin: 0 auto; padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3);
}

/* lightbox */
dialog#lightbox { border: 0; padding: 0; max-width: 96vw; max-height: 94vh; background: #fff; }
dialog#lightbox::backdrop { background: rgba(20, 22, 24, .85); }
dialog#lightbox img { display: block; max-width: 96vw; max-height: 94vh; }
.lb-close { position: absolute; top: 8px; right: 8px; border: 1px solid var(--line-2); background: var(--white); cursor: pointer; padding: 4px 9px; }

/* ── Our Work page ── */
.page-hero { grid-template-columns: 1fr; padding-block: clamp(56px, 7vw, 92px); }
.page-hero .lede { margin-bottom: 0; }
.empty-gallery {
  display: grid; justify-items: center; text-align: center; gap: 14px;
  padding: clamp(40px, 6vw, 72px) 24px; background: var(--paper-2);
  border: 1.5px dashed var(--line-2); border-radius: 4px; max-width: 760px; margin: 0 auto;
}
.empty-mark { width: 80px; height: 80px; color: var(--ink-3); }
.empty-gallery h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); }
.empty-gallery p { margin: 0 0 8px; max-width: 52ch; }

@media (max-width: 1060px) {
  .topbar nav a:not(.btn) { display: none; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .split > .photo { justify-self: start; max-width: 360px; }
  .cad-row { grid-template-columns: 1fr; }
  .cad-row .photo { max-width: 360px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-in { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .section-head { grid-template-columns: 1fr; }
  .section-head > p { justify-self: start; }
  .project-top { grid-template-columns: 1fr; }
  .viewer { min-height: 340px; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .tab-pdf { margin-left: 0; }
  .viewer-hint { display: none; }
}
@media (max-width: 600px) {
  .topbar { gap: 10px; }
  .brand { flex: none; }
  .logo { height: 28px; }
  .brand { gap: 8px; }
  .brand-full { font-size: 15px; padding-left: 8px; }
  .nav-quote { padding: 8px 12px !important; font-size: 13px !important; white-space: nowrap; }
  .utility-in > .util-item:first-child { display: none; }
  .facts-in { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(3) { border-left: 0; padding: 18px 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .services, .tiles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cad-note { grid-template-columns: 1fr; padding: 24px; }
  .footer-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service { transition: none; }
  .service:hover { transform: none; }
}
