/* System Dynamics · sysdy.com · "Labeled head-end"
   One stylesheet, plain CSS, no build step. Tokens first, then base, then components in page order.
   Palette: Blank (page), Trace (tint), Riser (text + structure), Signal (status, focus, labels), Conduit (rules). */

/* ---------- Tokens ---------- */
:root {
  --blank: #FFFFFF;
  --trace: #EEF7FC;
  --riser: #142033;
  --riser-60: #5A6578;
  --riser-mid: #1B2A42;      /* rack unit fill */
  --riser-deep: #2C3C57;     /* unlit ports */
  --signal: #28ACE2;
  --signal-deep: #0B74A1;    /* the only cyan allowed as text on white, 5.2:1 */
  --conduit: #828486;
  --conduit-40: #CDCFD1;
  --conduit-20: #E6E7E8;
  --surface: #FAFBFC;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --display: "Archivo", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: "wdth" 118; --wide-2: "wdth" 110; --wide-3: "wdth" 105;

  --maxw: 1280px;
  --gutter: clamp(16px, 3.5vw, 40px);
  --section: clamp(64px, 7.5vw, 96px);
  --radius: 3px; --radius-panel: 4px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 84px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
body { margin: 0; background: var(--blank); color: var(--riser); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--riser); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--riser); color: var(--blank); padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { left: 16px; }
.wrap { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-variation-settings: var(--wide); font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.012em; }
h2 { font-variation-settings: var(--wide-2); font-size: clamp(28px, 3vw, 41px); line-height: 1.12; letter-spacing: -.008em; }
h3 { font-variation-settings: var(--wide-3); font-size: 21px; line-height: 1.25; }
h4 { font-variation-settings: var(--wide-3); font-size: 17px; line-height: 1.3; }
.lede { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--riser-60); max-width: 36em; }
.label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; font-weight: 500; color: var(--riser-60); margin: 0 0 var(--s4); }
.label b { font-weight: 600; color: var(--riser); background: var(--trace); padding: 3px 9px; border-radius: 2px; border-left: 3px solid var(--signal); }
.muted { color: var(--riser-60); }
.num { font-variant-numeric: tabular-nums; }
.textlink { font-weight: 500; box-shadow: inset 0 -2px 0 var(--signal); transition: box-shadow .25s var(--ease); }
.textlink:hover { box-shadow: inset 0 -1.2em 0 var(--trace), inset 0 -2px 0 var(--signal); }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--radius); font-family: var(--display); font-variation-settings: var(--wide-3); font-weight: 600; font-size: 15px; letter-spacing: .005em; line-height: 1; white-space: nowrap; position: relative; cursor: pointer; background: var(--riser); color: var(--blank); border: 1.5px solid var(--riser); transition: background .2s, color .2s, border-color .2s; }
.button::after { content: ""; position: absolute; left: -1.5px; right: -1.5px; bottom: -1.5px; height: 3px; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.button:hover::after, .button:focus-visible::after { transform: scaleX(1); }
.button.secondary { background: transparent; color: var(--riser); }
.button.secondary:hover { background: var(--trace); }
.button.inverse { background: var(--blank); color: var(--riser); border-color: var(--blank); }
.button.inverse.secondary { background: transparent; color: var(--blank); }
.button.inverse.secondary:hover { background: rgba(255,255,255,.08); }
.button.small { height: 40px; padding: 0 16px; font-size: 14px; }
.button[disabled], .button[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- Header + nav ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--blank); border-bottom: 1px solid var(--conduit-20); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: var(--s6); }
.brand svg { height: 40px; width: auto; }
/* The positioning line: an eyebrow in the hero on desktop, a small tag beside the logo in the header on phones */
.brand-tag { display: none; }
@media (max-width: 640px) {
  .brand-tag { display: block; font-size: 11px; line-height: 1.3; font-weight: 500; color: var(--riser-60); max-width: 170px; padding-left: var(--s3); border-left: 1px solid var(--conduit-40); margin-left: calc(-1 * var(--s2)); }
  .hero-eyebrow { display: none; }
}
@media (max-width: 360px) { .brand-tag { display: none; } }
.nav { display: flex; gap: var(--s5); margin-left: var(--s2); }
.nav a { font-size: 15px; font-weight: 500; white-space: nowrap; color: var(--riser-60); padding: 6px 0; box-shadow: inset 0 -2px 0 transparent; transition: color .2s, box-shadow .25s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--riser); box-shadow: inset 0 -2px 0 var(--signal); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s5); }
.header-phone { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; height: 40px; padding: 0 14px; background: var(--riser); color: var(--blank); border: 0; border-radius: var(--radius); font-family: var(--display); font-variation-settings: var(--wide-3); font-weight: 600; font-size: 14px; cursor: pointer; }
.menu { display: none; }
@media (max-width: 1140px) { .header-phone { display: none; } .nav { gap: var(--s4); } .nav a { font-size: 14px; } .header-row { gap: var(--s5); } }
@media (max-width: 900px) {
  .nav, .header-phone, .header-actions .button { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .menu.open { display: grid; align-content: start; gap: var(--s2); position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; overflow-y: auto; border-top: 1px solid var(--conduit-20); padding: var(--s4) var(--gutter) var(--s6); background: var(--blank); }
  .menu a { font-size: 18px; font-weight: 500; padding: 10px 0; border-bottom: 1px solid var(--conduit-20); }
  .menu a.button { display: inline-flex; border-bottom: 0; margin-top: var(--s4); justify-self: start; }
  .menu .menu-phone { font-weight: 600; border-bottom: 0; }
}
@media (max-width: 480px) { .brand svg { height: 30px; } :root { --header-h: 72px; } }

/* ---------- Hero ---------- */
.hero { padding: var(--section) 0; }
.hero.tinted { background: #F2F3F4; border-bottom: 1px solid var(--conduit-20); padding: var(--s7) 0 var(--s7); }  /* light neutral gray, between --surface and --conduit-20 */  /* home only: one light band under the header so the headline has an edge to sit on */
.hero.tinted .label { margin-bottom: var(--s2); }
.hero.tinted h1.h1-brand { margin-bottom: var(--s3); }
.hero.tinted .lede { margin-bottom: var(--s5); }
.hero.tinted .hero-proof { margin-top: var(--s5); padding-top: var(--s4); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero h1 { max-width: 14ch; margin-bottom: var(--s5); font-size: clamp(36px, 3.6vw, 52px); letter-spacing: -.015em; }
.hero .lede { margin-bottom: var(--s6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero-proof { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--conduit-20); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); font-size: 14px; line-height: 1.5; color: var(--riser-60); }
.hero-proof div { text-wrap: balance; padding-right: var(--s4); }
.hero-proof b { display: block; color: var(--riser); font-weight: 600; margin-bottom: 4px; }
.hero.simple { padding: var(--s8) 0 var(--s6); }
.hero.simple h1 { max-width: 18ch; }
.hero.simple .lede { margin: var(--s5) 0 0; max-width: 44em; }
.card .sheet { display: block; }
.sheet.mt-5 { margin-top: var(--s5); }
.nb { white-space: nowrap; }
/* Home tagline: logo gray and logo blue, italic second line, two thin angular blue lines framing the block (CSS-drawn, 2px,
   rounded corners, skewed to the italic angle). Lines draw on once over 600ms; reduced motion shows them static. */
.h1-brand, .hero h1.h1-brand { --tag-ink: var(--conduit); --tag-blue: var(--signal); --tag-w: 2px; --tag-skew: -22deg; font-weight: 800; letter-spacing: -.02em; line-height: 1; max-width: none; margin-bottom: var(--s5); font-size: clamp(34px, 3.05vw, 46px); }
.h1-brand .tag { position: relative; display: inline-block; padding: .34em .55em .3em .5em; }
.h1-brand .h1-a { display: block; color: var(--tag-ink); }
.h1-brand .h1-b { display: block; color: var(--tag-ink); font-style: italic; font-weight: 500; font-variation-settings: "wdth" 112; letter-spacing: -.01em; margin-top: .04em; }
.h1-brand .h1-b em { font-style: italic; font-weight: 800; color: var(--tag-blue); font-variation-settings: var(--wide); }
.h1-brand .tag::before, .h1-brand .tag::after { content: ""; position: absolute; pointer-events: none; border: 0 solid var(--tag-blue); transform: skewX(var(--tag-skew)); }
.h1-brand .tag::before { top: 0; left: .34em; width: 42%; height: .92em; border-top-width: var(--tag-w); border-left-width: var(--tag-w); border-top-left-radius: .18em; transform-origin: 0 0; animation: tag-draw-a .6s var(--ease) both; }
.h1-brand .tag::after { bottom: 0; right: .2em; width: 46%; height: .92em; border-bottom-width: var(--tag-w); border-right-width: var(--tag-w); border-bottom-right-radius: .18em; transform-origin: 100% 100%; animation: tag-draw-b .6s var(--ease) both; animation-delay: .15s; }
@keyframes tag-draw-a { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tag-draw-b { from { clip-path: inset(100% 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .h1-brand .tag::before, .h1-brand .tag::after { animation: none; } }
@media (max-width: 900px) { .h1-brand .tag { padding-left: .45em; } }
@media (max-width: 430px) { .hero h1.h1-brand { font-size: 30px; } }
@media (max-width: 360px) { .hero h1.h1-brand { font-size: 26px; } }
@media (max-width: 330px) { .hero h1.h1-brand { font-size: 24px; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > * { min-width: 0; }
  .hero h1 { max-width: none; }
  .hero-proof { grid-template-columns: 1fr 1fr; }
  .nb { white-space: normal; }
}
@media (max-width: 640px) { .button.wide { white-space: normal; height: auto; min-height: 48px; padding: 12px 18px; text-align: center; line-height: 1.3; width: 100%; } }
@media (max-width: 480px) { .hero-actions .button { flex: 1 1 100%; } .hero-proof { grid-template-columns: 1fr; gap: var(--s4); } }

/* Inner-page hero photo (system pages) */
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-panel); background: var(--trace); }
.hero .lede + .hero-actions { margin-top: var(--s6); }

/* Hero visual: building photo with system nodes that light up once on load */
.hero-visual { margin: 0 calc(-1 * clamp(0px, (100vw - var(--maxw)) / 2 - var(--gutter), 160px)) 0 0; }
.hero-shot { position: relative; }
.hero-visual img { display: block; width: 100%; height: auto; border-radius: var(--radius-panel); background: var(--riser); }
.node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; opacity: 0; animation: label-cycle 24s ease-in-out infinite; animation-delay: calc(1s + var(--d, var(--i)) * 1.2s); }  /* each pin (dot and label) fades in and out; twenty pins on a 24 s cycle, about four on screen at a time */
.node:hover { z-index: 2; }
@keyframes label-cycle { 0%, 100% { opacity: 0; } 2.5% { opacity: 1; } 16% { opacity: 1; } 19% { opacity: 0; } }  /* 4.56 s per label at 1.2 s spacing: gone before the fourth label after it starts */
.node.l { flex-direction: row-reverse; }
.node i { width: 14px; height: 14px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(40,172,226,.28), 0 0 0 1px rgba(255,255,255,.6) inset; flex: none; animation: node-pulse 3.6s ease-in-out infinite; animation-delay: calc(1s + var(--i) * 1.2s); }
.node b { font-family: var(--display); font-variation-settings: var(--wide-3); font-weight: 600; font-size: 12px; line-height: 1; color: var(--riser); background: rgba(255,255,255,.92); padding: 6px 9px; border-radius: 2px; white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.node.r b { transform: translateX(0); } .node.l { transform: translate(-50%, -50%); }
.node.l b, .node.r b { position: relative; }
.node.r { transform: translate(-7px, -50%); } .node.l { transform: translate(calc(-100% + 7px), -50%); }
@keyframes node-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(40,172,226,.28), 0 0 0 1px rgba(255,255,255,.6) inset; } 50% { box-shadow: 0 0 0 9px rgba(40,172,226,.12), 0 0 0 1px rgba(255,255,255,.6) inset; } }
.rack-cap { display: block; font-size: 13px; color: var(--riser-60); margin: var(--s3) 0 0; }
.rack-cap b { font-weight: 600; color: var(--riser); }
@media (prefers-reduced-motion: reduce) { .node { opacity: 1; animation: none; } .node i { animation: none; } }
@media (max-width: 1200px) and (min-width: 641px) { .node i { width: 12px; height: 12px; } .node b { font-size: 10px; padding: 5px 7px; } .node.r { transform: translate(-6px, -50%); } .node.l { transform: translate(calc(-100% + 6px), -50%); } }  /* photo under ~700px: smaller labels */
@media (max-width: 900px) {
  .hero-visual { margin: var(--s6) 0 0; }
  .hero-grid { gap: 0; }
  .hero-grid > div:first-child { display: contents; }
  .hero-grid > figure { order: 1; }
  .hero-grid > .hero-proof, .hero-grid > div:first-child > .hero-proof { order: 2; }
  .hero-photo { margin-top: var(--s6); }
}
@media (max-width: 640px) {
  /* Phone hero: the photo and its cycling labels sit right under the headline, edge to edge */
  .hero { padding-top: var(--s3); }
  .hero .label { margin-bottom: var(--s1); }
  .hero h1, .hero h1.h1-brand { margin-bottom: var(--s2); }
  .hero-visual { order: 1; margin: 0 calc(-1 * var(--gutter)) 0; }
  .hero.tinted { padding: var(--s5) 0 var(--s6); }
  .hero.tinted .label { margin-bottom: var(--s1); }
  .hero.tinted h1.h1-brand { margin-bottom: var(--s4); text-align: center; }  /* phone: tagline block centered */
  .hero.tinted .h1-brand .tag { text-align: left; }
  .hero.tinted .hero-visual { margin-bottom: 0; }
  .hero.tinted .lede { margin: var(--s5) 0 var(--s4); }
  .hero.tinted .lede + .hero-actions { margin-top: 0; }
  .hero.tinted .hero-proof { margin-top: var(--s5); }
  .hero-visual img { border-radius: 0; }
  .hero-shot { overflow: hidden; }
  .hero .lede { order: 2; margin-top: var(--s5); }
  .hero-actions { order: 3; }
  .hero-grid > div:first-child > .hero-proof { order: 4; }
  .rack-cap { padding: 0 var(--gutter); }
  .node i { width: 9px; height: 9px; box-shadow: 0 0 0 3px rgba(40,172,226,.28), 0 0 0 1px rgba(255,255,255,.6) inset; }
  .node b { font-size: 9px; padding: 3px 5px; }
  .node { animation-delay: calc(1s + var(--m) * 1.2s); }  /* phone order (--m) keeps back-to-back labels far apart on the small photo */
  .node { left: var(--mx); top: var(--my); animation-name: label-cycle-phone; }  /* phone position and side are set separately in the placer (Phone mode) */
  .node.m-r { flex-direction: row; transform: translate(-5px, -50%); }
  .node.m-l { flex-direction: row-reverse; transform: translate(calc(-100% + 5px), -50%); }
}
@keyframes label-cycle-phone { 0%, 100% { opacity: 0; } 2.5% { opacity: 1; } 8% { opacity: 1; } 11% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; border-top: 1px solid var(--conduit-20); }
.section.tint { background: var(--surface); }
.section.dark { background: var(--riser); color: var(--blank); border-top: 0; }
.section.dark .lede, .section.dark .label, .section.dark .muted { color: rgba(255,255,255,.72); }
.section.dark .label b { color: var(--blank); background: rgba(255,255,255,.08); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s6) var(--s8); align-items: end; margin-bottom: var(--s7); }
.section-head .lede { margin: 0; }
.section-head h2 { max-width: 20ch; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: var(--s4); margin-bottom: var(--s6); } }

/* ---------- Grid ---------- */
.grid { display: grid; gap: var(--s5); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
.cols-2 > * { grid-column: span 6; }
.cols-3 > * { grid-column: span 4; }
.cols-4 > * { grid-column: span 3; }
.grid.tight { gap: var(--s3); }
.grid.wide { gap: var(--s8); }
@media (max-width: 1024px) { .cols-4 > * { grid-column: span 6; } .cols-3 > * { grid-column: span 6; } }
@media (max-width: 640px) { .grid { grid-template-columns: minmax(0, 1fr); } .cols-2 > *, .cols-3 > *, .cols-4 > * { grid-column: auto; } .grid.wide { gap: var(--s6); } }  /* one column: twelve tracks plus eleven gaps no longer fit a 320px screen */

/* ---------- Cards ---------- */
.card { background: var(--blank); border: 1px solid var(--conduit-40); border-radius: var(--radius-panel); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); position: relative; transition: border-color .2s; }
.card:hover, .card:focus-within { border-color: var(--riser); }
.card-tag { position: absolute; top: -1px; left: 20px; background: var(--signal); color: var(--riser); font-size: 12px; font-weight: 600; line-height: 1.3; padding: 3px 8px; border-radius: 0 0 2px 2px; }
.card-tag + h3, .card-tag + h2 { margin-top: var(--s3); }
.card h2, .sheets-head h2 { font-variation-settings: var(--wide-3); font-size: 21px; line-height: 1.25; letter-spacing: 0; }
.sheets-head h2 { font-size: clamp(21px, 2vw, 26px); }
.card p { color: var(--riser-60); font-size: 15px; line-height: 1.55; }
.card-list { font-size: 14px; }
.card-list li { padding: 7px 0; border-top: 1px solid var(--conduit-20); display: flex; justify-content: space-between; gap: var(--s3); }
.card-list li span:first-child { white-space: nowrap; }
.card-list li span:last-child { color: var(--riser-60); text-align: right; }
.card-list.plain li { display: block; }
.card .textlink, .card-link { align-self: flex-start; font-size: 15px; margin-top: auto; }
.card.plain { border-color: transparent; background: transparent; padding: 0; }
.card.plain:hover { border-color: transparent; }
.card.flat { border-color: var(--conduit-20); }
.card.flat:hover { border-color: var(--conduit-40); }
a.card { color: inherit; }
a.card .card-link { color: var(--riser); font-weight: 500; box-shadow: inset 0 -2px 0 var(--signal); transition: box-shadow .25s var(--ease); }
a.card:hover .card-link { box-shadow: inset 0 -1.2em 0 var(--trace), inset 0 -2px 0 var(--signal); }
.section.dark .card, .card.care { background: var(--riser-mid); border-color: rgba(255,255,255,.12); }
.card.care { color: var(--blank); }
.card.care:hover, .card.care:focus-within { border-color: var(--signal); }
.card.care p, .card.care .card-list li span:last-child { color: rgba(255,255,255,.72); }
.card.care .card-list li { border-color: rgba(255,255,255,.12); }
a.card.care .card-link { color: var(--blank); }
a.card.care:hover .card-link { box-shadow: inset 0 -1.2em 0 rgba(255,255,255,.1), inset 0 -2px 0 var(--signal); }
.section.dark .card p, .section.dark .card-list li span:last-child { color: rgba(255,255,255,.72); }
.section.dark .card-list li { border-color: rgba(255,255,255,.12); }

/* Card and section imagery. Cards bleed the photo to their edges; the cyan tag sits on top of it like a cable label. */
.card-media { display: block; width: calc(100% + 2 * var(--s5)); max-width: none; height: auto; margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) var(--s2); border-radius: var(--radius-panel) var(--radius-panel) 0 0; aspect-ratio: 3 / 2; object-fit: cover; background: var(--trace); }
.card-media.wide { aspect-ratio: 4 / 3; }
.card.flat .card-media { aspect-ratio: 16 / 9; }
.section-media { margin: 0 0 var(--s7); }
.section-media img { display: block; width: 100%; height: auto; border-radius: var(--radius-panel); background: var(--trace); }
.section.dark .section-media img { border: 1px solid rgba(255,255,255,.12); }
.section-media.compact { max-width: 720px; }  /* residential photos: held to about half the wrap, they are not strong enough to run full width */
.section-media.compact img { aspect-ratio: 3 / 2; object-fit: cover; }
.aside-media { margin: 0; }
.aside-media img { display: block; width: 100%; height: auto; border-radius: var(--radius-panel); background: var(--trace); }
.home-intro { align-items: center; }
.aside-media.framed { background: var(--blank); border: 1px solid var(--conduit-40); border-radius: var(--radius-panel); padding: var(--s3); }
.aside-media.framed img { border-radius: 2px; aspect-ratio: 3 / 2; object-fit: cover; }
figure.mt-6 { margin-top: var(--s6); margin-bottom: 0; }

/* Step cards (a real sequence, so the numbers are earned) */
.step-num { font-family: var(--display); font-variation-settings: var(--wide); font-weight: 600; font-size: 14px; color: var(--signal-deep); letter-spacing: .02em; }
.step-out { font-size: 14px; color: var(--riser-60); padding-top: var(--s3); border-top: 1px solid var(--conduit-20); margin-top: auto; }
.step-out b { color: var(--riser); font-weight: 600; }

/* Isometric access graphic */
.iso { margin: 0; }
.iso img { display: block; width: 100%; height: auto; }

/* Sample drawing sheets */
.sheets { margin-top: var(--s8); padding-top: var(--s7); border-top: 1px solid var(--conduit-20); }
.sheets-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s5) var(--s8); align-items: end; margin-bottom: var(--s6); }
.sheets-head h3 { font-size: clamp(21px, 2vw, 26px); }
.sheets-head p { margin: 0; }
.sheet { display: block; border: 1px solid var(--conduit-40); border-radius: var(--radius-panel); background: var(--blank); overflow: hidden; transition: border-color .2s; }
.sheet:hover, .sheet:focus-visible { border-color: var(--riser); }
.sheet img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--conduit-20); }
.sheet span { display: block; padding: var(--s3) var(--s4); font-size: 14px; color: var(--riser-60); }
.sheet span b { color: var(--riser); font-family: var(--display); font-variation-settings: var(--wide-3); font-weight: 600; margin-right: 6px; }
@media (max-width: 900px) { .sheets-head { grid-template-columns: 1fr; gap: var(--s3); } }

/* Checklist and chip row */
.checklist li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--conduit-20); font-size: 15px; color: var(--riser-60); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 16px; width: 12px; height: 12px; background: var(--signal); border-radius: 2px; clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 100%, 0 100%); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips span { font-size: 14px; font-weight: 500; padding: 6px 10px; border: 1px solid var(--conduit-40); border-radius: 2px; }
.section.dark .chips span { border-color: rgba(255,255,255,.2); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--riser-60); padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--conduit-40); }
.table td { padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 1px solid var(--conduit-20); vertical-align: top; }
@media (min-width: 901px) { .table td.num { white-space: nowrap; } }
@media (max-width: 900px) {
  /* Stack the response matrix into labeled rows so nothing scrolls sideways on a phone */
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { padding: var(--s3) 0; border-bottom: 1px solid var(--conduit-20); }
  .section.dark .table tr { border-color: rgba(255,255,255,.12); }
  .table td { border: 0; padding: 4px 0; display: grid; grid-template-columns: 96px 1fr; gap: var(--s3); font-size: 15px; }
  .table td::before { content: attr(data-l); font-size: 13px; font-weight: 600; color: var(--riser-60); }
  .section.dark .table td::before { color: rgba(255,255,255,.6); }
  .table td.num { white-space: normal; }
}
.section.dark .table th { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.3); }
.section.dark .table td { border-color: rgba(255,255,255,.12); }
.pri { display: inline-block; font-weight: 600; padding: 2px 8px; border-radius: 2px; background: var(--signal); color: var(--riser); font-size: 13px; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.field { display: grid; gap: var(--s2); }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--riser); background: var(--blank); border: 1px solid var(--conduit-40); border-radius: var(--radius); padding: 12px 14px; width: 100%; transition: border-color .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: var(--signal); }
.field .hint { font-size: 13px; color: var(--riser-60); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.form-note { font-size: 14px; color: var(--riser-60); }
.form-err { grid-column: 1 / -1; margin: 0; padding: var(--s3) var(--s4); border: 1px solid var(--signal-deep); border-left-width: 4px; background: var(--trace); font-size: 15px; border-radius: var(--radius); }
.form-ok { display: none; border: 1px solid var(--conduit-40); border-left: 4px solid var(--signal); padding: var(--s6); border-radius: var(--radius-panel); background: var(--surface); }
.form-ok.show { display: block; }
.form-ok h2 { margin-bottom: var(--s2); font-size: 21px; }
.form[data-sending] .button { opacity: .6; pointer-events: none; }
.aside { display: grid; gap: var(--s6); }
.aside h2 { margin-bottom: var(--s2); font-size: 17px; font-variation-settings: var(--wide-3); }
.aside p { color: var(--riser-60); font-size: 15px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- Prose (legal, long copy) ---------- */
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.2em; }
.prose strong { font-weight: 600; }

/* ---------- Call-to-action band ---------- */
.cta { background: var(--riser); color: var(--blank); padding: var(--section) 0; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.cta h2 { max-width: 22ch; }
.cta h2 .name { color: var(--signal); }
.cta .label { color: rgba(255,255,255,.72); }
.cta .label b { color: var(--blank); background: rgba(255,255,255,.08); }
.cta-actions { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; justify-content: flex-end; }
.cta-phone { font-family: var(--display); font-variation-settings: var(--wide-3); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; gap: var(--s6); } .cta-actions { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--conduit-20); padding: var(--s8) 0 var(--s6); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s6); }
.footer-brand svg { height: 56px; width: auto; margin-bottom: var(--s5); }
.footer-brand .tag { font-family: var(--display); font-variation-settings: var(--wide-2); font-weight: 600; font-size: 21px; line-height: 1.25; color: var(--riser); margin: 0 0 var(--s3); max-width: 22ch; }
.footer-brand p { color: var(--riser-60); max-width: 30em; }
.footer h2 { margin-bottom: var(--s3); font-size: 15px; font-variation-settings: var(--wide-3); }
.footer li { padding: 4px 0; color: var(--riser-60); }
.footer li a:hover { color: var(--riser); box-shadow: inset 0 -2px 0 var(--signal); }
.colophon { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s8); padding-top: var(--s4); border-top: 1px solid var(--conduit-20); font-size: 13px; color: var(--riser-60); }
.colophon a:hover { color: var(--riser); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s4); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { padding: var(--s10) 0; }
.notfound .wrap { max-width: 720px; }

/* ---------- Partner banner (scrolling logo marquee) ---------- */
/* Pure CSS: the track holds the logo list twice; translating it by half its width loops seamlessly.
   Drop logo files in src/static/logos/ and reference them as <img>. A <span> renders a text wordmark until a file exists. */
.partners { padding: var(--s6) 0; border-top: 1px solid var(--conduit-20); border-bottom: 1px solid var(--conduit-20); background: var(--surface); overflow: hidden; }
.partners-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.partners-head .label { margin: 0; }
.partners-head .muted { font-size: 14px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: var(--s8); align-items: center; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track > ul { display: flex; gap: var(--s8); align-items: center; flex: none; }
.marquee-track li { flex: none; height: 40px; display: flex; align-items: center; justify-content: center; }
/* Logo heights by shape so every mark carries the same visual weight: xw = very wide wordmark, w = wordmark, m = mark + word, s = square mark */
.marquee-track li.xw img { height: 20px; } .marquee-track li.w img { height: 26px; } .marquee-track li.m img { height: 32px; } .marquee-track li.s img { height: 38px; }
.marquee-track a { display: flex; align-items: center; height: 100%; border-radius: 2px; }
.marquee-track a:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.marquee-track img { height: 26px; width: auto; max-width: 170px; object-fit: contain; filter: brightness(0); opacity: .6; transition: filter .3s, opacity .3s; } /* any logo color on a transparent background renders as one quiet ink */
.marquee-track li:hover img, .marquee-track a:focus-visible img { filter: none; opacity: 1; }
.marquee-track li.keep:hover img, .marquee-track li.keep a:focus-visible img { filter: brightness(0); } /* light-colored logo files stay inked */
.marquee-track a.wordmark { font-family: var(--display); font-variation-settings: var(--wide-2); font-weight: 600; font-size: 20px; letter-spacing: -.01em; color: var(--riser-60); white-space: nowrap; transition: color .3s; }
.marquee-track li:hover .wordmark, .marquee-track a.wordmark:focus-visible { color: var(--riser); }
/* Mark + name combos (Ubiquiti: the official U mark beside the name, since the current wordmark is not published as a file) */
.marquee-track a.combo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-variation-settings: var(--wide-2); font-weight: 600; font-size: 24px; letter-spacing: -.015em; color: var(--riser-60); white-space: nowrap; transition: color .3s; }
.marquee-track a.combo img { height: 30px; }
.marquee-track li:hover .combo, .marquee-track a.combo:focus-visible { color: var(--riser); }
@media (max-width: 640px) { .marquee-track a.combo { font-size: 19px; gap: 7px; } .marquee-track a.combo img { height: 24px; } }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--s8) / 2)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; gap: var(--s5) var(--s6); }
  .marquee-track > ul { flex-wrap: wrap; gap: var(--s5) var(--s6); }
  .marquee-track > ul[aria-hidden="true"] { display: none; }
}
@media (max-width: 640px) { .marquee-track li { height: 32px; } .marquee-track li.xw img { height: 16px; } .marquee-track li.w img { height: 21px; } .marquee-track li.m img { height: 26px; } .marquee-track li.s img { height: 30px; } .marquee-track a.wordmark { font-size: 17px; } .marquee-track, .marquee-track > ul { gap: var(--s6); } }

/* ---------- Spacing utilities (used instead of inline styles) ---------- */
.mt-3 { margin-top: var(--s3); } .mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); } .mt-7 { margin-top: var(--s7); }
.mb-3 { margin-bottom: var(--s3); }
.small { font-size: 14px; }

/* ---------- Phone (≤640px) ---------- */
/* The home page ran 12,000px tall at 390px: eight system cards and four step cards, each with a full photo. On a phone the
   system cards become a compact row (thumbnail, label, title, link) and the step cards drop their photos. Detail lives on
   the system pages, which are one tap away. */
@media (max-width: 900px) { .menu a.button { padding: 0 22px; } }
@media (max-width: 640px) {
  #systems .grid { gap: var(--s3); }
  #systems .card { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: var(--s4); row-gap: 3px; align-items: center; padding: var(--s3); }
  #systems .card-media { grid-row: 1 / -1; width: 96px; height: 96px; aspect-ratio: 1 / 1; margin: 0; border-radius: var(--radius); }
  #systems .card-tag { position: static; justify-self: start; font-size: 11px; padding: 2px 7px; border-radius: 2px; }
  #systems .card-tag + h3 { margin-top: 0; }
  #systems .card h3 { font-size: 16px; line-height: 1.25; text-wrap: pretty; }
  #systems .card p, #systems .card-list { display: none; }
  #systems .card-link { font-size: 14px; margin-top: 2px; align-self: start; }

  #process .grid { gap: var(--s3); }
  #process .card { padding: var(--s4) var(--s4) var(--s3); gap: var(--s2); }
  #process .card-media { display: none; }
  #process .card h3 { font-size: 19px; }
  #process .step-out { padding-top: var(--s2); }

  .hero-proof { gap: var(--s2); }
  .hero-proof div { text-wrap: pretty; padding-right: 0; }
  .hero-proof b { display: inline; margin: 0 6px 0 0; }
  .hero-proof b::after { content: " · "; color: var(--conduit); font-weight: 400; }
}
@media (max-width: 480px) {
  h1, .hero h1, .hero.simple h1 { font-size: 32px; }
}

/* ---------- FAQ (system pages) ---------- */
/* <details class="faq-item"><summary>Question</summary><div class="faq-a"><p>Answer</p></div></details>; build.py reads these into FAQPage JSON-LD. */
.faq-list { border-top: 1px solid var(--conduit-20); max-width: 60em; }
.faq-item { border-bottom: 1px solid var(--conduit-20); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: var(--s4) 0; font-family: var(--display); font-variation-settings: var(--wide-3); font-weight: 600; font-size: 18px; line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; color: var(--signal-deep); font-weight: 400; font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--signal-deep); }
.faq-a { padding: 0 0 var(--s5); color: var(--riser-60); font-size: 16px; line-height: 1.6; }
.faq-a p { margin-bottom: .8em; }
.prose-cols { columns: 2; column-gap: var(--s7); }
.prose-cols > * { break-inside: avoid; }
@media (max-width: 900px) { .prose-cols { columns: 1; } }

/* Team cards (about page): square headshot beside the bio */
.card.person { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.card.person img { width: 168px; height: 168px; border-radius: var(--radius-panel); background: var(--trace); }
.card.person .card-tag { position: static; display: inline-block; margin-bottom: var(--s3); border-radius: 2px; }
.card.person h3 { margin-bottom: var(--s3); }
@media (max-width: 640px) { .card.person { grid-template-columns: 1fr; } .card.person img { width: 120px; height: 120px; } }

/* Contact form additions (revision 2) */
.field .opt { font-weight: 400; color: var(--riser-60); font-size: 13px; margin-left: 6px; }
.field .req { color: var(--signal-deep); margin-left: 2px; }
.form-privacy { font-size: 13px; color: var(--riser-60); margin: var(--s3) 0 0; grid-column: 1 / -1; }
.field input[type="file"] { padding: 10px 0; }
body.menu-open { overflow: hidden; }  /* the phone drawer is full height; keep the page from scrolling under it */
@media (max-width: 900px) { .footer li a, .colophon a { display: inline-block; padding: 8px 0; } .footer li { padding: 0; } }  /* taller tap targets */

.section-media.diagram img { border: 1px solid var(--conduit-20); background: #fff; }
