:root {
  --bg: #07111f;
  --panel: #0c1a2e;
  --panel-2: #10223c;
  --line: #1c3557;
  --text: #e7eef8;
  --muted: #9db0c8;
  --orange: #ff8a3d;
  --orange-soft: rgb(255 138 61 / 14%);
  --blue: #3fa9f5;
  --blue-soft: rgb(63 169 245 / 14%);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  /* A file rather than a data: URI, so the CSP can stay at img-src 'self' */
  background-image: url("/img/circuit-bg.svg");
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -3rem; padding: .5rem 1rem; background: var(--orange); color: var(--bg); border-radius: 8px; z-index: 20; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(7 17 31 / 86%);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .65rem; margin-right: auto; color: var(--text); text-decoration: none; }
.brand-name { font: 700 1.1rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.brand-name span { color: var(--orange); }
.site-header nav { display: flex; align-items: center; gap: .25rem; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: .5rem .8rem; border-radius: 8px; font-size: .95rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
/* Contact sits outside the nav, so on phones it can stay on the top row next to the logo */
.nav-cta { flex: none; color: var(--bg); background: var(--orange); font-weight: 700; text-decoration: none; padding: .5rem .8rem; border-radius: 8px; font-size: .95rem; }
.nav-cta:hover { color: var(--bg); background: #ffa463; }
/* On phones the links drop to their own row instead of disappearing */
@media (max-width: 860px) {
  html { scroll-padding-top: 7.5rem; }
  .header-inner { flex-wrap: wrap; gap: 0 1rem; min-height: 0; padding-block: .6rem .35rem; }
  .site-header nav { order: 3; width: 100%; gap: .25rem 1rem; margin-top: .45rem; padding-top: .35rem; border-top: 1px solid var(--line); }
  .site-header nav a { padding: .45rem .55rem; font-size: .9rem; white-space: nowrap; }
}
/* On phones the four links share the row evenly; sized to fit a 360 px screen.
   They may wrap when a reader widens letter and word spacing (WCAG 1.4.12). */
@media (max-width: 560px) {
  .site-header nav { justify-content: space-between; flex-wrap: wrap; gap: 0; }
  .site-header nav a { padding-inline: .4rem; }
}
@media (max-width: 350px) {
  .site-header nav a { font-size: .82rem; padding-inline: .3rem; }
}
/* On short screens (a phone turned sideways, or the page zoomed to 400%) a sticky header would cover nearly half the view */
@media (max-height: 500px) {
  html { scroll-padding-top: 1rem; }
  .site-header { position: static; }
}

/* Hero */
.hero, .page-hero {
  background:
    radial-gradient(circle at 78% 40%, rgb(63 169 245 / 16%), transparent 42%),
    radial-gradient(circle at 12% 85%, rgb(255 138 61 / 10%), transparent 38%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; gap: 2.5rem; align-items: center; padding: clamp(3rem, 8vw, 5.5rem) 0; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
/* If a reader's wider letter spacing (WCAG 1.4.12) makes a no-wrap heading phrase too wide, only that phrase sticks out;
   the column, and the paragraph under the heading, stay the width of the screen */
.hero-inner > div { min-width: 0; }
.page-hero .hero-inner { padding: clamp(2.5rem, 6vw, 4.25rem) 0; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font: 600 .8rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.25rem; }
.eyebrow .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
h1 em { font-style: normal; color: var(--orange); }
/* Keeps "Dallas–Fort Worth" and "Enterprise-grade" whole in headings; both still fit a 320 px phone */
h1 .nowrap { white-space: nowrap; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.35rem; border-radius: 10px; font-weight: 700; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--orange); color: var(--bg); }
.btn-primary:hover { background: #ffa463; }
.btn-ghost { border: 2px solid var(--blue); color: var(--text); }
.btn-ghost:hover { background: var(--blue-soft); }

.hero-art { width: 100%; height: auto; display: block; }
.hero-art .o { stroke: var(--orange); }
.hero-art .b { stroke: var(--blue); }
.hero-art .traces path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .pins { stroke: #6b84a6; stroke-width: 5; }
.hero-art .pad { fill: var(--bg); stroke-width: 3; }
.hero-art .lbl { font: 600 13px var(--mono); fill: var(--muted); letter-spacing: .08em; }
.hero-art .chip-name { font: 700 24px var(--mono); fill: var(--text); letter-spacing: .18em; }
.hero-art .chip-sub { font: 600 11px var(--mono); fill: var(--muted); letter-spacing: .3em; }
/* Each pulse runs once, and the last one ends at 4.8 s: WCAG 2.2.2 needs a pause button for motion that lasts longer than 5 s.
   The pulses are hidden outside their run, so none is left sitting on a pin before it starts or after it ends. */
.hero-art .pulses path { fill: none; stroke: #ffffff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 260; opacity: 0; animation: flow 3.2s linear; }
.hero-art .pulses path:nth-child(2n) { animation-delay: .8s; }
.hero-art .pulses path:nth-child(3n) { animation-delay: 1.6s; }
@keyframes flow { from { stroke-dashoffset: 266; opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-art .pulses { display: none; } }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.kicker { font: 600 .8rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: .75rem; }
.section-intro { color: var(--muted); max-width: 40rem; margin-bottom: 2.25rem; }

/* Trace divider: a line with vias */
.trace-rule { height: 14px; margin: 0 0 2.5rem; background:
  radial-gradient(circle, var(--orange) 0 4px, transparent 5px) 0 50% / 14px 14px no-repeat,
  radial-gradient(circle, var(--blue) 0 4px, transparent 5px) 100% 50% / 14px 14px no-repeat,
  linear-gradient(var(--line), var(--line)) 50% 50% / calc(100% - 20px) 2px no-repeat; }

/* Audience */
.audience { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .audience { grid-template-columns: 1fr 1fr; } }
.aud { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem; position: relative; overflow: hidden; }
.aud::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 2px dashed var(--line); }
.aud h3 { font-size: 1.35rem; display: flex; align-items: center; gap: .6rem; }
.tag { font: 700 .7rem var(--mono); letter-spacing: .12em; padding: .25rem .5rem; border-radius: 6px; }
.aud:first-child .tag { background: var(--orange-soft); color: var(--orange); }
.aud:last-child .tag { background: var(--blue-soft); color: var(--blue); }
.vias { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .55rem; }
.vias li { display: flex; gap: .7rem; align-items: baseline; color: var(--text); }
.vias li::before { content: ""; flex: none; width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid var(--orange); transform: translateY(.05rem); }
.aud:last-child .vias li::before { border-color: var(--blue); }
.more { font-weight: 700; text-decoration: none; }
.links-row { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 2rem 10px 0; }

/* Services as chips */
.chips { list-style: none; margin: 0; padding: 0 10px; display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.chips.detail { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.ic { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.35rem 1.4rem 1.25rem; transition: border-color .15s, transform .15s; }
.ic::before, .ic::after { content: ""; position: absolute; top: 16px; bottom: 16px; width: 8px; background: repeating-linear-gradient(to bottom, #5b7393 0 4px, transparent 4px 12px); }
.ic::before { left: -9px; }
.ic::after { right: -9px; }
.ic:hover { border-color: var(--orange); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .ic:hover { transform: none; } }
.ref { display: block; font: 700 .72rem var(--mono); letter-spacing: .14em; color: var(--orange); margin-bottom: .4rem; }
.ic:nth-child(even) .ref { color: var(--blue); }
.ic p { color: var(--muted); margin: 0; font-size: .98rem; }
.ticks { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .4rem; }
.ticks li { display: flex; gap: .6rem; align-items: baseline; font-size: .97rem; }
.ticks li::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; border: 2px solid var(--orange); transform: translateY(-.05rem); }
.ic:nth-child(even) .ticks li::before { border-color: var(--blue); }
/* Four short cards: 1, 2 or 4 across, so they never leave one alone on a row */
.chips.quad { grid-template-columns: 1fr; }
@media (min-width: 620px) { .chips.quad { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .chips.quad { grid-template-columns: repeat(4, 1fr); } }

/* Vulnerability scanning: button with a note beside it, under the two cards */
.scan-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 2rem 10px 0; }
.scan-cta p { color: var(--muted); margin: 0; flex: 1 1 22rem; max-width: 40rem; }

/* "Top 5 being exploited right now": the weekly list from CISA's KEV catalog, ranked by EPSS, one row per product */
.kev { margin: 2.25rem 10px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kev-head { padding: 1.4rem 1.5rem 1.1rem; border-bottom: 1px solid var(--line); }
.kev-head h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; margin-bottom: .45rem; }
.kev-dot { flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.kev-head p { color: var(--muted); margin: 0; max-width: 46rem; font-size: .97rem; }
.kev-list { list-style: none; margin: 0; padding: 0; counter-reset: kev; }
.kev-list li { counter-increment: kev; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .15rem 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.kev-list li::before { content: counter(kev, decimal-leading-zero); grid-row: 1 / span 3; font: 700 1rem var(--mono); color: var(--orange); padding-top: .1rem; }
.kev-list li:nth-child(even)::before { color: var(--blue); }
.kev-list h4 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.kev-list p { margin: 0; color: var(--muted); font-size: .96rem; }
.kev-list .kev-meta { font: 600 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.kev-list .kev-score { color: var(--text); font-weight: 700; }
/* Phones: EPSS and date share a line, the CVE link gets its own */
@media (max-width: 899px) {
  .kev-list li { grid-template-columns: 2rem minmax(0, 1fr); gap: .15rem .75rem; padding-inline: 1.1rem; }
  .kev-list .kev-meta a { flex-basis: 100%; }
}
@media (min-width: 900px) {
  .kev-list li { grid-template-columns: 2.4rem minmax(0, 15rem) minmax(0, 1fr) 11rem; align-items: baseline; }
  .kev-list li::before { grid-row: auto; }
  .kev-list h4 { grid-column: 2; grid-row: 1; }
  .kev-list li > p:last-child { grid-column: 3; grid-row: 1; }
  .kev-list .kev-meta { grid-column: 4; grid-row: 1; flex-direction: column; text-align: right; }
}
.kev-foot { margin: 0; padding: 1rem 1.5rem 1.2rem; color: var(--text); font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Remote hands callout on the home page */
.rh { position: relative; overflow: hidden; display: grid; gap: 1.25rem 2.5rem; align-items: center; padding: 1.75rem; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
@media (min-width: 860px) { .rh { grid-template-columns: 1.15fr 1fr; padding: 2rem 2.25rem; } }
.rh::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 2px dashed var(--line); }
.rh h3 { font-size: 1.35rem; }
.rh p { color: var(--muted); }
.rh .vias { margin: 0; }

/* Example jobs on the remote hands page: MSP jobs in orange, enterprise jobs in blue */
.jobs { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .jobs { grid-template-columns: 1fr 1fr; } }
.job { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem 1.75rem 1.75rem; }
.job-type { display: flex; align-items: center; gap: .6rem; font: 600 .8rem var(--mono); letter-spacing: .08em; color: var(--muted); margin-bottom: .8rem; }
.job .tag { background: var(--orange-soft); color: var(--orange); }
.job h3 { font-size: 1.3rem; }
.job dl { margin: 0; }
.job dt { font: 700 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-top: 1.1rem; }
.job dd { margin: .35rem 0 0; color: var(--muted); }
.job dd .ticks { margin-top: .5rem; }
.job dd .ticks li { color: var(--text); }
.job .result { color: var(--text); }
.job.ent .tag { background: var(--blue-soft); color: var(--blue); }
.job.ent dt { color: var(--blue); }
.job.ent .ticks li::before { border-color: var(--blue); }

/* Starter offer */
.starter { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--panel); border: 1px solid var(--orange); border-radius: 14px; box-shadow: 0 0 0 4px var(--orange-soft); }
@media (min-width: 820px) { .starter { grid-template-columns: 1fr auto; } }
.starter h2 { margin-bottom: .4rem; }
.starter p { color: var(--muted); margin: 0; max-width: 42rem; }

/* Stats */
/* 1, 2 or 4 columns, so the eight cards always fill even rows */
.stats { display: grid; gap: 1rem; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; }
/* Sized so "6 continents" fits on one line in a four-across card */
.stat strong { display: block; font: 700 clamp(1.35rem, 2.2vw, 1.8rem) var(--mono); color: var(--orange); margin-bottom: .25rem; }
.stat:nth-child(even) strong { color: var(--blue); }
.stat span { color: var(--muted); }

/* Steps along a trace */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; position: relative; counter-reset: step; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps::before { content: ""; position: absolute; top: 1.2rem; left: 1.2rem; right: 1.2rem; height: 2px; background: linear-gradient(90deg, var(--orange), var(--blue)); }
}
.steps li { position: relative; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--orange); color: var(--orange); font: 700 1rem var(--mono); margin-bottom: .8rem; position: relative; }
.steps li:nth-child(even)::before { border-color: var(--blue); color: var(--blue); }
.steps h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }

/* About */
.about { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: auto 1fr; } }
/* Portrait framed like a chip: blue package border with pins above and below */
.portrait { position: relative; width: clamp(9rem, 22vw, 12rem); margin-block: 10px; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 2px solid var(--blue); }
.portrait::before, .portrait::after { content: ""; position: absolute; left: 22px; right: 22px; height: 8px; background: repeating-linear-gradient(to right, #5b7393 0 4px, transparent 4px 12px); }
.portrait::before { top: -10px; }
.portrait::after { bottom: -10px; }
.about p { font-size: 1.12rem; max-width: 46rem; }
.certs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.certs span { font: 700 .75rem var(--mono); letter-spacing: .1em; padding: .35rem .65rem; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }

/* Contact */
.contact { background: linear-gradient(180deg, transparent, rgb(255 138 61 / 6%)); }
.contact-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.contact-card { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1.4rem 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); transition: border-color .15s; container-type: inline-size; }
.contact-card:hover { border-color: var(--orange); }
.contact-label { font: 700 .75rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
/* One line, scaled to the card's width instead of wrapping */
.contact-value { font-weight: 700; white-space: nowrap; font-size: clamp(.85rem, 6.5cqi, 1.15rem); }
.area { color: var(--muted); margin-top: 2.25rem; }
.area h3 { font: 700 .75rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: .5rem; }
.area p { margin: 0 0 .9rem; }
.cities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.cities li { font: 700 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: .35rem .65rem; border-radius: 6px; border: 1px solid var(--line); }

/* Footer */
.site-footer { padding: 2rem 0; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
/* "Designed by lab5.dev": same muted text as the copyright, with a faint underline so it still reads as a link */
.credit { color: inherit; white-space: nowrap; text-decoration-color: rgb(157 176 200 / 40%); text-underline-offset: .2em; }
.credit:hover { color: var(--text); text-decoration-color: currentColor; }

/* Accessibility statement */
.statement { max-width: 46rem; }
.statement h2 { font-size: clamp(1.35rem, 2.6vw, 1.6rem); margin-top: 2.25rem; }
.statement h2:first-child { margin-top: 0; }
.statement p { color: var(--muted); }
.statement .ticks { margin: 0 0 1em; gap: .6rem; }

/* 404 */
.notfound { min-height: 65vh; display: grid; align-items: center; }
