:root {
  color-scheme: light;
  --theme-page: #ffffff;
  --theme-panel: #f2f5f3;
  --theme-raised: #f6f8f6;
  --theme-contact: #edf4ef;
  --theme-text: #172520;
  --theme-muted: #54635d;
  --theme-subtle: #607067;
  --theme-border: #dce4df;
  --theme-border-strong: #95b4a3;
  --theme-accent: #007c69;
  --theme-accent-hover: #005c4e;
  --theme-hover: #ecf8f1;
  --theme-input: #f9fbf9;
  --theme-input-border: #7b9287;
  --theme-focus: #007c69;
  --theme-danger: #b42e29;
  --theme-button: #30c4a7;
  --theme-button-hover: #69dcc1;
  --theme-button-text: #10271f;
  --theme-shadow: 0 12px 28px #17252012;
  --bg: var(--theme-page);
  --bg-soft: var(--theme-panel);
  --surface: var(--theme-raised);
  --surface-2: var(--theme-panel);
  --text: var(--theme-text);
  --muted: var(--theme-muted);
  --stroke: var(--theme-border);
  --brand: var(--theme-accent);
  --brand-strong: var(--theme-accent-hover);
  --accent: var(--theme-accent);
  --danger: var(--theme-danger);
  --shadow: var(--theme-shadow);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --theme-page: #111416;
  --theme-panel: #181e21;
  --theme-raised: #20282c;
  --theme-contact: #192722;
  --theme-text: #eef3f4;
  --theme-muted: #b7c3c8;
  --theme-subtle: #a2b3b9;
  --theme-border: #354148;
  --theme-border-strong: #58776d;
  --theme-accent: #67ddc2;
  --theme-accent-hover: #a0efdb;
  --theme-hover: #253d35;
  --theme-input: #141b1e;
  --theme-input-border: #71858d;
  --theme-focus: #8ce7d0;
  --theme-danger: #ffaaa3;
  --theme-button: #53d9bd;
  --theme-button-hover: #8ae7d1;
  --theme-shadow: 0 12px 28px #00000040;
}

/* Preserve the device theme if JavaScript is unavailable. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --theme-page: #111416;
    --theme-panel: #181e21;
    --theme-raised: #20282c;
    --theme-contact: #192722;
    --theme-text: #eef3f4;
    --theme-muted: #b7c3c8;
    --theme-subtle: #a2b3b9;
    --theme-border: #354148;
    --theme-border-strong: #58776d;
    --theme-accent: #67ddc2;
    --theme-accent-hover: #a0efdb;
    --theme-hover: #253d35;
    --theme-input: #141b1e;
    --theme-input-border: #71858d;
    --theme-focus: #8ce7d0;
    --theme-danger: #ffaaa3;
    --theme-button: #53d9bd;
    --theme-button-hover: #8ae7d1;
    --theme-shadow: 0 12px 28px #00000040;
  }
}

body {
  color: var(--theme-text);
  background: var(--theme-page);
}

.home-page {
  --ink: var(--theme-text);
  --soft-ink: var(--theme-muted);
  --line: var(--theme-border);
  --green: var(--theme-accent);
  --mint: var(--theme-button);
  color: var(--theme-text);
  background: var(--theme-page);
}

::selection { background: #9ee5d3; color: #10271f; }
a:hover { color: var(--theme-accent-hover); }
:focus-visible, .home-page :focus-visible { outline-color: var(--theme-focus); }
input, select, textarea { accent-color: var(--theme-accent); }

.theme-control:not([hidden]) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  color: var(--theme-muted);
  cursor: pointer;
}

.theme-control:hover { color: var(--theme-accent-hover); background: var(--theme-hover); }
.theme-control:focus-within { outline: 2px solid var(--theme-focus); outline-offset: 2px; }
.theme-control svg { display: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.theme-control .theme-icon-auto { display: block; }
:root[data-theme-preference="light"] .theme-icon-auto,
:root[data-theme-preference="dark"] .theme-icon-auto { display: none; }
:root[data-theme-preference="light"] .theme-icon-light,
:root[data-theme-preference="dark"] .theme-icon-dark { display: block; }

.theme-control select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
}

.theme-control[hidden] { display: none; }

@media (max-width: 1279px) {
  .home-page .header-phone { display: none; }
}

@media (max-width: 1199px) {
  .site-header .nav-toggle { display: inline-grid; margin-left: auto; }
  .site-header #nav-menu {
    display: none;
    position: absolute;
    flex-direction: column;
    align-items: stretch;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - 118px);
    overflow-y: auto;
    margin: 0;
    padding: 12px 24px 20px;
    border: 0;
    border-bottom: 1px solid var(--theme-border);
    border-radius: 0;
    background: var(--theme-page);
  }
  .site-header #nav-menu.open { display: flex; }
  .site-header #nav-menu a { padding: 10px 12px; font-size: 15px; }
}

@media (max-width: 599px) {
  .privacy-header .nav-wrap { flex-wrap: wrap; padding-block: 12px; }
  .privacy-nav { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
  .privacy-nav > a { font-size: 13px; padding-inline: 0; }
}

.site-header, .home-page .site-header,
.breadcrumb-band, .quick-paths, .experience-strip {
  background: var(--theme-page);
  border-color: var(--theme-border);
}

.home-page .utility-bar { background: var(--theme-panel); color: var(--theme-muted); }
.home-page .site-nav a { color: var(--theme-text); }
.site-nav a:hover, .site-nav a.active,
.home-page .site-nav a:hover, .home-page .site-nav a.active,
.quick-link:hover, .industry-sectors a:hover {
  background: var(--theme-hover);
  color: var(--theme-accent);
}

.nav-toggle, .home-page .nav-toggle,
.brand-logo, .back-top {
  background: var(--theme-raised);
  border-color: var(--theme-border-strong);
  color: var(--theme-text);
}

.brand-logo rect, .brand-logo path { stroke: var(--theme-accent); }
.technology-section, .knowledge-section, .audit-scope, .delivery-section, .section.alt {
  background: var(--theme-panel);
}

.contact-section, .inquiry-band { background: var(--theme-contact); }
.home-page .service-card, .knowledge-card, .article-toc-sticky,
.lead-form, .home-page .home-lead-form {
  background: var(--theme-raised);
  border-color: var(--theme-border);
}

.home-page .service-card:hover { background: var(--theme-hover); border-color: var(--theme-border-strong); }
.industry-experience-grid article, .industry-sectors a, .industry-applications li,
.insight, .working-process li, .delivery-steps li, .service-outcome, .contact-email {
  border-color: var(--theme-border-strong);
}

.quick-number, .service-card-top > span:last-child, .service-detail,
.insight-meta, .breadcrumbs-nav,
.contact-people > div > span, .inquiry-people > div > span,
.home-page .contact-copy .contact-location, .form-note,
.home-page .service-outcome h3, .knowledge-meta, .article-meta, .breadcrumbs {
  color: var(--theme-subtle);
}

.city-directory li, .home-lead-form label { color: var(--theme-text); }
.lead-form input, .lead-form select, .lead-form textarea,
.home-page .home-lead-form input, .home-page .home-lead-form select, .home-page .home-lead-form textarea,
.knowledge-search input {
  color: var(--theme-text);
  background: var(--theme-input);
  border-color: var(--theme-input-border);
}

input::placeholder, textarea::placeholder, .home-lead-form textarea::placeholder {
  color: var(--theme-subtle);
  opacity: 1;
}

.form-info.error, .home-page .form-info.error { color: var(--theme-danger); }
.form-info.success { color: var(--theme-accent); }
.btn { background: var(--theme-raised); color: var(--theme-text); border-color: var(--theme-input-border); border-radius: 4px; }
.btn-primary, .home-page .action-primary, .mobile-contact a:first-child {
  background: var(--theme-button);
  color: var(--theme-button-text);
  border-color: transparent;
}

.btn-primary:hover, .home-page .action-primary:hover { background: var(--theme-button-hover); color: var(--theme-button-text); }
.btn-ghost { background: transparent; }
.mobile-contact { background: var(--theme-raised); color: var(--theme-text); border-color: var(--theme-border-strong); box-shadow: var(--theme-shadow); }

.knowledge-card, .article-toc-sticky { border-radius: 6px; }
.knowledge-card .card-more { color: var(--theme-accent); }
.knowledge-card .card-more:hover { color: var(--theme-accent-hover); }
.section-head h3 { color: var(--theme-text); }
.article-content p, .article-content li { color: var(--theme-muted); }
.article-content blockquote { color: var(--theme-text); background: var(--theme-panel); border-color: var(--theme-accent); }

/* Reading layouts remain comfortable independently of the marketing hero scale. */
.article-page .article-layout { max-width: 1240px; gap: 48px; }
.article-page .article-main { min-width: 0; max-width: 76ch; }
.article-page .article-main h1 { font-size: clamp(30px, 3.7vw, 50px); line-height: 1.14; text-wrap: balance; overflow-wrap: anywhere; margin-top: 0; }
.article-page .article-meta { font-size: 14px; line-height: 1.8; margin-block: 20px 28px; }
.article-page .article-content { font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.article-page .article-content h2 { max-width: 100%; margin: 38px 0 14px; font-size: clamp(24px, 2.3vw, 30px); line-height: 1.25; scroll-margin-top: 140px; text-wrap: balance; }
.article-page .article-content h3 { margin-top: 28px; scroll-margin-top: 140px; }
.article-page .article-content p { margin-block: 0 18px; }
.article-page .article-content ul { margin-block: 12px 24px; padding-left: 24px; }
.article-page .article-content li { padding-left: 4px; margin-bottom: 8px; }
.article-page .article-content a, .article-page .article-related a { color: var(--theme-accent); text-decoration: underline; text-underline-offset: 3px; }
.article-page .article-content a:hover, .article-page .article-related a:hover { color: var(--theme-accent-hover); }
.article-page .article-toc-sticky { position: sticky; top: 140px; max-height: calc(100dvh - 170px); overflow-y: auto; padding: 22px; }
.article-page .article-toc-sticky h2 { font-size: 18px; margin-bottom: 12px; }
.article-page .article-toc-sticky a, .article-toc-mobile a { display: block; padding-block: 6px; font-size: 14px; line-height: 1.5; color: var(--theme-text); }
.article-page .article-toc-sticky a:hover, .article-toc-mobile a:hover { color: var(--theme-accent); text-decoration: underline; }
.article-toc-mobile { margin-block: 20px 30px; border: 1px solid var(--theme-border); border-radius: 6px; background: var(--theme-raised); padding: 14px 18px; }
.article-toc-mobile summary { min-height: 24px; cursor: pointer; font-weight: 600; }
.article-toc-mobile ul { padding-left: 20px; margin-bottom: 4px; }
.article-page .article-related { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--theme-border); }
.article-page .article-related h2 { font-size: 25px; margin-bottom: 16px; }
.related-article-list { padding-left: 20px; }
.related-article-list li { padding-block: 8px; }
.article-contact-cta { background: var(--theme-contact); border-color: var(--theme-border); border-left-color: var(--theme-accent); }
.article-contact-cta .article-contact-label { color: var(--theme-accent); }
.article-contact-cta h2, .article-contact-cta .article-contact-phone { color: var(--theme-text); }
.article-contact-cta .article-contact-description, .article-contact-cta .article-contact-phone-label { color: var(--theme-muted); }
.article-contact-cta .article-contact-primary { background: var(--theme-button); color: var(--theme-button-text); }
.article-contact-cta .article-contact-primary:hover { background: var(--theme-button-hover); color: var(--theme-button-text); }
.article-contact-phone > .ui-icon { color: var(--theme-accent); }
.knowledge-page .section-head h1 { max-width: 820px; font-size: clamp(32px, 4vw, 50px); line-height: 1.15; text-wrap: balance; }
.knowledge-page .knowledge-body h2 { margin-block: 10px 14px; font-size: 22px; line-height: 1.3; }
.knowledge-page .knowledge-body > p { margin-block: 12px; color: var(--theme-muted); }
.knowledge-page .knowledge-card { min-width: 0; }
.knowledge-page .knowledge-card .card-more { display: inline-flex; align-items: center; min-height: 44px; }
.footer-registration { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding-block: 24px; border-top: 1px solid #364d3f; font-size: 13px; line-height: 1.7; color: #c8d5cd; }
.home-footer .registration-heading { font-size: 15px; line-height: 1.4; margin: 0 0 6px; color: #fff; }
.registration-note { max-width: 290px; margin: 0; color: #a8bbae; }
.registration-details p { margin: 0 0 4px; overflow-wrap: anywhere; }
.registration-details a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: underline; }
.registration-details .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
.lead-form [aria-invalid="true"], .home-page .home-lead-form [aria-invalid="true"] { border-color: var(--theme-danger); box-shadow: 0 0 0 1px var(--theme-danger); }
.form-noscript { padding: 18px; border: 1px solid var(--theme-border); border-radius: 6px; background: var(--theme-panel); }
.utility-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 16px; margin-left: auto; }
.language-switch { display: inline-flex; gap: 3px; align-items: center; }
.home-page .utility-bar .language-switch a { display: inline-flex; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; padding: 4px 6px; border: 1px solid transparent; border-radius: 3px; font: 650 11px/1.2 "Segoe UI", Arial, sans-serif; color: var(--theme-text); text-decoration: none; }
.language-switch a[aria-current="page"] { border-color: var(--theme-border-strong); color: var(--theme-accent); background: var(--theme-page); }
.language-switch a:hover { background: var(--theme-hover); color: var(--theme-accent-hover); }
.home-page .utility-bar .container { flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.site-header .utility-bar .container { padding-block: 3px; }
.service-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.service-guide-grid li { min-width: 0; border-top: 2px solid var(--theme-accent); padding-top: 20px; }
.service-guide-grid h3 { margin-bottom: 12px; }
.service-guide-grid a { color: var(--theme-accent); text-decoration: underline; text-underline-offset: 3px; }
.service-guide-grid a:hover { color: var(--theme-accent-hover); }
.service-guide-grid p { margin-top: 12px; color: var(--theme-muted); font-size: 15px; line-height: 1.75; }

@media (max-width: 1199px) {
  :root:not(.js-ready) .site-header .nav-wrap { flex-wrap: wrap; }
  :root:not(.js-ready) .site-header .nav-toggle { display: none; }
  :root:not(.js-ready) .site-header #nav-menu { display: flex; position: static; width: 100%; max-height: none; overflow: visible; }
}
@media (max-width: 1099px) {
  .article-page .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-page .article-main { max-width: 82ch; margin-inline: auto; }
  .article-page .article-toc { display: none; }
}
@media (min-width: 1100px) {
  .article-page .article-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .article-page .article-toc { display: block; align-self: stretch; }
  .article-toc-mobile { display: none; }
}
@media (max-width: 599px) {
  .article-page .section { padding-top: 36px; }
  .article-page .article-content { font-size: 16px; line-height: 1.8; }
  .article-page .article-main h1 { font-size: clamp(28px, 7.5vw, 36px); }
  .footer-registration { grid-template-columns: 1fr; gap: 12px; }
  .article-page .article-content h2 { scroll-margin-top: 125px; }
  .service-guide-grid { grid-template-columns: 1fr; gap: 24px; }
  .utility-actions { gap: 4px; }
  .utility-actions:has(.language-switch) > a { display: none; }
  .language-switch { gap: 1px; }
  .language-switch a { min-height: 36px; min-width: 32px; }
  .theme-control:not([hidden]) { width: 36px; height: 36px; }
  .home-page .utility-bar .container { column-gap: 6px; }
  .home-page .utility-bar .container > span { flex: 1; min-width: 130px; font-size: 10px; line-height: 1.5; }
}
.site-footer { background: var(--theme-panel); border-color: var(--theme-border); }

@media (max-width: 959px) {
  .home-page .site-nav { background: var(--theme-page); }
}

@media (max-width: 759px) {
  .site-nav { background: var(--theme-raised); }
}

:root[data-theme="dark"] .technology-logos img {
  background: #f3f5f3;
  mix-blend-mode: normal;
  padding: 8px;
  border-radius: 3px;
}
:root[data-theme="dark"] .home-footer { background: #0b1011; color: var(--theme-muted); }
:root[data-theme="dark"] .footer-brand > span,
:root[data-theme="dark"] .footer-bottom { color: var(--theme-subtle); }
:root[data-theme="dark"] .footer-bottom { border-color: var(--theme-border); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .technology-logos img {
    background: #f3f5f3;
    mix-blend-mode: normal;
    padding: 8px;
    border-radius: 3px;
  }
  :root:not([data-theme]) .home-footer { background: #0b1011; color: var(--theme-muted); }
  :root:not([data-theme]) .footer-brand > span,
  :root:not([data-theme]) .footer-bottom { color: var(--theme-subtle); }
  :root:not([data-theme]) .footer-bottom { border-color: var(--theme-border); }
}
