:root { --theme-control-border: #758ba4; }
:root[data-theme="dark"] {
  --paper: #111d30;
  --mist: #182944;
  --ink: #f3f7ff;
  --body: #c7d6ed;
  --muted: #bacbe6;
  --line: #3b506d;
  --blue-strong: #a9d7ff;
  --focus: #a9d7ff;
  --theme-control-border: #8ba3c3;
}

.mast-tools { display: flex; align-items: center; gap: clamp(8px, 1.7vw, 24px); }
.brand .brand-logo-dark { display: none; }
[data-theme="dark"] .brand .brand-logo-light { display: none; }
[data-theme="dark"] .brand .brand-logo-dark { display: block; }
.immersive .mast .brand img,
.immersive .footer .brand img {
  width: clamp(125px, 12.5vw, 182px);
  padding: 0;
  background: transparent;
}
.immersive .mast .brand span { font: 650 .7rem/1.12 var(--sans); letter-spacing: 0; }

.theme-toggle {
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--theme-control-border);
  border-radius: 3px;
  color: var(--blue-strong);
  background: transparent;
  font-size: .82rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.theme-toggle:hover { background: var(--mist); }
.theme-toggle[hidden], .theme-toggle .theme-sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
[data-theme="dark"] .theme-toggle .theme-sun { display: inline; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.immersive .hero-copy h1 { margin-top: 0; letter-spacing: -.055em; }
.immersive .section-top h2,
.immersive .company-section h2,
.immersive .process-section h2,
.immersive .contact-section h2,
.immersive .audience h2 { margin-top: 0; }
.leadership-heading { color: var(--body); font-size: .96rem; font-weight: 620; letter-spacing: 0; }
.immersive .process-list li { grid-template-columns: minmax(0, 1fr); }
.immersive .process-list li::before { content: none; }

[data-theme="dark"] .mast { background: var(--paper); }
[data-theme="dark"] .immersive > .mast { background: transparent; }
[data-theme="dark"] .immersive .mast .brand span { color: var(--ink); }
[data-theme="dark"] .immersive .path-section,
[data-theme="dark"] .immersive .audiences { background: #0e192b; }
[data-theme="dark"] .immersive .company-section { background: #121f34; }
[data-theme="dark"] .immersive :is(.path-section, .audiences, .company-section, .process-section, .contact-section) {
  border-top: 1px solid var(--line);
}
[data-theme="dark"] .immersive .paths,
[data-theme="dark"] .immersive .path + .path,
[data-theme="dark"] .immersive .leadership { border-color: var(--line); }
[data-theme="dark"] .immersive .path:hover { background: #182c48; }
[data-theme="dark"] .immersive .path-icon { background: #1b3151; color: var(--blue-strong); }
[data-theme="dark"] .immersive .audience { border-color: #6487b5; }
[data-theme="dark"] .immersive .leadership-name { color: var(--ink); }

@media (max-width: 1180px) {
  .theme-toggle .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .immersive .mast-tools .desktop-nav { gap: clamp(14px, 2vw, 27px); }
}

@media (max-width: 420px) {
  .immersive .mast .brand span { display: none; }
}
