/* ==========================================================================
   Vilkon Solutions — "the site is a circuit board"
   VOICE   precise, calm engineering; plain sentences
   IDEA    pages behave like a PCB: solder-mask bands, gold (ENIG) pads,
           white silkscreen lettering, teal copper traces, CAD-grid sheets
   PICTURE the hero board — each component is a service and links to it
   COLOUR  blue solder mask (brand navy) + ENIG gold pads + teal traces
   TYPE    Saira (silkscreen-like headings) + Archivo (reading text)
   ========================================================================== */

:root {
  /* Solder mask (dark bands) */
  --mask: #092747;
  --mask-hi: #0E3C68;
  --mask-lo: #061B31;
  --mask-body: #05162A;   /* component bodies */
  /* Metals and silkscreen */
  --gold: #D9AE5B;        /* ENIG pads */
  --gold-hi: #F2CF85;
  --trace: #20D3C4;       /* brand teal = copper traces */
  --trace-hi: #B5FFF4;
  --silk: #F4F8FB;
  --silk-dim: #A9BDCE;
  /* Paper (light sheets) */
  --paper: #FFFFFF;
  --sheet: #F5F9FC;
  --grid: rgba(9, 39, 71, .055);
  --ink: #092747;
  --text: #1B3349;
  --muted: #4F667B;
  --blue: #0875B9;
  --line: #DCE7EF;
  --danger: #B42318;

  --f-head: "Saira", "Archivo", "Segoe UI", Arial, sans-serif;
  --f-body: "Archivo", "Segoe UI", Arial, sans-serif;

  --s-sm: .9rem;
  --s-0: 1.0625rem;
  --s-1: 1.25rem;
  --s-2: clamp(1.45rem, 1.15rem + 1vw, 1.8rem);
  --s-3: clamp(1.9rem, 1.35rem + 2vw, 2.7rem);
  --s-4: clamp(2.3rem, 1.4rem + 3.4vw, 3.7rem);

  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--s-0);
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 {
  font-family: var(--f-head);
  font-stretch: 108%;
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: var(--s-4); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: var(--s-3); font-weight: 680; }
h3 { font-size: var(--s-1); font-weight: 650; line-height: 1.2; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .6rem 1rem; background: var(--gold); color: var(--mask-lo); border-radius: 6px; font-weight: 700; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Surfaces
   -------------------------------------------------------------------------- */
/* solder mask: dark blue with a faint via grid */
.mask {
  background:
    radial-gradient(circle at 1px 1px, rgba(181, 255, 244, .07) 1.2px, transparent 1.6px) 0 0 / 26px 26px,
    linear-gradient(150deg, var(--mask-hi) 0%, var(--mask) 45%, var(--mask-lo) 100%);
  color: var(--silk-dim);
}
.mask h1, .mask h2, .mask h3 { color: var(--silk); }
.mask a { color: var(--trace); }
.mask a:hover { color: var(--trace-hi); }

/* CAD sheet: white with a fine engineering grid */
.sheet {
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--sheet);
}
.plain { background: var(--paper); }
.section { padding-block: var(--section); }

/* a trace with two vias, used as a section rule */
.trace-rule {
  position: relative;
  height: 3px;
  margin: 0 9px;
  background: linear-gradient(90deg, var(--blue), var(--trace));
  border-radius: 2px;
}
.trace-rule::before, .trace-rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--gold);
}
.trace-rule::before { left: -9px; }
.trace-rule::after { right: -9px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .75rem 1.35rem;
  border-radius: 6px;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold); color: var(--mask-lo); }
.btn-gold:hover { background: var(--gold-hi); color: var(--mask-lo); }
.btn-ink { background: var(--ink); color: var(--silk); }
.btn-ink:hover { background: var(--blue); color: #fff; }
.btn-line { border-color: rgba(244, 248, 251, .55); color: var(--silk); }
.mask .btn-line { color: var(--silk); }
.btn-line:hover, .mask .btn-line:hover { border-color: var(--trace); color: var(--trace-hi); }
.mask .btn-gold { color: var(--mask-lo); }
/* a gold pad inside the button */
.btn-gold::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mask-lo);
  box-shadow: 0 0 0 2px var(--gold-hi);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 27, 49, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(181, 255, 244, .12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--f-head); font-stretch: 118%; font-weight: 760; font-size: 1.12rem; color: var(--silk); letter-spacing: .01em; }
.brand-name span { font-weight: 420; color: var(--silk-dim); }

.site-nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.site-nav a, .sub-toggle {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .85rem;
  border-radius: 6px;
  color: var(--silk);
  font: inherit;
  font-weight: 550;
  font-size: .98rem;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.site-nav a:hover, .sub-toggle:hover { background: rgba(255, 255, 255, .07); color: var(--silk); }
/* current page gets a gold pad marker */
.site-nav a[aria-current="page"]::before, .sub-toggle.current::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.site-nav a.nav-cta { margin-left: .6rem; background: var(--gold); color: var(--mask-lo); font-weight: 650; padding-inline: 1.1rem; }
.site-nav a.nav-cta:hover { background: var(--gold-hi); }
.site-nav a.nav-cta[aria-current="page"]::before { background: var(--mask-lo); }

.has-sub { position: relative; }
.sub-toggle .chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .chev { transform: rotate(-135deg) translate(-2px, -2px); }
.sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 330px;
  margin-left: -165px;
  list-style: none;
  margin-top: 0;
  padding: .5rem;
  background: var(--mask-lo);
  border: 1px solid rgba(181, 255, 244, .18);
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
  display: none;
}
.sub.open { display: block; }
.sub a { display: grid; grid-template-columns: 2.6rem 1fr; align-items: baseline; padding: .6rem .7rem; }
.sub a::before { display: none; }
.sub .d { font-family: var(--f-head); font-stretch: 120%; font-weight: 760; color: var(--gold); font-size: .95rem; }
.sub a[aria-current="page"] { background: rgba(217, 174, 91, .12); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .4rem .8rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--silk);
  cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero (home + service pages)
   -------------------------------------------------------------------------- */
.hero { position: relative; border-bottom: 3px solid var(--gold); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
}
.hero-copy { max-width: 36rem; }
.hero .lede { margin-top: 1.4rem; font-size: var(--s-1); line-height: 1.55; color: var(--silk-dim); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.6rem;
  margin: 2rem 0 0;
  padding: 1.1rem 0 0;
  list-style: none;
  border-top: 1px dashed rgba(181, 255, 244, .25);
  font-size: .98rem;
}
.hero-meta a { color: var(--silk); text-decoration: none; font-weight: 600; }
.hero-meta a:hover { color: var(--trace-hi); text-decoration: underline; }
.hero-board { margin: 0; }
.hero-board figcaption { margin-top: .6rem; text-align: center; font-size: var(--s-sm); color: var(--silk-dim); }

/* service-page hero extras */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0 0 1.4rem; padding: 0; font-size: .92rem; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: rgba(169, 189, 206, .6); }
.crumbs a { color: var(--silk-dim); }
.crumbs [aria-current] { color: var(--silk); }
.designator {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-family: var(--f-head);
  font-stretch: 125%;
  font-weight: 780;
  font-size: 1.05rem;
  color: var(--gold);
}
.designator::before { content: ""; width: 12px; height: 12px; background: var(--gold); border-radius: 2px; }
.hero .tagline { margin-top: .8rem; font-size: var(--s-1); color: var(--silk); font-weight: 500; }

/* --------------------------------------------------------------------------
   The board illustration
   -------------------------------------------------------------------------- */
.board { width: 100%; height: auto; overflow: visible; }
.board .keepout { fill: none; stroke: rgba(244, 248, 251, .22); stroke-width: 1.2; stroke-dasharray: 2 6; }
.board .hole { fill: var(--mask-lo); stroke: var(--gold); stroke-width: 3; }
.board .trace { fill: none; stroke: var(--trace); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: .75; transition: opacity .2s, stroke .2s; }
.board .trace.dim { opacity: .32; stroke-width: 2.6; }
.board .via { fill: var(--mask-lo); stroke: var(--gold); stroke-width: 2.4; }
.board .pad { fill: var(--gold); transition: fill .2s; }
.board .pin { fill: var(--mask-lo); stroke: var(--gold); stroke-width: 3; transition: stroke .2s; }
.board .body { fill: var(--mask-body); stroke: rgba(244, 248, 251, .14); transition: fill .2s, stroke .2s; }
.board .pin1 { fill: rgba(244, 248, 251, .5); }
.board .ref, .board .lbl { text-anchor: middle; fill: var(--silk); pointer-events: none; }
.board text[text-anchor="start"] { text-anchor: start; }
.board .ref { font-family: var(--f-head); font-size: 15px; font-weight: 760; font-stretch: 120%; }
.board .lbl { font-family: var(--f-body); font-size: 10.5px; font-weight: 500; fill: var(--silk-dim); }
.board .silk { fill: rgba(244, 248, 251, .5); font: 600 10px var(--f-head); font-stretch: 125%; letter-spacing: .14em; }
.board .part { cursor: pointer; }
.board .part:focus { outline: none; }
.board .part:focus-visible .body { stroke: var(--gold-hi); stroke-width: 3; }
.board[data-active] .trace { opacity: .22; }
.board[data-active] .trace.on { opacity: 1; stroke: var(--trace-hi); }
.board .part.on .body { fill: var(--blue); stroke: var(--trace-hi); }
.board .part.on .pad { fill: var(--gold-hi); }
.board .part.on .lbl { fill: var(--silk); }

@media (prefers-reduced-motion: no-preference) {
  .js .board .trace { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); animation: route 1.1s cubic-bezier(.6, .1, .2, 1) forwards; animation-delay: var(--delay, 0s); }
  .js .board .via { opacity: 0; animation: appear .35s ease forwards; animation-delay: 1.05s; }
}
@keyframes route { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.head p { color: var(--muted); max-width: 36rem; }
.mask .head p { color: var(--silk-dim); }

/* --------------------------------------------------------------------------
   Summary (home)
   -------------------------------------------------------------------------- */
.summary-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.summary-copy { display: grid; gap: 1.1rem; }
.summary-copy .big { font-size: var(--s-1); color: var(--ink); line-height: 1.5; }
.facts { margin: 1.25rem 0 0; display: grid; }
.facts div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; padding-block: .85rem; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; color: var(--ink); font-weight: 650; }

/* stack-up viewer */
.stackup { margin: 0; padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.stackup h3 { margin-bottom: 1rem; }
.stack { display: flex; flex-direction: column; justify-content: center; height: 250px; padding-inline: 6%; }
.stack .layer { height: 5px; background: linear-gradient(90deg, #B8803E, #E3B373 50%, #B8803E); border-radius: 1px; }
.stack .core { flex: 1 1 0; max-height: 34px; min-height: 6px; background: #D9CFA8; opacity: .8; }
.stack .sm { height: 5px; background: var(--mask); border-radius: 1px; }
.stack-control { display: grid; grid-template-columns: auto minmax(0, 1fr) 2.4rem; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.stack-control label { font-weight: 650; color: var(--ink); }
.stack-control output { font-family: var(--f-head); font-weight: 780; font-size: 1.4rem; color: var(--blue); text-align: right; }
.stack-control input { width: 100%; accent-color: var(--blue); height: 28px; }
.stackup figcaption { margin-top: .9rem; font-size: var(--s-sm); color: var(--muted); }

/* --------------------------------------------------------------------------
   Footprint cards: each service drawn as an IC with gold pads
   -------------------------------------------------------------------------- */
.footprints { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.25rem 2.5rem; }
.footprints > li { grid-column: span 2; display: flex; }
.footprints > li:nth-child(4) { grid-column: 2 / span 2; }
.footprints > li:nth-child(5) { grid-column: 4 / span 2; }
.fp {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-inline: 12px;
  padding: 1.6rem 1.6rem 1.4rem;
  background: var(--mask-body);
  background-image: linear-gradient(160deg, #0B2F52, var(--mask-body));
  border: 1px solid rgba(244, 248, 251, .1);
  border-radius: 6px;
  color: var(--silk-dim);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.fp::before, .fp::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  width: 12px;
  background: repeating-linear-gradient(to bottom, var(--gold) 0 7px, transparent 7px 18px);
  transition: filter .2s;
}
.fp::before { left: -13px; }
.fp::after { right: -13px; }
.fp:hover, .fp:focus-visible { border-color: var(--trace); color: var(--silk-dim); }
.fp:hover::before, .fp:hover::after, .fp:focus-visible::before, .fp:focus-visible::after { filter: brightness(1.18); }
.fp .pin1 { position: absolute; top: 12px; left: 12px; width: 7px; height: 7px; border-radius: 50%; background: rgba(244, 248, 251, .55); }
.fp .ref { font-family: var(--f-head); font-stretch: 125%; font-weight: 780; color: var(--gold); font-size: 1.05rem; }
.fp h3 { margin-top: .55rem; color: var(--silk); font-size: 1.28rem; }
.fp p { margin-top: .7rem; font-size: .98rem; }
.fp .more { margin-top: auto; padding-top: 1.1rem; color: var(--trace); font-weight: 650; font-size: .98rem; }
.fp:hover .more { color: var(--trace-hi); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Process: vias joined by a trace
   -------------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 0; top: 21px; height: 3px; background: linear-gradient(90deg, var(--trace), rgba(32, 211, 196, .2)); }
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: relative;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: var(--mask-lo);
  border: 4px solid var(--gold);
  color: var(--silk);
  font-family: var(--f-head);
  font-weight: 760;
}
.steps h3 { font-size: 1.15rem; }
.steps p { margin-top: .55rem; }
.sheet .steps::before, .plain .steps::before { background: linear-gradient(90deg, var(--blue), var(--trace)); }
.sheet .steps li::before, .plain .steps li::before { background: var(--paper); color: var(--ink); }
.sheet .steps p, .plain .steps p { color: var(--muted); }

/* --------------------------------------------------------------------------
   Service page body
   -------------------------------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem 3.5rem; }
.svc-item { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.svc-item h3 { display: flex; align-items: center; gap: .65rem; }
.svc-item h3::before { content: ""; flex: none; width: 12px; height: 7px; border-radius: 1.5px; background: var(--gold); }
.svc-item p { margin-top: .6rem; color: var(--text); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.prose { display: grid; gap: 1rem; max-width: 40rem; }
.prose .big { font-size: var(--s-1); color: var(--ink); line-height: 1.5; }

/* deliverables drawn as a BOM-like table */
.bom { width: 100%; border-collapse: collapse; font-size: .98rem; background: var(--paper); border: 1px solid var(--line); }
.bom caption { text-align: left; font-family: var(--f-head); font-weight: 680; font-size: var(--s-2); color: var(--ink); padding-bottom: 1rem; }
.bom th, .bom td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.bom thead th { background: var(--ink); color: var(--silk); font-weight: 600; font-size: .9rem; }
.bom td:first-child { width: 3.5rem; font-family: var(--f-head); font-weight: 720; color: var(--blue); }
.bom tbody tr:last-child td { border-bottom: 0; }

.tools { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.tools li { padding: .35rem .8rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 600; color: var(--ink); font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 52rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
  list-style: none;
  min-height: 52px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--gold); transition: background-color .2s; }
.faq details[open] summary::after { background: var(--gold); }
.faq details p { padding: 0 1.2rem 1.15rem; color: var(--text); max-width: 46rem; }

/* related services */
.related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2.25rem; }
.related .fp { padding: 1.3rem 1.3rem 1.15rem; }
.related .fp h3 { font-size: 1.08rem; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem 4rem; align-items: center; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta-inner p { margin-top: 1rem; max-width: 34rem; }
.cta-actions { display: grid; gap: .8rem; justify-items: start; }
.cta-actions .line { color: var(--silk); font-weight: 600; text-decoration: none; }
.cta-actions .line:hover { color: var(--trace-hi); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* connector pinout: J1 */
.pinout { background: var(--mask-body); background-image: linear-gradient(160deg, #0B2F52, var(--mask-body)); border-radius: 10px; padding: 1.5rem 1.5rem .75rem; color: var(--silk-dim); position: relative; }
.pinout-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .9rem; border-bottom: 1px dashed rgba(244, 248, 251, .22); }
.pinout-head .ref { font-family: var(--f-head); font-stretch: 125%; font-weight: 780; color: var(--gold); }
.pinout-head h2 { font-size: 1.15rem; color: var(--silk); }
.pinout dl { margin: 0; }
.pin-row { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .25rem 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(244, 248, 251, .08); }
.pin-row:last-child { border-bottom: 0; }
.pin-row dt { grid-column: 2; font-size: .9rem; color: var(--silk-dim); }
.pin-row dd { grid-column: 2; margin: 0; color: var(--silk); font-weight: 600; overflow-wrap: anywhere; }
.pin-row dd a { color: var(--silk); font-size: 1.12rem; text-decoration-color: rgba(244, 248, 251, .3); }
.pin-row dd a:hover { color: var(--trace-hi); }
.pin-row address { font-style: normal; line-height: 1.5; }
.pin-row .pad { grid-row: 1 / span 2; grid-column: 1; align-self: start; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--mask-lo); font-family: var(--f-head); font-weight: 780; font-size: .9rem; }
.pin-row:first-child .pad { border-radius: 4px; }
.map-link { display: inline-block; margin-top: .45rem; font-size: .95rem; font-weight: 600; }
.map { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--sheet); }
.map iframe { width: 100%; height: 300px; border: 0; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.2rem; }
.form h2 { font-size: var(--s-2); }
.field { display: grid; gap: .4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field label, .field legend { font-weight: 600; color: var(--ink); font-size: .98rem; padding: 0; }
.field legend { margin-bottom: .55rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  padding: .7rem .85rem;
  border: 1.5px solid #C5D5E1;
  border-radius: 6px;
  background: var(--paper);
  min-height: 48px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 117, 185, .18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: .92rem; font-weight: 500; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.checks label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem .9rem; border: 1.5px solid #C5D5E1; border-radius: 6px; font-weight: 500; font-size: .96rem; cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--gold); background: #FBF4E6; color: var(--ink); }
.checks input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.form .btn { justify-self: start; }
.form-note { font-size: .92rem; color: var(--muted); }
.form-note.ok { color: #0B6B4F; font-weight: 600; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.nf { padding-block: clamp(4rem, 10vw, 8rem); text-align: left; }
.nf .code { font-family: var(--f-head); font-stretch: 125%; font-weight: 800; color: var(--gold); font-size: 1.1rem; }
.nf p { margin-top: 1rem; max-width: 34rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 3px solid var(--gold); }
.footer-inner { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.2fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
.site-footer h2 { font-size: 1rem; color: var(--silk); margin-bottom: .9rem; font-stretch: 112%; }
.site-footer p { font-size: .96rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--silk-dim); text-decoration: none; }
.site-footer a:hover { color: var(--trace-hi); text-decoration: underline; }
.footer-brand p { margin-top: .9rem; max-width: 22rem; }
.footer-contact address { font-style: normal; line-height: 1.55; font-size: .96rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem; border-top: 1px dashed rgba(244, 248, 251, .18); font-size: .88rem; }
.footer-base .silk-mark { font-family: var(--f-head); font-stretch: 125%; letter-spacing: .14em; color: rgba(244, 248, 251, .45); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .footprints { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footprints > li, .footprints > li:nth-child(4), .footprints > li:nth-child(5) { grid-column: auto; }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hero-inner, .summary-inner, .split, .contact-grid, .cta-inner, .head { grid-template-columns: 1fr; }
  .hero-board { max-width: 600px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.75rem; }
  .steps::before { display: none; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: var(--mask-lo); border-bottom: 3px solid var(--gold); display: none; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; padding: .75rem var(--gutter) 1.25rem; gap: .1rem; }
  .site-nav a, .sub-toggle { padding: .85rem .5rem; font-size: 1.05rem; width: 100%; }
  .sub-toggle { justify-content: flex-start; }
  .sub { position: static; width: auto; margin: 0 0 .5rem; box-shadow: none; border: 0; border-left: 2px solid var(--gold); border-radius: 0; padding: 0 0 0 .5rem; }
  .site-nav a.nav-cta { margin: .6rem 0 0; justify-content: center; }
}

@media (max-width: 620px) {
  :root { --header-h: 64px; }
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 34px; height: 34px; }
  .menu-text { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footprints, .related { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: .15rem; }
  .field-row { grid-template-columns: 1fr; }
  .stack { height: 200px; }
  .footer-inner { grid-template-columns: 1fr; }
  .bom td:first-child { width: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* desktop: services menu also opens on hover / keyboard focus */
@media (min-width: 861px) {
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
}
