/* Theme extension: preserves the original dark design and all navigation layouts. */
html{color-scheme:dark}
html[data-theme="light"]{color-scheme:light;--bg:#f5f9fc;--surface:#ffffff;--surface2:#eaf3f7;--border:rgba(29,68,86,.19);--text:#122c3b;--muted:#547081;--mint:#087e6b;--mint-dark:#086957}
html[data-theme="light"] body{background:var(--bg);color:var(--text)}
html[data-theme="light"] .site-header{background:rgba(255,255,255,.94);border-bottom-color:var(--border)}
html[data-theme="light"] .main-nav a,html[data-theme="light"] .brand,html[data-theme="light"] .lang-btn,html[data-theme="light"] .theme-toggle,html[data-theme="light"] .menu-btn{color:var(--text)}
html[data-theme="light"] .menu-btn span{background:var(--text)}
html[data-theme="light"] .hero-lead,html[data-theme="light"] .section-intro,html[data-theme="light"] .section-body,html[data-theme="light"] .expertise-card p,html[data-theme="light"] .service-card p,html[data-theme="light"] .step p,html[data-theme="light"] .footer p,html[data-theme="light"] .project-content p,html[data-theme="light"] .fact span:last-child{color:#476577}
html[data-theme="light"] .eyebrow{background:rgba(8,126,107,.065);border-color:rgba(8,126,107,.19)}
html[data-theme="light"] .gradient-text{background:linear-gradient(110deg,#087b67,#188ab4);background-clip:text;-webkit-background-clip:text;color:transparent}
html[data-theme="light"] .expertise-section{background:linear-gradient(180deg,#eaf4f7,#f5f9fc);border-color:var(--border)}
html[data-theme="light"] .expertise-card,html[data-theme="light"] .project-card,html[data-theme="light"] .service-card,html[data-theme="light"] .quote-form,html[data-theme="light"] .legal-card,html[data-theme="light"] .rfq-intro-card,html[data-theme="light"] .quote-aside{background:#fff;border-color:var(--border);box-shadow:0 10px 30px rgba(24,58,76,.055);color:var(--text)}
html[data-theme="light"] .expertise-card h3,html[data-theme="light"] .project-card h3,html[data-theme="light"] .service-card h3,html[data-theme="light"] .legal-card h1,html[data-theme="light"] .legal-card h2{color:var(--text)}
html[data-theme="light"] .skill-chips span,html[data-theme="light"] .hero-tags span,html[data-theme="light"] .project-tags span{border-color:var(--border);color:#476577}
html[data-theme="light"] .card-number,html[data-theme="light"] .strip-inner span,html[data-theme="light"] .project-category{color:#547081}
html[data-theme="light"] .filter,html[data-theme="light"] .search-box,html[data-theme="light"] .lang-btn,html[data-theme="light"] .legal-toggle{background:#fff;color:var(--text);border-color:var(--border)}
html[data-theme="light"] .field input,html[data-theme="light"] .field select,html[data-theme="light"] .field textarea,html[data-theme="light"] input,html[data-theme="light"] textarea,html[data-theme="light"] select{background:#fff;color:#122c3b;border-color:#b9cdd5}
html[data-theme="light"] input::placeholder,html[data-theme="light"] textarea::placeholder{color:#6a8190}
html[data-theme="light"] .btn-ghost{background:#fff;border-color:#bacfd8;color:#173b4c}
html[data-theme="light"] .nav-cta,html[data-theme="light"] .btn-primary,html[data-theme="light"] .mobile-quote-fab{background:#087e6b;color:white}
html[data-theme="light"] .nav-cta:hover,html[data-theme="light"] .btn-primary:hover{background:#096855;color:white}
html[data-theme="light"] .trust-strip{background:#eaf4f7}
html[data-theme="light"] .contact-panel{background:linear-gradient(112deg,#e0f3ee,#dcecf6);border-color:#b1d9d0;color:#133445}
html[data-theme="light"] .contact-panel h2,html[data-theme="light"] .contact-panel p,html[data-theme="light"] .contact-details,html[data-theme="light"] .contact-details a{color:#133445}
html[data-theme="light"] .contact-emblem{opacity:.16;color:#087e6b}
html[data-theme="light"] .footer{background:#edf5f7}
html[data-theme="light"] .footer strong,html[data-theme="light"] .footer a{color:#173b4c}
html[data-theme="light"] .legal-review{color:#476577}
html[data-theme="light"] .preview-dialog{background:#fff;color:#122c3b}
html[data-theme="light"] .preview-caption{background:#fff;color:#122c3b}
html[data-theme="light"] .slide-rail-bottom,html[data-theme="light"] .slide-arrows button{color:var(--text)}
@media(max-width:900px){html[data-theme="light"] .main-nav.open{background:#fff;border-color:var(--border)}html[data-theme="light"] .main-nav.open a{color:#173b4c}}
@media(max-width:600px){html[data-theme="light"].slides-mode .slide-rail{background:rgba(255,255,255,.97)!important;border-color:var(--border)!important}}
/* The showcase's dark illustration panels intentionally retain their original contrast. */
.theme-toggle{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;width:41px;height:41px;min-width:41px;flex:0 0 41px;border:1px solid var(--border);border-radius:12px;background:transparent;color:var(--text);transition:background .2s,border-color .2s,transform .2s;cursor:pointer}
.theme-toggle:hover{border-color:var(--mint);background:rgba(112,228,196,.08);transform:translateY(-1px)}
.theme-toggle svg{display:block;width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-sun{display:none}
html[data-theme="light"] .theme-toggle .theme-sun{display:block}
html[data-theme="light"] .theme-toggle .theme-moon{display:none}
.theme-toggle:focus-visible{outline:3px solid var(--mint);outline-offset:3px}
.legal-topbar .theme-toggle{margin-inline-start:auto}
.legal-topbar{gap:12px;display:flex;align-items:center}
@media(max-width:480px){.nav-actions{gap:7px}.theme-toggle{width:37px;height:37px;min-width:37px;flex-basis:37px}.legal-topbar .theme-toggle{margin-inline-start:auto}}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}}


/* V3 — eye-comfort palette calibration. Softer dark blues, warm light neutrals,
   restrained accent saturation, consistent contrast and quiet theme transitions. */
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#101b27;--surface:#182836;--surface2:#213341;
  --border:rgba(179,202,209,.20);--text:#e4edf0;--muted:#adbec8;
  --mint:#83d7bb;--mint-dark:#60b99c;
}
html[data-theme="light"]{
  color-scheme:light;
  --bg:#f4f6f3;--surface:#fbfcfa;--surface2:#e9efeb;
  --border:rgba(46,82,78,.20);--text:#233741;--muted:#546c70;
  --mint:#267c68;--mint-dark:#1e6455;
}
html[data-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-theme="dark"] .site-header{background:rgba(16,27,39,.95);border-color:var(--border)}
html[data-theme="dark"] .main-nav a:not(.is-current-section){color:#b6c8cf}
html[data-theme="dark"] .main-nav a.is-current-section{color:#b7f0db;background:rgba(131,215,187,.105);border-color:rgba(131,215,187,.34);box-shadow:0 0 7px rgba(131,215,187,.09);text-shadow:none}
html[data-theme="dark"] .main-nav a.is-current-section::after{background:#83d7bb;box-shadow:0 0 5px rgba(131,215,187,.25)}
html[data-theme="dark"] .expertise-section,html[data-theme="dark"] .services-section{background:linear-gradient(180deg,#162532,#101b27)}
html[data-theme="dark"] .expertise-card,html[data-theme="dark"] .project-card,html[data-theme="dark"] .service-card,html[data-theme="dark"] .quote-form,html[data-theme="dark"] .legal-card,html[data-theme="dark"] .quote-aside,html[data-theme="dark"] .rfq-intro-card{background:#192b39;border-color:var(--border);box-shadow:0 10px 35px rgba(3,13,19,.14)}
html[data-theme="dark"] .acknowledgment-card,html[data-theme="dark"] .personal-acknowledgments,html[data-theme="dark"] .rfq-fieldset{background:#1b2c39;border-color:var(--border)}
html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .rfq-fieldset input,html[data-theme="dark"] .rfq-fieldset select,html[data-theme="dark"] .rfq-fieldset textarea{background:#14232f;color:var(--text);border-color:#526b77}
html[data-theme="dark"] .field,html[data-theme="dark"] .rfq-fieldset{color:var(--text)}
html[data-theme="dark"] .field input::placeholder,html[data-theme="dark"] .field textarea::placeholder{color:#9db2bb}
html[data-theme="dark"] .lang-btn,html[data-theme="dark"] .filter,html[data-theme="dark"] .search-box,html[data-theme="dark"] .legal-toggle{background:#1a2c39;border-color:var(--border);color:var(--text)}
html[data-theme="dark"] .nav-cta,html[data-theme="dark"] .btn-primary,html[data-theme="dark"] .mobile-quote-fab{background:#83d7bb;color:#132c29;box-shadow:none}
html[data-theme="dark"] .nav-cta:hover,html[data-theme="dark"] .btn-primary:hover{background:#a1dfca;color:#132c29}
html[data-theme="dark"] .hero-lead,html[data-theme="dark"] .section-intro,html[data-theme="dark"] .section-body,html[data-theme="dark"] .service-card p,html[data-theme="dark"] .expertise-card p,html[data-theme="dark"] .project-content p{color:#b3c4cd}
html[data-theme="dark"] .footer{background:#121f2b}
html[data-theme="dark"] .contact-panel{background:linear-gradient(120deg,#214039,#243c47);border-color:rgba(131,215,187,.25)}
html[data-theme="dark"] .legal-card p,html[data-theme="dark"] .legal-card li{color:#c0cdd3}
html[data-theme="dark"] .legal-review{color:#b6c8cf!important}
html[data-theme="dark"] .ambient{opacity:.12}
html[data-theme="light"] body{background:var(--bg);color:var(--text)}
html[data-theme="light"] .site-header{background:rgba(250,252,249,.96);border-color:var(--border)}
html[data-theme="light"] .main-nav a{color:#415d63}
html[data-theme="light"] .main-nav a:hover{color:#246b5b}
html[data-theme="light"] .main-nav a.is-current-section{color:#205c50;background:rgba(38,124,104,.09);border-color:rgba(38,124,104,.26);box-shadow:none;text-shadow:none}
html[data-theme="light"] .main-nav a.is-current-section::after{background:#267c68;box-shadow:none}
html[data-theme="light"] .gradient-text{background:linear-gradient(110deg,#267c68,#416f87);background-clip:text;-webkit-background-clip:text;color:transparent}
html[data-theme="light"] .expertise-section,html[data-theme="light"] .services-section{background:linear-gradient(180deg,#ebf0ec,#f4f6f3);border-color:var(--border)}
html[data-theme="light"] .expertise-card,html[data-theme="light"] .project-card,html[data-theme="light"] .service-card,html[data-theme="light"] .quote-form,html[data-theme="light"] .legal-card,html[data-theme="light"] .quote-aside,html[data-theme="light"] .rfq-intro-card{background:#fbfcfa;color:var(--text);border-color:var(--border);box-shadow:0 8px 24px rgba(28,59,55,.045)}
html[data-theme="light"] .acknowledgment-card,html[data-theme="light"] .personal-acknowledgments,html[data-theme="light"] .rfq-fieldset{background:#f9fbf8;color:var(--text);border-color:var(--border)}
html[data-theme="light"] .field,html[data-theme="light"] .rfq-fieldset,html[data-theme="light"] .rfq-fieldset label{color:var(--text)}
html[data-theme="light"] .field input,html[data-theme="light"] .field select,html[data-theme="light"] .field textarea,html[data-theme="light"] .rfq-fieldset input,html[data-theme="light"] .rfq-fieldset select,html[data-theme="light"] .rfq-fieldset textarea{background:#fff;color:#233741;border-color:#aebfbb}
html[data-theme="light"] .field select option{background:#fff;color:#233741}
html[data-theme="light"] .form-hint,html[data-theme="light"] .quote-aside p,html[data-theme="light"] .aside-email,html[data-theme="light"] .legal-card p,html[data-theme="light"] .legal-card li,html[data-theme="light"] .legal-meta p{color:#4c676c}
html[data-theme="light"] .legal-card a,html[data-theme="light"] .legal-home,html[data-theme="light"] .ack-website,html[data-theme="light"] .service-cta{color:#206f5e}
html[data-theme="light"] .legal-review{color:#536c70!important}
html[data-theme="light"] .lang-btn,html[data-theme="light"] .filter,html[data-theme="light"] .search-box,html[data-theme="light"] .legal-toggle{background:#fbfcfa;border-color:var(--border);color:var(--text)}
html[data-theme="light"] .nav-cta,html[data-theme="light"] .btn-primary,html[data-theme="light"] .mobile-quote-fab{background:#267c68;color:#fff;box-shadow:none}
html[data-theme="light"] .nav-cta:hover,html[data-theme="light"] .btn-primary:hover{background:#1e6455;color:#fff}
html[data-theme="light"] .contact-panel{background:linear-gradient(115deg,#e3eee7,#e7eeef);border-color:#b6cec3;color:var(--text)}
html[data-theme="light"] .contact-panel h2,html[data-theme="light"] .contact-panel p,html[data-theme="light"] .contact-details,html[data-theme="light"] .contact-details a{color:#294b4b}
html[data-theme="light"] .trust-strip,html[data-theme="light"] .footer{background:#e9efeb}
html[data-theme="light"] .hero-lead,html[data-theme="light"] .section-intro,html[data-theme="light"] .section-body,html[data-theme="light"] .service-card p,html[data-theme="light"] .expertise-card p,html[data-theme="light"] .project-content p{color:#4c666d}
html[data-theme="light"] .ambient{opacity:.07}
html[data-theme="light"] .service-symbol{background:rgba(38,124,104,.09);border-color:rgba(38,124,104,.19);color:#267c68}
html[data-theme="light"] .theme-toggle:hover{background:rgba(38,124,104,.06)}
/* Keep intentionally dark photo overlays and mock device screens to preserve their readability. */
html[data-theme="light"] .portrait-caption,html[data-theme="light"] .hero-panel,html[data-theme="light"] .float-card{color:#f0f7f7}
/* Short, non-flashing color transitions only; do not animate layout/position. */
@media(prefers-reduced-motion:no-preference){
 html[data-theme] body,html[data-theme] .site-header,html[data-theme] .expertise-section,html[data-theme] .services-section,html[data-theme] .footer,html[data-theme] .trust-strip,html[data-theme] .contact-panel,html[data-theme] .expertise-card,html[data-theme] .service-card,html[data-theme] .project-card,html[data-theme] .quote-form,html[data-theme] .legal-card,html[data-theme] .quote-aside,html[data-theme] .rfq-fieldset,html[data-theme] .acknowledgment-card,html[data-theme] .personal-acknowledgments,html[data-theme] .field input,html[data-theme] .field select,html[data-theme] .field textarea,html[data-theme] .main-nav a,html[data-theme] .lang-btn,html[data-theme] .theme-toggle{transition-property:background-color,border-color,color,box-shadow;transition-duration:.28s;transition-timing-function:ease-out}
}
@media(prefers-reduced-motion:reduce){html[data-theme] *{scroll-behavior:auto}}

/* Approach section: fully theme-aware timeline, step markers and surfaces. */
html[data-theme="dark"] .approach-section{background:#142430;border-color:rgba(171,202,205,.17)}
html[data-theme="dark"] .approach-section .steps{border-color:rgba(171,202,205,.17)}
html[data-theme="dark"] .approach-section .step{border-color:rgba(171,202,205,.17)}
html[data-theme="dark"] .approach-section .step>span{background:#213744;color:#a6e6d0;border-color:rgba(131,215,187,.40);box-shadow:0 0 0 5px #142430}
html[data-theme="dark"] .approach-section .step.timeline-active>span{background:#285147;color:#e8fff4;border-color:#83d7bb;box-shadow:0 0 0 5px #142430,0 0 12px rgba(131,215,187,.22)}
html[data-theme="dark"] .approach-section .step.timeline-active h3{color:#b4e6d3}
html[data-theme="dark"] .approach-section .steps::before{background:rgba(131,215,187,.20)}
html[data-theme="dark"] .approach-section .steps::after{background:linear-gradient(180deg,#a9dfca,#69bba1);box-shadow:0 0 8px rgba(131,215,187,.20)}
html[data-theme="light"] .approach-section{background:#eaf0ec;border-color:rgba(35,75,69,.16)}
html[data-theme="light"] .approach-section .section-heading h2,html[data-theme="light"] .approach-section .step h3{color:#233741}
html[data-theme="light"] .approach-section .section-intro,html[data-theme="light"] .approach-section .step p{color:#4c666d}
html[data-theme="light"] .approach-section .steps,html[data-theme="light"] .approach-section .step{border-color:rgba(35,75,69,.17)}
html[data-theme="light"] .approach-section .step>span{background:#f7faf7;color:#267c68;border-color:rgba(38,124,104,.35);box-shadow:0 0 0 5px #eaf0ec}
html[data-theme="light"] .approach-section .step.timeline-active>span{background:#267c68;color:#fff;border-color:#267c68;box-shadow:0 0 0 5px #eaf0ec,0 0 0 2px rgba(38,124,104,.10)}
html[data-theme="light"] .approach-section .step.timeline-active h3{color:#216957}
html[data-theme="light"] .approach-section .steps::before{background:rgba(38,124,104,.17)}
html[data-theme="light"] .approach-section .steps::after{background:linear-gradient(180deg,#4e9f86,#267c68);box-shadow:none}
@media(prefers-reduced-motion:reduce){html[data-theme] .approach-section .steps::after{box-shadow:none}}
