/* Depth and steel tones from the cutaway, shared by the sections below it. */
#well-questions, #technologies {
  --upper: var(--bg);
  --surface: #102733;
  --ink: #e9f0f3;
  --muted: #b1c4ce;
  --secondary: #98afbd;
  --line: #344e5b;
  --guide: #809ba9;
  --accent: var(--signal);
  --warm: #edab73;
  --warm-edge: #985728;
  --steel-edge: #738d9b;
  --steel-light: #c3d1d8;
  --cement: #263e4a;
  --bore: #0a1c27;
  color: var(--ink);
}
[data-theme=light] :is(#well-questions, #technologies) {
  --upper: #e2ebef;
  --surface: #f1f5f7;
  --ink: #173342;
  --muted: #3e5967;
  --secondary: #4e6775;
  --line: #b9cbd4;
  --guide: #68828f;
  --accent: #11688a;
  --warm: #a55d2e;
  --warm-edge: #663b23;
  --steel-edge: #8096a2;
  --steel-light: #d9e3e7;
  --cement: #c9d8df;
  --bore: #f5f8fa;
}

#well-questions {
  background: linear-gradient(170deg, var(--upper) 12%, var(--surface) 95%);
  border-color: var(--line);
}
#technologies {
  background: var(--surface);
  box-shadow: inset 0 1px var(--line);
}
.wq-eyebrow, .wq-tabs button[aria-selected=true] > span:last-child,
.wq-tabs button:hover, .wq-answer a:hover { color: var(--accent); }
.wq-tabs button { color: var(--muted); border-color: var(--line); }
.wq-tabs button:last-child { border-color: var(--line); }
.wq-tabs button[aria-selected=true] { color: var(--ink); border-top-color: var(--accent); }
.wq-answer p, .wq-figure figcaption span:first-child { color: var(--muted); }
.wq-answer a, .fs-technologies .fs-text-link { color: var(--ink); border-color: var(--guide); }
.fs-technologies .fs-text-link:hover { color: var(--accent); }
.wq-tabs button:focus-visible, .wq-answer:focus-visible, .wq-answer a:focus-visible {
  outline-color: var(--accent);
}
.wq-figure svg text { fill: var(--ink); }
.wq-figure svg .wq-note { fill: var(--muted); }
.wq-figure svg .wq-small { fill: var(--secondary); }
.wq-leader { stroke: var(--guide); }
.wq-figure figcaption { color: var(--secondary); border-color: var(--line); }

.fs-technologies :is(.tv-gold,.tv-thermal,.tv-flow-log,.tv-pulse-up,.tv-defect) {
  stroke: var(--warm);
}
.fs-technologies .tv-wizard-pass circle:nth-of-type(2) { fill: var(--warm); }

#contact {
  --contact-entry: #102733;
  --contact-ground: #10292f;
  --contact-core: #193b43;
  --contact-ink: #e1edf0;
  --contact-muted: #a8c2c8;
  --contact-button: #244c56;
  --contact-button-line: #557f88;
  --contact-button-hover: #315e68;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 26px;
  padding: clamp(52px, 6vw, 92px) 24px;
  text-align: center;
  color: var(--contact-ink);
  background:
    linear-gradient(to bottom, var(--contact-entry), transparent 46%),
    radial-gradient(ellipse at 50% 55%, var(--contact-core), transparent 76%),
    var(--contact-ground);
}
[data-theme=light] #contact {
  --contact-entry: #143747;
  --contact-ground: #143747;
  --contact-core: #205266;
  --contact-ink: #f2f8fa;
  --contact-muted: #c5dae3;
  --contact-button: #f2f8fa;
  --contact-button-line: transparent;
  --contact-button-hover: #c5dae3;
}
#contact .nx-contact-copy { position: static; }
#contact .nx-eyebrow { margin: 0 0 18px; color: var(--contact-muted); font-size: 12px; font-weight: 600; letter-spacing: .16em; }
#contact h2 { margin: 0; font-size: clamp(36px, 5vw, 74px); font-weight: 500; line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; }
#contact .nx-contact-copy > p:last-child { margin: 12px 0 0; color: var(--contact-muted); }
#contact button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--contact-button-line);
  border-radius: 100px;
  background: var(--contact-button);
  color: var(--contact-ink);
  font-size: 16px;
}
[data-theme=light] #contact button { color: var(--contact-ground); }
#contact button:hover { background: var(--contact-button-hover); }
#contact button:focus-visible { outline: 2px solid var(--contact-ink); outline-offset: 4px; }
#contact button svg { width: 18px; height: 18px; flex: none; }

/* Match the Technologies & Solutions footer below the Home contact section. */
.ns-foot {
  --footer-text: #9db4c0;
  --footer-ink: #e3edf2;
  --footer-ground: #0a1820;
  --footer-line: #1e3b4a;
  --footer-accent: #41b4e8;
  padding-block: 34px;
  border-top: 1px solid var(--footer-line);
  background: var(--footer-ground);
  color: var(--footer-text);
  font: 13px/1.65 "Myriad Pro", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  letter-spacing: .02em;
}
[data-theme=light] .ns-foot {
  --footer-text: #4a6070;
  --footer-ink: #08161f;
  --footer-ground: #eff4f7;
  --footer-line: #cfdce4;
  --footer-accent: #0a72a3;
}
.ns-footer-content { display: grid; gap: 24px; max-width: 1220px; margin-inline: auto; padding-inline: 24px; }
.ns-footer-iso { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--footer-ink); font-weight: 600; }
.ns-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; }
.ns-footer-bottom p { margin: 0; }
.ns-footer-legal { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.ns-foot a { color: inherit; text-decoration: none; }
.ns-foot a[href]:is(:hover, :focus-visible) { color: var(--footer-accent); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) {
  .ns-footer-bottom { align-items: flex-start; flex-direction: column; }
  .ns-footer-iso { gap: 10px 20px; }
}
