/* ==========================================================================
   Detroit Automatic Tooling, Inc. — Site stylesheet
   Palette: matte black, precision white, gunmetal, brushed steel,
   restrained electric-red accent (buttons, active states, technical marks).
   No external fonts or libraries: works on any static host.
   ========================================================================== */

:root {
  --black: #0b0b0c;
  --black-2: #111214;
  --gun: #1a1d21;
  --gun-2: #23272c;
  --gun-3: #2f343a;
  --line: #343a41;
  --steel: #aeb4bb;
  --steel-2: #8b929a;
  --steel-light: #d9dde1;
  --steel-pale: #eceef0;
  --white: #f6f7f8;
  --pure: #ffffff;
  --red: #e5252a;
  --red-dark: #b81b20;
  --ink: #15181b;
  --ink-2: #444b53;

  --f-head: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 1240px;
  --gutter: 24px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--f-head); font-weight: 700; line-height: 1.08; letter-spacing: .01em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px; font-family: var(--f-mono);
  font-size: 13px; text-decoration: none; letter-spacing: .08em; text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Utility bar ---------- */
.topbar {
  background: var(--gun);
  border-bottom: 1px solid var(--line);
  color: var(--steel);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: var(--steel-light); }
.topbar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar .tb-group { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tb-dot { display: inline-block; width: 7px; height: 7px; background: var(--red); margin-right: 8px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.55); }
.site-header::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 3px; background: var(--red);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }
.brand-text { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13.5px; line-height: 1.15; max-width: 200px; color: var(--white); border-left: 1px solid var(--line); padding-left: 14px; }
.brand-text span { display: block; color: var(--steel); font-weight: 500; font-size: 11px; letter-spacing: .16em; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a.nav-link {
  position: relative; display: block; padding: 10px 9px;
  font-family: var(--f-head); font-weight: 600; font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--steel-light); text-decoration: none; white-space: nowrap;
}
.nav a.nav-link::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 2px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a.nav-link:hover { color: #fff; }
.nav a.nav-link:hover::after, .nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav-link[aria-current="page"] { color: #fff; }
.nav .nav-cta { margin-left: 8px; }
.nav .nav-cta .btn { white-space: nowrap; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line); color: #fff;
  width: 48px; height: 48px; padding: 0; cursor: pointer; position: relative;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: transform .2s, opacity .2s, top .2s;
}
.nav-toggle .bars { top: 23px; }
.nav-toggle .bars::before { top: -7px; left: 0; right: 0; }
.nav-toggle .bars::after { top: 7px; left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); background: var(--red); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); background: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; min-height: 50px;
  font-family: var(--f-head); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; border-radius: 0;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  line-height: 1.1; text-align: center;
}
.btn .arr { display: inline-block; width: 16px; height: 2px; background: currentColor; position: relative; transition: width .15s; }
.btn .arr::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transform-origin: center; }
.btn:hover .arr { width: 22px; }
.btn-primary { background: var(--red); color: #fff; border-bottom: 3px solid var(--red-dark); }
.btn-primary:hover { background: #f23a3f; }
.btn-outline { background: transparent; color: #fff; border-color: var(--steel-2); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn-dark:hover { background: var(--gun-2); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 16px; min-height: 42px; font-size: 13.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Common type pieces ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--red); flex-shrink: 0; }
.section--light .eyebrow, .section--pale .eyebrow { color: var(--ink-2); }

.h-display { font-size: clamp(2.3rem, 4.6vw, 4.1rem); text-transform: uppercase; letter-spacing: .005em; }
.h-section { font-size: clamp(1.8rem, 3.1vw, 2.6rem); text-transform: uppercase; }
.h-card { font-size: 1.45rem; text-transform: uppercase; letter-spacing: .03em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--steel-light); max-width: 62ch; }
.section--light .lead, .section--pale .lead { color: var(--ink-2); }
.mono { font-family: var(--f-mono); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(180deg, rgba(11,11,12,.0) 60%, rgba(11,11,12,.9) 100%),
    url("../assets/img/toolpath-bg.svg") center/cover no-repeat,
    radial-gradient(1200px 520px at 80% 30%, #272b30 0%, #15171a 55%, #0b0b0c 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; padding: 76px 0 70px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .h-name { display: block; }
.hero h1 .h-sub { display: block; font-size: .36em; color: var(--steel-light); letter-spacing: .04em; margin-top: 18px; line-height: 1.2; font-weight: 600; }
.hero h1 .h-sub em { font-style: normal; color: #fff; box-shadow: inset 0 -3px 0 var(--red); }
.hero .lead { margin-bottom: 30px; }
.hero-meta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.hero-meta span::before { content: "// "; color: var(--red); }

.hero-visual { position: relative; }
.hero-logo-plate {
  position: relative; background: linear-gradient(180deg, #000, #0c0d0f); border: 1px solid var(--line); padding: 26px 30px;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-plate img { width: min(100%, 440px); }
.hero-logo-plate::before, .hero-logo-plate::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--red); }
.hero-logo-plate::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.hero-logo-plate::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.hero-figure { margin: 18px 0 0; border: 1px solid var(--line); background: var(--black-2); }
.hero-figure img { width: 100%; }
.fig-cap { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-2); padding: 10px 14px; border-top: 1px solid var(--line); background: var(--black-2); }

.ruler {
  height: 22px; position: relative; z-index: 1; color: var(--steel);
  background:
    repeating-linear-gradient(90deg, var(--steel-2) 0 1px, transparent 1px 12px) left bottom / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 60px) left bottom / 100% 14px no-repeat;
  opacity: .55;
}
.thread-rule { height: 14px; background: repeating-linear-gradient(115deg, #2b3036 0 2px, #0b0b0c 2px 9px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.thread-rule::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 120px; background: var(--red); }

/* ---------- Category strip ---------- */
.strip { background: var(--steel-light); border-bottom: 1px solid #b6bcc2; }
.strip .container { display: grid; grid-template-columns: repeat(7, 1fr); }
.strip a {
  text-align: center; padding: 18px 8px; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head); font-weight: 700; font-size: 13.5px; letter-spacing: .09em; text-transform: uppercase; line-height: 1.2;
  color: var(--ink); text-decoration: none; border-left: 1px solid #b6bcc2;
}
.strip a:last-child { border-right: 1px solid #b6bcc2; }
.strip a:hover { background: var(--black); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; position: relative; }
.section--dark { background: var(--black); color: #fff; }
.section--gun {
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 48px 100%,
    var(--gun);
  color: #fff;
}
.section--light {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.45) 0 1px, rgba(0,0,0,.025) 1px 3px),
    linear-gradient(180deg, #e9ebee, #d9dde1);
  color: var(--ink);
}
.section--pale { background: var(--white); color: var(--ink); }
.section-head { max-width: 880px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .lead { margin-top: 12px; }
.section-num { font-family: var(--f-mono); color: var(--red); letter-spacing: .12em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }
.split.rev > :first-child { order: 2; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; background: var(--gun); color: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--red); }
.card .card-img { aspect-ratio: 16 / 10; overflow: hidden; background: #121417; border-bottom: 1px solid var(--line); }
.card .card-img img { width: 100%; height: 100%; object-fit: contain; }
.card .card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card .card-idx { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--red); margin-bottom: 8px; }
.card p { color: var(--steel-light); font-size: 15.5px; margin-bottom: 18px; }
.card .card-link { margin-top: auto; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13.5px; display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.card .card-link .arr { display: inline-block; width: 16px; height: 2px; background: var(--red); position: relative; }
.card .card-link .arr::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: rotate(45deg); }

.card--light { background: #fff; color: var(--ink); border-color: #c4c9ce; }
.card--light p { color: var(--ink-2); }
.card--light .card-link { color: var(--ink); }
.card--flat:hover { transform: none; border-color: var(--line); }
.card--light.card--flat:hover { border-color: #c4c9ce; }

/* spec-free feature tile (text only) */
.tile { background: #fff; border: 1px solid #c4c9ce; padding: 28px 26px 30px; position: relative; }
.tile::before { content: ""; position: absolute; left: -1px; top: -1px; width: 38px; height: 4px; background: var(--red); }
.tile h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .6em; }
.tile p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.tile .tile-n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--ink-2); display: block; margin-bottom: 10px; }
.tile--dark { background: var(--gun); border-color: var(--line); color: #fff; }
.tile--dark p { color: var(--steel-light); }
.tile--dark .tile-n { color: var(--steel); }

/* ---------- Flow diagram ---------- */
.flow { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: stretch; margin-bottom: 44px; }
.flow-node { border: 1px solid var(--line); background: var(--gun); padding: 24px 22px; position: relative; }
.flow-node--mid { background: #000; border-color: var(--steel-2); }
.flow-node .mono { font-size: 12px; letter-spacing: .14em; color: var(--red); display: block; margin-bottom: 8px; text-transform: uppercase; }
.flow-node h3 { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 8px; }
.flow-node p { margin: 0; color: var(--steel-light); font-size: 15px; }
.flow-link { display: flex; align-items: center; justify-content: center; }
.flow-link span { display: block; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--steel) 0 6px, transparent 6px 11px); position: relative; }
.flow-link span::after { content: ""; position: absolute; right: -1px; top: -5px; width: 10px; height: 10px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: rotate(45deg); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.step { padding: 26px 26px 28px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step .step-n { font-family: var(--f-head); font-size: 3rem; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 12px; display: block; }
.step h3 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 8px; }
.step p { margin: 0; color: var(--steel-light); font-size: 15px; }
.section--light .steps, .section--pale .steps { border-color: #b6bcc2; background: #fff; }
.section--light .step, .section--pale .step { border-color: #c4c9ce; }
.section--light .step p, .section--pale .step p { color: var(--ink-2); }

/* ---------- Lists ---------- */
.ticks li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid rgba(255,255,255,.12); color: var(--steel-light); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 20px; width: 14px; height: 2px; background: var(--red); }
.ticks li strong { color: #fff; font-weight: 600; }
.section--light .ticks li, .section--pale .ticks li { border-color: rgba(0,0,0,.14); color: var(--ink-2); }
.section--light .ticks li strong, .section--pale .ticks li strong { color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--steel-2); color: var(--steel-light); }
.section--light .tags li, .section--pale .tags li { border-color: #8b929a; color: var(--ink-2); }

/* ---------- Figures ---------- */
.figure { border: 1px solid var(--line); background: var(--black-2); position: relative; }
.figure img { width: 100%; }
.figure--light { border-color: #b6bcc2; }

/* ---------- Product blocks ---------- */
.product-block { display: grid; grid-template-columns: 5fr 7fr; gap: 0; border: 1px solid var(--line); background: var(--gun); color: #fff; margin-bottom: 26px; scroll-margin-top: calc(var(--header-h) + 24px); }
.product-block .pb-img { background-color: #121417; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 40px 40px; border-right: 1px solid var(--line); display: flex; align-items: center; }
.product-block .pb-img img { width: 100%; height: 100%; object-fit: contain; }
.product-block .pb-body { padding: 34px 34px 34px; }
.product-block .pb-idx { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: var(--red); display: block; margin-bottom: 10px; }
.product-block h3 { font-size: 1.85rem; text-transform: uppercase; margin-bottom: 14px; }
.product-block p { color: var(--steel-light); }
.product-block .pb-sub { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin: 20px 0 10px; }
.product-block:nth-of-type(even) { grid-template-columns: 7fr 5fr; }
.product-block:nth-of-type(even) .pb-img { order: 2; border-right: 0; border-left: 1px solid var(--line); }

.section--light .product-block .ticks li, .section--pale .product-block .ticks li { color: var(--steel-light); border-color: rgba(255,255,255,.12); }
.section--light .product-block .ticks li strong, .section--pale .product-block .ticks li strong { color: #fff; }

/* ---------- Notice ---------- */
.notice { border: 1px solid #b6bcc2; border-left: 4px solid var(--red); background: #fff; padding: 20px 24px; color: var(--ink-2); font-size: 15.5px; }
.notice strong { color: var(--ink); }
.notice--dark { background: var(--gun); border-color: var(--line); border-left-color: var(--red); color: var(--steel-light); }
.notice--dark strong { color: #fff; }

/* ---------- Table ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; border: 1px solid #b6bcc2; }
.data-table th, .data-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid #d3d7db; vertical-align: top; }
.data-table thead th { background: var(--black); color: #fff; font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 3px solid var(--red); }
.data-table tbody th { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; width: 30%; color: var(--ink); }
.data-table td { color: var(--ink-2); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(900px 400px at 85% 0%, #272b30, #121417 60%, #0b0b0c); color: #fff; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero .container { position: relative; z-index: 1; padding-top: 58px; padding-bottom: 58px; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); text-transform: uppercase; margin-bottom: 18px; }
.crumbs { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 22px; }
.crumbs a { text-decoration: none; color: var(--steel-light); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { color: var(--red); margin: 0 8px; }

/* ---------- Anchor sub-nav ---------- */
.subnav { background: var(--black); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 50; }
.subnav .container { display: flex; overflow-x: auto; scrollbar-width: thin; }
.subnav a { padding: 15px 18px; white-space: nowrap; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); text-decoration: none; border-bottom: 2px solid transparent; }
.subnav a:hover { color: #fff; border-bottom-color: var(--red); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.info-card { background: var(--black); color: #fff; border: 1px solid var(--line); padding: 34px 32px; position: relative; }
.info-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--red) 0 90px, var(--gun-3) 90px); }
.info-card h2 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 20px; }
.info-card address { font-style: normal; font-size: 1.05rem; line-height: 1.7; margin-bottom: 24px; color: var(--steel-light); }
.info-card address strong { color: #fff; display: block; font-family: var(--f-head); letter-spacing: .06em; text-transform: uppercase; font-size: 1.15rem; margin-bottom: 4px; }
.info-list li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.info-list .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.info-list a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--red); word-break: break-word; }
.info-list a:hover { background: var(--red); }

.form-card { background: #fff; border: 1px solid #b6bcc2; padding: 34px 32px 36px; position: relative; color: var(--ink); }
.form-card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 80px; height: 4px; background: var(--red); }
.form-card h2 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: 8px; }
.form-card .form-intro { color: var(--ink-2); font-size: 15.5px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 7px; font-weight: 600; }
.field label .req { color: var(--red); }
.field label .opt { color: var(--steel-2); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; background: var(--steel-pale); border: 1px solid #aeb4bb; border-bottom: 2px solid #6d747b; border-radius: 0; font-size: 16px; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--ink); border-bottom-color: var(--red); box-shadow: 0 2px 0 var(--red); }
.field .hint { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-note { font-size: 13.5px; color: var(--ink-2); max-width: 52ch; }
.form-status { margin-top: 18px; padding: 14px 16px; border: 1px solid #b6bcc2; border-left: 4px solid var(--ink); background: var(--steel-pale); font-size: 15px; display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { border-left-color: #1e7a3c; }
.form-status.err { border-left-color: var(--red); }

.form-card--dark { background: var(--gun); border-color: var(--line); color: #fff; }
.form-card--dark .form-intro { color: var(--steel-light); }
.form-card--dark .field label { color: var(--steel-light); }
.form-card--dark .field input, .form-card--dark .field select, .form-card--dark .field textarea { background: var(--black); border-color: var(--line); border-bottom-color: var(--steel-2); color: #fff; }
.form-card--dark .field input:focus, .form-card--dark .field select:focus, .form-card--dark .field textarea:focus { background: #000; border-color: var(--steel); border-bottom-color: var(--red); }
.form-card--dark .form-note { color: var(--steel); }
.form-card--dark .form-status { background: var(--black); border-color: var(--line); color: var(--steel-light); }

/* ---------- Legal / prose ---------- */
.legal { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid #b6bcc2; background: #fff; padding: 22px 22px 16px; }
.toc h2 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; font-weight: 600; }
.toc li a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid #c4c9ce; font-size: 14.5px; text-decoration: none; color: var(--ink-2); }
.toc li a:hover { color: var(--ink); border-left-color: var(--red); }
.prose { max-width: 78ch; }
.prose h2 { font-size: 1.7rem; text-transform: uppercase; margin: 2.1em 0 .6em; padding-top: .9em; border-top: 1px solid #b6bcc2; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h2 .sn { color: var(--red); font-family: var(--f-mono); font-size: .62em; letter-spacing: .1em; margin-right: 10px; vertical-align: .18em; }
.prose p, .prose li { color: #2a3036; }
.prose ul { margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 24px; margin-bottom: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 2px; background: var(--red); }
.prose a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose .caps { text-transform: uppercase; font-size: .94em; letter-spacing: .01em; }
.updated { display: inline-block; font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-light); border: 1px solid var(--steel-2); padding: 8px 14px; margin-top: 8px; }
.updated::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); margin-right: 10px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; padding: 50px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(0,0,0,.07) 0 2px, transparent 2px 12px); pointer-events: none; }
.cta-band .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); text-transform: uppercase; margin: 0; max-width: 24ch; }
.cta-band p { margin: 8px 0 0; max-width: 56ch; color: #ffe6e6; }
.cta-band .btn-dark { border-color: #000; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--steel-light); border-top: 1px solid var(--line); position: relative; }
.site-footer .footer-main { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.7fr; gap: 44px; padding-top: 64px; padding-bottom: 48px; }
.site-footer h2 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); font-weight: 500; margin-bottom: 16px; }
.site-footer h2::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); margin-right: 10px; }
.footer-brand img { height: 74px; width: auto; margin-bottom: 18px; }
.footer-brand .biz { font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .07em; color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: 15px; color: var(--steel); max-width: 34ch; }
.site-footer address { font-style: normal; font-size: 15.5px; line-height: 1.75; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { text-decoration: none; color: var(--steel-light); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.footer-contact li { display: grid; grid-template-columns: 54px 1fr; gap: 8px; font-size: 15.5px; }
.footer-contact .k { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-2); padding-top: 3px; }
.footer-contact a { word-break: break-word; }
.footer-bar { border-top: 1px solid var(--line); padding: 20px 0 26px; }
.footer-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--steel-2); }
.footer-bar nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: flex; align-items: center; }
.nf .code { font-family: var(--f-head); font-size: clamp(5rem, 16vw, 11rem); font-weight: 700; line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--steel-2); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .nav a.nav-link::after { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1260px) {
  .nav a.nav-link { padding: 10px 6px; font-size: 13px; letter-spacing: .05em; }
  .nav a.nav-link::after { left: 6px; right: 6px; }
  .nav .nav-cta { margin-left: 4px; }
}

@media (max-width: 1180px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .brand img { height: 48px; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border-bottom: 3px solid var(--red);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease, visibility 0s linear .3s;
  }
  .js .nav.is-open { max-height: 80vh; overflow-y: auto; visibility: visible; transition: max-height .3s ease; }
  .nav a.nav-link { padding: 17px var(--gutter); font-size: 16px; border-top: 1px solid var(--line); }
  .nav a.nav-link::after { left: var(--gutter); right: auto; width: 36px; bottom: 10px; }
  .nav .nav-cta { margin: 0; padding: 18px var(--gutter) 22px; border-top: 1px solid var(--line); }
  .nav .nav-cta .btn { width: 100%; }
  .no-js .nav { flex-wrap: wrap; padding-bottom: 10px; }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .nav-toggle { display: none; }

}

@media (max-width: 1100px) {
  .strip .container { grid-template-columns: repeat(4, 1fr); }
  .strip a { border-bottom: 1px solid #b6bcc2; }
}

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 52px; }
  .hero-visual { max-width: 720px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.rev > :first-child { order: 0; }
  .legal { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
  .product-block, .product-block:nth-of-type(even) { grid-template-columns: 1fr; }
  .product-block .pb-img, .product-block:nth-of-type(even) .pb-img { order: 0; border: 0; border-bottom: 1px solid var(--line); }
  .product-block .pb-img img { aspect-ratio: 16/9; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
}

@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; }
  .flow-link { height: 38px; }
  .flow-link span { width: 2px; height: 100%; background: repeating-linear-gradient(180deg, var(--steel) 0 6px, transparent 6px 11px); }
  .flow-link span::after { right: -5px; top: auto; bottom: -1px; transform: rotate(135deg); }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .section--light .step, .section--pale .step { border-bottom-color: #c4c9ce; }
  .strip .container { padding: 0; grid-template-columns: repeat(2, 1fr); }
  .strip a { border-bottom: 1px solid #b6bcc2; padding: 14px 10px; }
  .strip a:nth-child(odd) { border-left: 0; }
  .strip a:last-child { grid-column: 1 / -1; border-right: 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { font-size: 16.5px; }
  .topbar .tb-addr { display: none; }
  .topbar .container { justify-content: center; }
  .brand-text { font-size: 11.5px; padding-left: 10px; max-width: 132px; letter-spacing: .06em; }
  .brand-text span { display: none; }
  .topbar .tb-email { display: none; }
  .brand { gap: 10px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .site-footer .footer-main { grid-template-columns: 1fr; gap: 34px; padding-top: 48px; padding-bottom: 34px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card, .info-card { padding: 26px 20px 28px; }
  .product-block .pb-body { padding: 24px 20px 26px; }
  .info-list li { grid-template-columns: 1fr; gap: 2px; }
  .btn-row .btn { width: 100%; }
  .hero-logo-plate { padding: 18px; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table tbody th { width: 100%; background: var(--steel-pale); border-bottom: 0; padding-bottom: 6px; }
  .data-table td { padding-top: 6px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .cta-band .btn-row, .cta-band .btn-row .btn { width: 100%; }
  .hero-meta { gap: 8px 18px; }
}

@media (max-width: 340px) {
  .brand-text { display: none; }
}

@media print {
  .topbar, .site-header, .nav-toggle, .cta-band, .subnav { display: none; }
  body { background: #fff; color: #000; }
}
