/* Ironwire Systems. Hand-written CSS, no framework.
   Layout: a cross-section of the stack, pixel to silicon, joined by one copper wire. */

@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0a0c0f;
  --bg-2: #0e1115;
  --panel: #12161b;
  --line: #1d232b;
  --line-2: #2a313b;
  --ink: #eef0f2;
  --ink-2: #b4bac3;
  --muted: #7d8590;
  --copper: #d98b5f;
  --copper-hi: #f3c7a2;
  --copper-lo: #a35a33;
  --on-copper: #160b05;
  --ok: #5fd3a0;
  --grid: rgba(255, 255, 255, .03);
  --glow: rgba(217, 139, 95, .16);
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, .75);
  --grain-opacity: .06;

  --display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 44px);
  --radius: 16px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f3ef; --bg-2: #ecebe5; --panel: #ffffff; --line: #e0ddd5; --line-2: #cfcbc1;
    --ink: #111317; --ink-2: #3b3f46; --muted: #6a6f78;
    --copper: #b4643a; --copper-hi: #8f4723; --copper-lo: #d08a5f; --on-copper: #ffffff; --ok: #1f8a5b;
    --grid: rgba(0, 0, 0, .035); --glow: rgba(180, 100, 58, .12);
    --shadow: 0 40px 80px -48px rgba(40, 30, 20, .35); --grain-opacity: .035;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f3ef; --bg-2: #ecebe5; --panel: #ffffff; --line: #e0ddd5; --line-2: #cfcbc1;
  --ink: #111317; --ink-2: #3b3f46; --muted: #6a6f78;
  --copper: #b4643a; --copper-hi: #8f4723; --copper-lo: #d08a5f; --on-copper: #ffffff; --ok: #1f8a5b;
  --grid: rgba(0, 0, 0, .035); --glow: rgba(180, 100, 58, .12);
  --shadow: 0 40px 80px -48px rgba(40, 30, 20, .35); --grain-opacity: .035;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--copper); color: var(--on-copper); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--copper); color: var(--on-copper); padding: 8px 14px; border-radius: 6px; z-index: 200; }
.skip:focus { left: 8px; }
.copper-text { background: linear-gradient(100deg, var(--copper-hi), var(--copper) 45%, var(--copper-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-word { font: 700 15px/1 var(--display); letter-spacing: .2em; white-space: nowrap; }
.brand-word span { color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--on-copper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 14px 22px; border-radius: 999px;
  background: linear-gradient(180deg, var(--copper-hi), var(--copper) 55%, var(--copper-lo));
  color: var(--on-copper); font: 600 15px/1 var(--body); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--copper-hi) 60%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 24px -10px var(--glow);
  transition: transform .15s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 40px -12px var(--copper); }
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn.sm { padding: 10px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 70% at 72% 38%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 72% 38%, #000 25%, transparent 75%);
}
.hero::after { content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -340px; pointer-events: none; background: radial-gradient(circle, var(--glow), transparent 60%); }
.hero-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px); align-items: center;
  padding-block: clamp(80px, 11vw, 148px) clamp(72px, 9vw, 120px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); margin: 0 0 30px;
  padding: 7px 14px 7px 11px; border: 1px solid var(--line-2); border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; font-feature-settings: "ss01"; }
h1 { font-size: clamp(44px, 6.6vw, 88px); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.6vw, 20.5px); color: var(--ink-2); max-width: 52ch; margin: 30px 0 18px; }
.range { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.range li { font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--panel) 60%, transparent); }
.range li:first-child, .range li:last-child { color: var(--copper); border-color: color-mix(in srgb, var(--copper) 45%, var(--line-2)); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Schematic */
.schematic {
  margin: 0; position: relative; border-radius: 20px; padding: 1px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--copper) 70%, transparent), var(--line-2) 35%, var(--line) 65%, color-mix(in srgb, var(--copper) 40%, transparent));
  box-shadow: var(--shadow);
}
.schematic-inner { border-radius: 19px; overflow: hidden; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.schematic-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.lights { display: flex; gap: 6px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.schematic svg.wiring { width: 100%; height: auto; }
.wire { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.pulse { fill: none; stroke: var(--copper-hi); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 10 240; animation: flow 3.2s linear infinite; filter: drop-shadow(0 0 5px var(--copper)); }
.pulse.d1 { animation-delay: -.6s; } .pulse.d2 { animation-delay: -1.3s; } .pulse.d3 { animation-delay: -2s; } .pulse.d4 { animation-delay: -2.6s; } .pulse.d5 { animation-delay: -1.9s; }
@keyframes flow { from { stroke-dashoffset: 250; } to { stroke-dashoffset: 0; } }
.node rect { fill: var(--bg); stroke: var(--line-2); }
.node text { fill: var(--ink-2); font: 500 11px var(--mono); letter-spacing: .05em; }
.node .sub { fill: var(--muted); font-size: 9.5px; }
.core rect { fill: var(--panel); stroke: var(--copper); }
.core text { fill: var(--ink); font: 700 12px var(--mono); letter-spacing: .14em; }
.core .core-sub { font: 400 9.5px var(--mono); letter-spacing: .06em; fill: var(--muted); }
.core .ring { fill: none; stroke: var(--copper); opacity: .35; animation: ring 3s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ring { 0% { opacity: .45; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
.port { fill: var(--copper); }
.log {
  border-top: 1px solid var(--line); padding: 12px 18px; height: 118px; overflow: hidden;
  font: 400 12px/1.75 var(--mono); color: var(--muted);
  mask-image: linear-gradient(180deg, transparent, #000 35%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%);
}
.log p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log .t { color: var(--line-2); margin-right: 10px; }
.log .ok { color: var(--ok); }
.log .ac { color: var(--copper); }
.schematic-foot { padding: 9px 18px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; }

/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 28px 38px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 600 clamp(32px, 3.6vw, 48px)/1 var(--display); letter-spacing: -.03em; margin-bottom: 12px; }
.stat b sup { font-size: .45em; color: var(--copper); vertical-align: top; margin-left: 2px; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------- Sections ---------- */
section.block { padding-block: clamp(88px, 11vw, 148px); border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 240px 1fr; gap: 32px; margin-bottom: clamp(48px, 6vw, 72px); }
.sec-label { color: var(--copper); padding-top: 12px; margin: 0; }
.sec-label span { color: var(--muted); }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.032em; max-width: 19ch; text-wrap: balance; }
.sec-intro { color: var(--ink-2); max-width: 60ch; margin: 22px 0 0; font-size: 18.5px; }

/* ---------- The stack (signature section) ---------- */
.stack { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; padding-block: 52px; }
/* Axis: a labelled terminal at each end of the wire, top (pixel) and bottom (silicon). */
.stack-axis { position: absolute; inset: 0; pointer-events: none; color: var(--muted); }
.stack-axis::before { content: ""; position: absolute; top: 52px; bottom: 52px; left: 76px; border-left: 1px solid var(--line); }
.stack-axis span { position: absolute; left: 0; right: 0; height: 52px; display: flex; align-items: center; gap: 14px; padding-left: 33px; }
.stack-axis span::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--copper); box-shadow: 0 0 0 4px var(--glow); }
.stack-axis span:first-child { top: 0; border-bottom: 1px solid var(--line); }
.stack-axis span:last-child { bottom: 0; border-top: 1px solid var(--line); }
.stack-axis b { color: var(--ink); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.stack-wire { position: absolute; top: 26px; bottom: 26px; left: 37px; width: 2px; background: linear-gradient(180deg, var(--copper-hi), var(--copper) 50%, var(--copper-lo)); border-radius: 2px; }
.stack-wire::after { content: ""; position: absolute; left: -3px; width: 8px; height: 46px; border-radius: 8px; background: linear-gradient(180deg, transparent, var(--copper-hi), transparent); filter: blur(1px); animation: down 4.5s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes down { from { top: -10%; } to { top: 100%; } }
.layers { margin: 0 0 0 76px; padding: 0; list-style: none; }
.layer {
  position: relative; display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px; align-items: center; padding: 26px 32px 26px 0; border-bottom: 1px solid var(--line);
  transition: background .25s;
}
.layer:last-child { border-bottom: 0; }
.layer::before { content: ""; position: absolute; left: -46px; top: 50%; width: 46px; height: 1px; background: var(--line-2); }
.layer::after { content: ""; position: absolute; left: -43px; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--bg-2); border: 1.5px solid var(--copper); transition: background .2s, box-shadow .2s; }
.layer:hover { background: var(--panel); }
.layer:hover::after { background: var(--copper); box-shadow: 0 0 0 5px var(--glow); }
.layer .lvl { font: 500 12px var(--mono); color: var(--muted); text-align: right; letter-spacing: .06em; }
.layer h3 { font-size: clamp(20px, 2vw, 25px); letter-spacing: -.02em; line-height: 1.15; }
.layer p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.layer .tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; justify-content: flex-end; }
.layer .tags li { font: 500 11.5px/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 8px; white-space: nowrap; }

/* Scale of job */
.scale { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.scale-track { position: relative; }
.scale-bar { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--copper-lo), var(--copper) 40%, var(--copper-hi)); box-shadow: 0 0 30px -6px var(--copper); }
.scale-ticks { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.scale-ticks li { position: relative; padding-top: 22px; font-size: 15px; color: var(--ink-2); }
.scale-ticks li::before { content: ""; position: absolute; top: -10px; left: 0; width: 2px; height: 22px; background: var(--ink); border-radius: 2px; }
.scale-ticks li:last-child { text-align: right; }
.scale-ticks li:last-child::before { left: auto; right: 0; }
.scale-ticks b { display: block; font: 600 17px/1.3 var(--display); color: var(--ink); margin-bottom: 4px; }
.scale-note { margin: 28px 0 0; font: 600 clamp(22px, 2.4vw, 30px)/1.2 var(--display); letter-spacing: -.02em; }

/* Engagements */
.engs { display: grid; gap: 18px; }
.eng { display: grid; grid-template-columns: 280px repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color .25s; }
.eng:hover { border-color: color-mix(in srgb, var(--copper) 50%, var(--line)); }
.eng > div { padding: 30px; }
.eng > div + div { border-left: 1px solid var(--line); }
.eng-title { background: var(--bg-2); }
.eng-title .mono { color: var(--copper); display: block; margin-bottom: 14px; }
.eng-title h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.eng h4 { margin: 0 0 9px; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eng p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 34px 34px 34px 0; border-bottom: 1px solid var(--line); }
.principle:nth-child(odd) { border-right: 1px solid var(--line); }
.principle:nth-child(even) { padding-left: 34px; }
.principle .n { font: 600 13px/2 var(--mono); color: var(--copper); }
.principle h3 { font-size: 22px; margin-bottom: 8px; letter-spacing: -.02em; }
.principle p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Process */
.spacer { height: clamp(72px, 9vw, 112px); }
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: linear-gradient(90deg, var(--copper), var(--line-2) 45%, var(--line-2)); }
.step { position: relative; counter-increment: step; }
.step::before { content: "0" counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 26px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); font: 600 12px var(--mono); position: relative; }
.step:first-child::before { border-color: var(--copper); color: var(--copper); }
.step h3 { font-size: 21px; margin-bottom: 8px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.step .mono { display: block; color: var(--muted); margin-top: 14px; }

/* Craft panel */
.craft { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; padding: 1px; background: linear-gradient(140deg, color-mix(in srgb, var(--copper) 55%, transparent), var(--line) 40%, var(--line) 70%, color-mix(in srgb, var(--copper) 35%, transparent)); }
.craft-copy, .spec { background: var(--panel); }
.craft-copy { padding: clamp(30px, 4vw, 52px); border-radius: 15px 0 0 15px; }
.craft-copy h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.08; margin: 14px 0 16px; letter-spacing: -.025em; }
.craft-copy p { color: var(--ink-2); margin: 0; }
.craft-copy .mono { color: var(--copper); }
.spec { margin: 0; padding: clamp(30px, 4vw, 52px); background: var(--bg-2); border-radius: 0 15px 15px 0; font: 400 13.5px/1 var(--mono); }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); white-space: nowrap; }
.spec dd { margin: 0; color: var(--ink); text-align: right; }
.spec dd .ok { color: var(--ok); }

/* Contact */
.contact { padding-block: clamp(96px, 12vw, 160px); position: relative; overflow: hidden; }
.contact::after { content: ""; position: absolute; width: 1000px; height: 1000px; left: 50%; bottom: -700px; transform: translateX(-50%); background: radial-gradient(circle, var(--glow), transparent 60%); pointer-events: none; }
.contact-inner { position: relative; z-index: 1; text-align: center; }
.contact h2 { margin: 20px auto 24px; max-width: 15ch; font-size: clamp(40px, 6vw, 80px); }
.contact p { color: var(--ink-2); margin: 0 auto 40px; max-width: 54ch; font-size: 18.5px; }
.mail-link {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  font: 600 clamp(20px, 2.6vw, 30px)/1 var(--display); letter-spacing: -.02em;
  padding: 22px 30px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.mail-link:hover { border-color: var(--copper); transform: translateY(-2px); box-shadow: 0 20px 50px -20px var(--copper); }
.mail-link svg { width: 22px; height: 22px; color: var(--copper); }
.contact-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Gentle entrance; content is always visible at rest */
.js .reveal { transform: translateY(14px); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .schematic { max-width: 660px; }
  .sec-head, .scale { grid-template-columns: 1fr; gap: 14px; }
  .sec-label { padding-top: 0; }
  .layer { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.3fr); }
  .layer .tags { grid-column: 2 / -1; justify-content: flex-start; }
  .eng { grid-template-columns: 1fr 1fr; }
  .eng-title { grid-column: 1 / -1; }
  .eng > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .eng > div:nth-child(3) { border-left: 1px solid var(--line); }
  .eng > div:nth-child(4) { grid-column: 1 / -1; }
  .craft { grid-template-columns: 1fr; }
  .craft-copy { border-radius: 15px 15px 0 0; }
  .spec { border-radius: 0 0 15px 15px; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .nav a:not(.btn) { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 16px 26px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stack-axis::before { left: 44px; }
  .stack-axis span { padding-left: 16px; }
  .stack-wire { left: 20px; }
  .layers { margin-left: 44px; }
  .layer { grid-template-columns: 1fr; gap: 8px; padding: 24px 20px 24px 18px; }
  .layer::before { left: -22px; width: 22px; }
  .layer::after { left: -26px; top: 32px; }
  .layer::before { top: 36px; }
  .layer .lvl { text-align: left; }
  .layer .tags { grid-column: auto; margin-top: 6px; }
  .scale-ticks { grid-template-columns: 1fr; gap: 0; }
  .scale-ticks li, .scale-ticks li:last-child { text-align: left; padding: 14px 0 14px 22px; }
  .scale-ticks li::before, .scale-ticks li:last-child::before { top: 18px; left: 0; right: auto; width: 10px; height: 2px; }
  .eng { grid-template-columns: 1fr; }
  .eng > div:nth-child(n) { border-left: 0; grid-column: auto; }
  .eng > div + div { border-top: 1px solid var(--line); }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(even) { padding: 26px 0; border-right: 0; grid-template-columns: 48px 1fr; }
  .principle:nth-child(odd) { border-right: 0; }
  .process { grid-template-columns: 1fr; gap: 30px; }
  .process::before { left: 19px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--copper), var(--line-2) 30%); }
  .step { padding-left: 64px; }
  .step::before { position: absolute; left: 0; top: -6px; margin: 0; }
  .mail-link { padding: 16px 20px; font-size: 18px; gap: 10px; }
  .schematic-foot span:last-child { display: none; }
}
@media (max-width: 420px) {
  .brand-word { font-size: 13px; letter-spacing: .14em; }
  .brand-mark { width: 26px; height: 26px; }
  .btn.sm { padding: 9px 13px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { transform: none; }
  .pulse { display: none; }
}
