/* ONEPIXEL — Hardware & IT page. Builds on style.css + about.css (same fonts, sizes, tokens). */
.hw-page main section[id] { scroll-margin-top: 80px; }

/* ---------- hero art (network topology) ---------- */
.hw-art { position: relative; width: 100%; aspect-ratio: 760 / 520; }
.hw-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hw-art .wires path { fill: none; stroke: #ff6a2b; stroke-width: 1.3; stroke-dasharray: 4 5; animation: dash 1.6s linear infinite; opacity: .85; }
.hw-art .node-float { animation: bob 6s ease-in-out infinite; }
.hw-art .node-float:nth-of-type(2n) { animation-duration: 7.4s; animation-delay: -2s; }
.hw-art .node-float:nth-of-type(3n) { animation-duration: 5.4s; animation-delay: -1s; }
.hw-node-label { position: absolute; z-index: 3; transform: translate(-50%, 0); white-space: nowrap; text-align: center; pointer-events: none; }
.hw-node-label b { display: block; color: #1b1e25; font: 700 clamp(10px, .95vw, 13px)/1.2 var(--mono); letter-spacing: .08em; }
.hw-node-label small { display: block; margin-top: 4px; color: #868b96; font: 500 clamp(10px, .9vw, 12px)/1.2 var(--mono); }
.hw-page .hw-stats-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; margin-top: 40px; }
.hw-stats-bar > div { padding: 18px 20px; border-right: 1px solid var(--line); }
.hw-stats-bar > div:last-child { border-right: 0; }
.hw-stats-bar b { display: block; font: 800 clamp(22px, 2.4vw, 32px)/1 Inter, sans-serif; letter-spacing: -.04em; color: var(--ink); }
.hw-stats-bar span { display: block; margin-top: 6px; color: var(--muted); font: 11px/1.5 var(--mono); }

/* ---------- services runner (reuses .ox-spec) ---------- */
.hw-panel-meta { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 clamp(16px, 2.5vw, 34px) 18px; }
.hw-panel-meta span { padding: 5px 12px; border: 1px solid #ffc2a455; border-radius: 999px; background: #ff5a0014; color: #ffb48a; font: 11px var(--m); }
.hw-service-cta { margin-top: 22px; }

/* ---------- topology lab ---------- */
.hw-lab { background: #fff; }
.hw-lab h2 { color: var(--ink); }
.hw-modes { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hw-modes button { padding: 10px 18px; border: 1px solid #dfe3e9; border-radius: 999px; background: #fff; color: #3f434c; font: 600 13px Inter, Arial, sans-serif; cursor: pointer; transition: .25s; }
.hw-modes button:hover { border-color: #ffb48a; }
.hw-modes button[aria-pressed="true"] { border-color: var(--orange); background: #fff8f3; color: #bd4709; box-shadow: 0 0 0 1px var(--orange); }
.hw-board { position: relative; padding: clamp(20px, 3vw, 36px); border: 1px solid #e3ded7; border-radius: 16px; background: radial-gradient(ellipse at 50% 40%, #ffead655, transparent 65%), linear-gradient(#e6e2dd66 1px, transparent 1px), linear-gradient(90deg, #e6e2dd66 1px, transparent 1px), #fafaf8; background-size: auto, 24px 24px, 24px 24px, auto; box-shadow: 0 20px 55px #3026190a; }
.hw-tiers { display: grid; gap: 0; }
.hw-tier { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 18px; padding: 14px 0; position: relative; }
.hw-tier + .hw-tier::before { content: ""; position: absolute; left: 75px; top: -14px; height: 28px; width: 1px; background: repeating-linear-gradient(0deg, #ff6a2b 0 4px, transparent 4px 8px); }
.hw-tier-h { color: #80796e; font: 700 11px var(--mono); letter-spacing: .12em; }
.hw-tier-h b { display: block; color: var(--orange); font-size: 13px; margin-bottom: 3px; }
.hw-devs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.hw-dev { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e3dfd9; border-radius: 12px; background: linear-gradient(135deg, #fff, #f7f6f3); box-shadow: 4px 5px 0 #dedbd54d; transition: .35s var(--ease); opacity: .45; filter: saturate(.3); }
.hw-dev i { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 8px; background: #fff0e5; color: var(--orange); font-size: 15px; }
.hw-dev b { display: block; font-size: 13px; color: var(--ink); }
.hw-dev small { display: block; margin-top: 2px; font: 10px var(--mono); color: #868b96; }
.hw-dev.on { opacity: 1; filter: none; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 14px 28px -18px #ff5a00aa; transform: translateY(-3px); }
.hw-readout { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 14px 18px; border-radius: 10px; background: #0f1318; color: #aab4be; font: 12px/1.6 var(--mono); }
.hw-readout b { color: #ff9b68; }
.hw-readout .ok { color: #75c994; }

/* ---------- AMC / build scope (CTA) ---------- */
.hw-page .ox-mods { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- FAQ ---------- */
.hw-faq { background: #f5f3ef; }
.hw-faq h2 { color: var(--ink); }
.hw-faq-list { max-width: 900px; border: 1px solid #e2ded7; border-radius: 14px; background: #fff; padding: 8px 24px; box-shadow: 0 18px 42px #29241d12; }
.hw-faq-list details { padding: 18px 0; border-bottom: 1px solid #e8e6e1; }
.hw-faq-list details:last-child { border-bottom: 0; }
.hw-faq-list summary { position: relative; padding-right: 34px; color: #252b33; font-size: 15px; font-weight: 600; line-height: 1.55; cursor: pointer; list-style: none; }
.hw-faq-list summary::-webkit-details-marker { display: none; }
.hw-faq-list summary::after { content: "+"; position: absolute; right: 0; top: -2px; color: #d96b20; font: 22px/1 var(--mono); }
.hw-faq-list details[open] summary { color: #a34b14; }
.hw-faq-list details[open] summary::after { content: "−"; }
.hw-faq-list p { margin-top: 12px; color: #626d78; font-size: 13px; line-height: 1.7; }
.hw-faq-list a { color: var(--orange); font-weight: 600; }

@media (max-width: 980px) {
  .hw-stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-stats-bar > div:nth-child(2) { border-right: 0; }
  .hw-stats-bar > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hw-tier { grid-template-columns: 1fr; gap: 8px; }
  .hw-tier + .hw-tier::before { left: 20px; }
}
@media (max-width: 720px) {
  .hw-node-label small { display: none; }
  .hw-page .ox-mods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hw-faq-list { padding: 4px 16px; }
  .hw-faq-list summary { font-size: 14px; }
  .hw-devs { grid-template-columns: 1fr 1fr; }
  .hw-modes { flex-wrap: nowrap; gap: 7px; width: 100%; max-width: 100%; margin-right: -4px; padding: 2px 4px 8px 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hw-modes::-webkit-scrollbar { display: none; }
  .hw-modes button { flex: 0 0 auto; min-height: 38px; padding: 9px 12px; font-size: 11px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-art .wires path, .hw-art .node-float { animation: none !important; }
}

/* ---------- fixes ---------- */
/* about.css gives .ox-stack headings a dark colour; this page uses the dark variant. */
.hw-page main .ox-stack .ox-head h2 { color: #fff; }
.hw-page main .ox-stack .ox-head h2 span { color: var(--orange); }
.hw-page main .ox-stack .ox-lede { color: #aab4be; }
.hw-page .ox-stack .ox-head .eyebrow { color: var(--orange); }
.hw-page .ox-stack .ox-head h2::after { display: none; }
.hw-page main .ox-pipe .ox-head h2::after { display: none; }
.hw-page .hw-stats-bar { margin-top: 0; }
.hw-page main > section[aria-label="Hardware and IT at a glance"] { padding-top: 0; padding-bottom: 0; border-bottom: 0; background: #fff; }
.hw-dev { opacity: .55; filter: none; }
.hw-dev.on { opacity: 1; }
.hw-board { overflow: hidden; }
@media (max-width: 980px) { .hw-tier-h { display: flex; gap: 8px; align-items: center; } .hw-tier-h b { margin: 0; } }

/* ---------- FAQ redesign ---------- */
.hw-page .hw-faq { background: #f5f3ef; padding: clamp(48px, 6vw, 90px) max(5vw, 24px); border-top: 1px solid var(--line); }
.hw-faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; max-width: 1240px; margin: 0 auto; }
.hw-faq-side { position: sticky; top: 100px; }
.hw-faq-side h2 { margin: 0; color: var(--ink); letter-spacing: -.055em; font-weight: 800; }
.hw-faq-side h2 span { color: var(--orange); }
.hw-page main .hw-faq-lede { margin: 18px 0 26px; max-width: 360px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.hw-faq-help { display: grid; gap: 10px; padding: 22px; border: 1px solid #1f262d; border-radius: 14px; background: #0f1318; box-shadow: 0 22px 44px -26px #000a; }
.hw-faq-help b { color: #fff; font-size: 15px; }
.hw-faq-help small { color: #aab4be; font-size: 12px; line-height: 1.6; }
.hw-faq-help .primary { justify-self: start; margin-top: 6px; }
.hw-faq-help .hw-faq-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }
.hw-faq-help .hw-faq-contacts .primary { justify-self: auto; margin: 0; padding: 9px 10px; font-size: 10px; white-space: nowrap; }
.hw-faq-mail { min-width: 0; color: #ff9b68; font: 10px var(--mono); white-space: nowrap; }
.hw-faq-list { display: grid; gap: 12px; max-width: none; padding: 0; border: 0; background: none; box-shadow: none; }
.hw-faq-list details { padding: 0; border: 1px solid #e2ded7; border-radius: 14px; background: #fff; box-shadow: 0 10px 26px -20px #29241d55; transition: border-color .25s, box-shadow .25s, transform .25s; overflow: hidden; }
.hw-faq-list details:hover { border-color: #ffc2a4; }
.hw-faq-list details[open] { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 22px 40px -28px #ff5a00aa; }
.hw-faq-list summary { display: flex; align-items: center; gap: 16px; padding: 18px 56px 18px 18px; color: #252b33; font-size: 15px; font-weight: 600; line-height: 1.5; }
.hw-faq-list summary em { flex: 0 0 auto; display: grid; place-items: center; min-width: 44px; height: 30px; border: 1px solid #ff5a0055; border-radius: 8px; background: #ff5a0010; color: #c24a06; font: 700 11px var(--mono); font-style: normal; letter-spacing: .06em; }
.hw-faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: #f5f3ef; color: #d96b20; font: 400 20px/1 var(--mono); transition: transform .3s, background .3s, color .3s; }
.hw-faq-list details[open] summary { color: #17191f; }
.hw-faq-list details[open] summary::after { content: "+"; transform: rotate(45deg); background: var(--orange); color: #fff; }
.hw-faq-list p { margin: 0; padding: 0 56px 20px 78px; color: #626d78; font-size: 13px; line-height: 1.75; }
@media (max-width: 980px) {
  .hw-faq-wrap { grid-template-columns: 1fr; }
  .hw-faq-side { position: static; }
}
@media (max-width: 720px) {
  .hw-faq-list summary { gap: 12px; padding: 16px 52px 16px 14px; font-size: 14px; }
  .hw-faq-list p { padding: 0 16px 18px; }
  .hw-faq-help { padding: 16px 12px; }
  .hw-faq-help .hw-faq-contacts { gap: 6px; }
  .hw-faq-help .hw-faq-contacts .primary { padding: 8px; font-size: 9px; }
  .hw-faq-mail { font-size: 8px; letter-spacing: -.04em; }
}
.hw-faq-list details:last-child { border-bottom: 1px solid #e2ded7; }
.hw-faq-list details[open]:last-child { border-bottom-color: var(--orange); }
