:root {
  --mask: #07100c;
  --mask-2: #0b1611;
  --package: #0c0e0d;
  --package-2: #151917;
  --copper: #8f5c35;
  --copper-mid: #b8743f;
  --copper-hi: #ffb26b;
  --gold: #d7b45a;
  --silk: #e9efe9;
  --silk-dim: rgba(233, 239, 233, 0.5);
  --text: #e6ece7;
  --muted: #9aa8a0;
  --line: rgba(233, 239, 233, 0.09);
  --led: #5dff9d;
  --cyan: #6be4ff;
  --red: #ff6b6b;
  --font-sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  background-color: var(--mask);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(40, 90, 60, 0.18), transparent 60%),
    radial-gradient(rgba(233, 239, 233, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

.silk {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--silk);
  opacity: 0.85;
}

/* ---------- Buttons: copper pads ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
.btn--pad {
  color: #1a1206;
  background: linear-gradient(180deg, #e9cb78, var(--gold) 55%, #b8923b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 1px #8a6a24;
}
.btn--pad:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 1px #c89a3a, 0 0 24px rgba(255, 178, 107, 0.45); }
.btn--ghost { color: var(--text); background: transparent; border: 1px solid rgba(215, 180, 90, 0.45); }
.btn--ghost:hover { border-color: var(--copper-hi); color: var(--copper-hi); }
.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background: rgba(7, 16, 12, 0.94);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__chip { width: 30px; height: 30px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-mono); }
.logo__text b { font-size: 16px; letter-spacing: 0.12em; }
.logo__text small { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 26px; font-family: var(--font-mono); font-size: 14px; }
.nav > a:not(.btn) { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav > a:not(.btn):hover { color: var(--copper-hi); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; gap: 4px; padding: 10px 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; background: var(--silk); border-radius: 1px; }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 12px);
  display: grid; min-width: 200px; padding: 8px;
  background: #0c1511; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.menu__panel a { padding: 10px 12px; text-decoration: none; border-radius: 4px; color: var(--text); }
.menu__panel a:hover { background: rgba(255, 255, 255, 0.04); color: var(--copper-hi); }

/* ---------- Hero board SVG ---------- */
.board { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.board .trace { fill: none; stroke: var(--copper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* No CSS filters on animated layers: they force a full re-raster every frame. */
.board .glow .trace { stroke: var(--copper-hi); stroke-width: 2.6; }
.board .pulse, .board .pulse-halo { fill: none; stroke-linecap: round; }
.board .pulse { stroke: #ffe3bf; stroke-width: 3; }
.board .pulse-halo { stroke: rgba(255, 160, 80, 0.28); stroke-width: 9; }
.board .pad { fill: var(--gold); }
.board .via { fill: var(--mask); stroke: var(--copper-mid); stroke-width: 2; }
.board .via-hole { fill: #000; }
.board .fid { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0.7; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 150px;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.ic {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 56px 48px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 40%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, var(--package-2), var(--package));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: ic-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes ic-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
.ic__ref { position: absolute; top: -26px; left: 0; }
.ic__pin1 {
  position: absolute; top: 18px; left: 18px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a2f2c, #070807);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ic__part { position: absolute; top: 14px; right: 20px; margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: rgba(233, 239, 233, 0.32); }
.eyebrow { margin: 0 0 18px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-hi); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); }
.lead { margin: 22px 0 0; font-size: 18px; color: var(--muted); max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Section heads ---------- */
.section { position: relative; padding: 100px 0; }
.sec-head { max-width: 680px; }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.silk-label {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silk-dim);
}
.silk-label__ref { padding: 2px 8px; border: 1.5px solid var(--silk-dim); border-radius: 3px; color: var(--silk); }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 46px); }
.sec-head p { color: var(--muted); margin: 14px 0 0; }

/* ---------- Trunk: a schematic wire through all service sections ---------- */
.trunk-zone { position: relative; --trunk-offset: 30px; }
.trunk-zone .wrap { padding-left: 88px; }
.trunk-zone > section { position: relative; z-index: 2; }
.trunk { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.trunk-base, .trunk-fill { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.trunk-base { stroke: #3d2b1c; stroke-width: 2; }
.trunk-fill { stroke: var(--copper-hi); stroke-width: 2.4; }
.trunk-head__halo { fill: rgba(255, 178, 107, 0.22); }
.trunk-head__dot { fill: #ffe9cc; }
.sym path, .sym circle { fill: none; stroke: #6d5a49; stroke-width: 2; stroke-linejoin: round; transition: stroke 0.3s, fill 0.3s; }
.sym.on path, .sym.on circle { stroke: var(--copper-hi); }
.sym--led.on path:first-child { fill: var(--led); stroke: var(--led); }
.sym--led.on path:last-child { stroke: var(--led); }
.sym-ref { font: 700 12px var(--font-mono); fill: var(--silk); }
.sym-val { font: 500 10.5px var(--font-mono); fill: var(--silk-dim); }

/* ---------- Engagement ---------- */
.svc-intro { padding-bottom: 40px; }
.engage { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; margin-top: 48px; }
.engage__card {
  position: relative; padding: 28px; border-radius: 10px;
  background: linear-gradient(180deg, var(--package-2), var(--package));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.engage__k { position: absolute; top: 18px; right: 22px; margin: 0; font: 700 12px var(--font-mono); color: var(--silk-dim); }
.engage__card h3 { font-size: 22px; }
.engage__card p { color: var(--muted); margin: 10px 0 0; font-size: 15.5px; }
.engage__art { width: 100%; max-width: 260px; margin-top: 18px; display: block; }
.engage__one { transition: stroke 0.4s 0.6s, fill 0.4s 0.6s; }
.engage.is-in .engage__one { stroke: var(--copper-hi); fill: #1d1710; }
.engage__chain { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 18px 0 0; }
.engage__chain li {
  position: relative; font: 500 12px var(--font-mono); padding: 6px 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted);
  transition: color 0.3s, border-color 0.3s; transition-delay: calc(var(--i) * 0.18s + 0.3s);
}
.engage__chain li + li::before { content: "→"; position: absolute; left: -18px; color: var(--copper); }
.engage.is-in .engage__chain li { color: var(--silk); border-color: rgba(255, 178, 107, 0.5); }

/* ---------- Service sections ---------- */
.svc { padding: 90px 0; }
.svc__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.svc--flip .svc__art { order: -1; }
.svc__code { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 500 13px var(--font-mono); letter-spacing: 0.12em; color: var(--copper-hi); }
.svc h2 { font-size: clamp(30px, 3.8vw, 44px); }
.svc__lead { color: var(--muted); margin: 16px 0 0; }
.svc__get { margin: 26px 0 10px; font: 700 12px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--silk-dim); }
.svc__list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 8px; }
.svc__list li { position: relative; padding-left: 26px; }
.svc__list li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 6px; border-radius: 1px; background: var(--gold); }
.svc__art { margin: 0; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.art { display: block; width: 100%; height: auto; }

/* ---------- Illustration primitives ---------- */
.art text { white-space: pre; }
.a-lbl { font: 700 11px var(--font-mono); letter-spacing: 0.16em; fill: var(--silk-dim); }
.a-t { font: 500 11px var(--font-mono); fill: #dfe6e1; }
.a-dim { fill: var(--muted); }
.a-hi { fill: var(--copper-hi); }
.a-ok { fill: var(--led); }
.a-bad { fill: var(--red); }
.a-cyan { fill: var(--cyan); }
.a-silk { font: 700 9.5px var(--font-mono); letter-spacing: 0.06em; fill: rgba(233, 239, 233, 0.75); }
.a-sym, .a-wire { fill: none; stroke: #cfd8d2; stroke-width: 1.6; stroke-linejoin: round; }
.a-cu { fill: none; stroke: #d08a4b; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.a-pwr { stroke-width: 4.5; }
.a-cu-dim { fill: none; stroke: #6b4a2e; stroke-width: 2; opacity: 0.55; stroke-linecap: round; }
.a-board { fill: #0e2419; stroke: #1f4a33; stroke-width: 1.5; }
.a-board--new { stroke: #2f7a52; }
.a-hole { fill: var(--mask); stroke: #c9a24e; stroke-width: 2; }
.a-pkg { fill: #121614; stroke: rgba(255, 255, 255, 0.12); }
.a-pad { fill: var(--gold); }
.a-via { fill: #0e2419; stroke: #d08a4b; stroke-width: 2; }
.a-badge { fill: rgba(93, 255, 157, 0.07); stroke: rgba(93, 255, 157, 0.45); }
.a-file { fill: #121614; stroke: rgba(215, 180, 90, 0.5); }
.a-row { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.08); }
.a-x { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.a-xbox { fill: none; stroke: var(--red); stroke-width: 1.5; }
.a-okbox { fill: none; stroke: var(--led); stroke-width: 2; }
.a-dimline { fill: none; stroke: var(--muted); stroke-width: 1; }
.a-scope { fill: #151a18; stroke: rgba(255, 255, 255, 0.1); }
.a-screen { fill: #04110b; stroke: rgba(93, 255, 157, 0.25); }
.a-grid { stroke: rgba(93, 255, 157, 0.12); }
.a-wave { fill: none; stroke-width: 2; stroke-linejoin: round; }
.a-wave--1 { stroke: var(--copper-hi); }
.a-wave--2 { stroke: var(--cyan); }
.a-knob { fill: #0b0e0d; stroke: rgba(255, 255, 255, 0.18); }
.a-knob-mark { stroke: var(--silk); stroke-width: 2; }
.a-led { fill: #1d2a22; stroke: rgba(93, 255, 157, 0.4); stroke-width: 1.5; }
.a-tp { fill: none; stroke: var(--gold); stroke-width: 2; }
.a-probe { fill: none; stroke-width: 2; opacity: 0.85; }
.a-probe--1 { stroke: var(--copper-hi); }
.a-probe--2 { stroke: var(--cyan); }
.a-code { fill: #0a0d0c; stroke: rgba(255, 255, 255, 0.1); }
.a-code-t { font: 500 11.5px var(--font-mono); fill: #cfd8d2; }
.a-code-k { fill: var(--copper-hi); }
.a-code-c { fill: var(--cyan); }
.a-caret { fill: var(--copper-hi); }
.a-dot1 { fill: var(--red); opacity: 0.7; }
.a-dot2 { fill: #ffd36b; opacity: 0.7; }
.a-dot3 { fill: var(--led); opacity: 0.7; }
.a-pin1 { fill: rgba(255, 255, 255, 0.25); }
.a-bus { fill: none; stroke: #ffe3bf; stroke-width: 2.6; stroke-dasharray: 6 44; stroke-dashoffset: 50; opacity: 0; }
.a-disp { fill: #04110b; stroke: rgba(107, 228, 255, 0.3); }
.a-bar { fill: var(--cyan); opacity: 0.7; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0.3); }
.a-encl { fill: #171c1a; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.5; }
.a-btn { fill: #0b0e0d; stroke: rgba(255, 255, 255, 0.16); }
.a-pulse { fill: none; stroke: #ffe3bf; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0.03 0.97; stroke-dashoffset: 0.03; opacity: 0; }
.node__box { fill: #121614; stroke: rgba(255, 255, 255, 0.14); }
.node__name { fill: var(--muted); }
.rec-beam { transform: translateX(0); }

/* ---------- Illustration states ---------- */
/* .svc.is-on (homepage, set when the trunk current reaches the section)
   or .is-in (other pages, set on scroll into view) starts the sequence. */
.draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.pop { opacity: 0; }
:is(.svc.is-on, .is-in) .draw { animation: draw var(--dur, 0.8s) var(--ease, cubic-bezier(0.4, 0, 0.2, 1)) var(--d, 0s) forwards; }
:is(.svc.is-on, .is-in) .pop { animation: pop 0.45s ease-out var(--d, 0s) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

:is(.svc.is-on, .is-in) .rec-beam { animation: beam 3.2s linear infinite; }
@keyframes beam { from { transform: translateX(0); } to { transform: translateX(300px); } }
:is(.svc.is-on, .is-in) .a-wave.loop { stroke-dasharray: 1 1; animation: trace 2.6s linear infinite; }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: -1; } }
:is(.svc.is-on, .is-in) .a-led.loop { animation: blink 1s steps(1) 0.6s infinite; }
@keyframes blink { 50% { fill: var(--led); stroke: var(--led); } }
:is(.svc.is-on, .is-in) .a-caret { animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
:is(.svc.is-on, .is-in) .a-bus { opacity: 1; animation: bus 1.2s linear 1s infinite; }
@keyframes bus { to { stroke-dashoffset: 0; } }
:is(.svc.is-on, .is-in) .a-bar { animation: eq 1.4s ease-in-out calc(var(--i) * -0.23s) infinite alternate; }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
:is(.svc.is-on, .is-in) .a-pulse { opacity: 1; animation: pulse-run 2.4s linear 3.4s infinite; }
@keyframes pulse-run { from { stroke-dashoffset: 0.03; } to { stroke-dashoffset: -0.97; } }
:is(.svc.is-on, .is-in) .node .node__box { animation: lit 0.3s var(--d) forwards; }
:is(.svc.is-on, .is-in) .node .node__name { animation: lit-t 0.3s var(--d) forwards; }
@keyframes lit { to { fill: #1d1710; stroke: var(--copper-hi); } }
@keyframes lit-t { to { fill: var(--silk); } }
:is(.svc.is-on, .is-in) .red-old { animation: fade-old 0.6s ease 1.1s forwards; }
@keyframes fade-old { to { opacity: 0.35; } }

/* Pause everything that's off screen. */
.svc:not(.is-vis) *, [data-loop]:not(.is-vis) * { animation-play-state: paused !important; }

/* ---------- Process ---------- */
.steps { position: relative; list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 11px; right: 11px; top: 11px; height: 2px; }
.steps::before { background: #3d2b1c; }
.steps::after { background: var(--copper-hi); transform: scaleX(0); transform-origin: left; transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1); }
.steps.is-in::after { transform: scaleX(1); }
.step { position: relative; }
.step__tp { position: relative; z-index: 1; display: block; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--gold); background: var(--mask); }
.step__tp i { position: absolute; inset: 5px; border-radius: 50%; background: #1d2a22; transition: background 0.3s, box-shadow 0.3s; transition-delay: calc(var(--i) * 0.3s + 0.1s); }
.steps.is-in .step__tp i { background: var(--copper-hi); box-shadow: 0 0 10px var(--copper-hi); }
.step__id { display: block; margin: 16px 0 6px; font: 700 12px var(--font-mono); letter-spacing: 0.1em; color: var(--silk-dim); }
.step h3 { font-size: 20px; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Datasheet ---------- */
.ds { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent); overflow: hidden; }
.ds__head { display: flex; justify-content: space-between; gap: 24px; padding: 36px 36px 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ds__head h2 { font-size: clamp(30px, 4.2vw, 46px); }
.ds__head .muted { margin: 10px 0 0; }
.ds__part { margin: 0; text-align: right; font: 700 15px var(--font-mono); letter-spacing: 0.1em; color: var(--silk); }
.ds__part span { font-weight: 500; font-size: 12px; color: var(--muted); }
.ds__table { width: 100%; border-collapse: collapse; }
.ds__table th { text-align: left; padding: 12px 36px; font: 700 11px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--silk-dim); background: rgba(255, 255, 255, 0.02); }
.ds__table td { padding: 16px 36px; border-top: 1px solid var(--line); vertical-align: top; }
.ds__table td:first-child { width: 32%; font: 500 14px var(--font-mono); color: var(--copper-hi); }
.ds__table tbody tr { opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s; transition-delay: calc(var(--i) * 0.07s); }
.ds.is-in .ds__table tbody tr { opacity: 1; transform: none; }
.ds__off td:first-child { color: var(--red); }
.ds__off td:last-child { color: var(--muted); }

/* ---------- Project cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.pcard { display: flex; flex-direction: column; text-decoration: none; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, var(--package-2), var(--package)); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); transition: box-shadow 0.3s, transform 0.3s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255, 178, 107, 0.55), 0 20px 40px rgba(0, 0, 0, 0.4); }
.pcard[hidden] { display: none; }
.pcard__img { aspect-ratio: 16 / 10; background: #0e2419; display: grid; place-items: center; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__body { padding: 22px; }
.pcard__tags { margin: 0 0 8px; font: 500 12px var(--font-mono); color: var(--copper-hi); }
.pcard h3 { font-size: 21px; }
.pcard__body > p:not(.pcard__tags) { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 16px 0 0; }
.chips li { font: 500 11.5px var(--font-mono); color: var(--silk-dim); padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 14px; height: 14px; margin-top: 6px; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--copper-hi); transition: transform 0.25s; }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa summary:hover { color: var(--copper-hi); }
.qa p { margin: 0 0 22px; color: var(--muted); max-width: 640px; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(40, 90, 60, 0.06), transparent 60%); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact__intro h2 { font-size: clamp(30px, 4.2vw, 46px); }
.contact__intro .muted { margin: 14px 0 0; }
.contact__mail { margin: 28px 0 0; display: grid; gap: 4px; }
.contact__mail span { font: 700 11px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--silk-dim); }
.contact__mail a { font: 500 18px var(--font-mono); color: var(--copper-hi); text-decoration: none; }
.contact__conn { width: 220px; margin-top: 32px; display: block; }
.contact__conn .a-cu { stroke: #6b4a2e; }
.form {
  display: grid; gap: 18px; padding: 32px; border-radius: 12px;
  background: linear-gradient(180deg, var(--package-2), var(--package));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 60px rgba(0, 0, 0, 0.35);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row--end { align-items: start; }
.field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > span, .field legend { font: 500 12.5px var(--font-mono); color: var(--silk-dim); padding: 0; }
.field em { font-style: normal; opacity: 0.6; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: #090c0b; color: var(--text); font: 16px var(--font-sans); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper-hi); box-shadow: 0 0 0 3px rgba(255, 178, 107, 0.15); }
.stages__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: block; padding: 8px 12px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: var(--muted); transition: all 0.2s; }
.chip input:checked + span { border-color: var(--copper-hi); color: var(--silk); background: rgba(255, 178, 107, 0.08); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 178, 107, 0.3); }
.file { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; cursor: pointer; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file__btn { padding: 9px 14px; border-radius: 4px; border: 1px dashed rgba(215, 180, 90, 0.6); font: 500 13px var(--font-mono); color: var(--gold); }
.file__name { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { grid-column: 1 / -1; color: var(--silk-dim); font-size: 12.5px; }
.file:focus-within .file__btn { box-shadow: 0 0 0 3px rgba(255, 178, 107, 0.3); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--copper-hi); flex: none; }
.form .btn { justify-self: start; }
.flash { margin: 0; padding: 12px 16px; border-radius: 6px; font-size: 15px; }
.flash--ok { background: rgba(93, 255, 157, 0.08); border: 1px solid rgba(93, 255, 157, 0.4); color: #bfffd8; }
.flash--err { background: rgba(255, 107, 107, 0.08); border: 1px solid rgba(255, 107, 107, 0.4); color: #ffc9c9; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__brand p { color: var(--muted); max-width: 340px; margin: 16px 0 12px; }
.footer__mail { font-family: var(--font-mono); color: var(--copper-hi); text-decoration: none; }
.footer__h { margin: 0 0 12px; font: 700 11px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--silk-dim); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { text-decoration: none; color: var(--muted); }
.footer ul a:hover { color: var(--copper-hi); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font: 13px var(--font-mono); color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav > a:not(.btn) { display: none; }
  .menu { display: block; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
}
@media (max-width: 900px) {
  .svc__grid { grid-template-columns: 1fr; gap: 36px; }
  .svc--flip .svc__art { order: 0; }
  .engage, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .faq__grid, .contact__grid { gap: 32px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar .btn--sm { padding: 8px 12px; font-size: 12px; }
  .logo__text small { display: none; }
  .hero { padding: 150px 0 170px; align-items: flex-start; }
  .ic { padding: 44px 22px 30px; }
  .ic__part { font-size: 10px; right: 14px; }
  .lead { font-size: 16.5px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .section { padding: 72px 0; }
  .trunk-zone { --trunk-offset: 12px; }
  .trunk-zone .wrap { padding-left: 46px; }
  .sym-val, .sym-ref { display: none; }
  .svc { padding: 64px 0; }
  .svc__art { padding: 8px; }
  .steps { grid-template-columns: 1fr; }
  .ds__head { padding: 26px 20px 20px; }
  .ds__part { text-align: left; }
  .ds__table td { display: block; padding: 4px 20px; border-top: 0; width: auto !important; }
  .ds__table tbody tr { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
  .ds__table thead { display: none; }
  .pgrid { grid-template-columns: 1fr; }
  .form { padding: 22px 18px; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ic { animation: none; }
  .draw { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
  .pop { opacity: 1; animation: none !important; }
  .art *, .pg * { animation: none !important; transition: none !important; }
  .steps::after { transform: scaleX(1); transition: none; }
  .ds__table tbody tr { opacity: 1; transform: none; }
}
