/* Evening keeps Soft Orbit's pastel accents, with ink-violet surfaces instead of a black inversion. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f0eaf9;
  --muted: #c1b9ce;
  --paper: #191722;
  --white: #24212f;
  --line: rgba(224, 212, 248, .15);
  --purple: #b5a8ff;
  --purple-dark: #c4baff;
  --lilac: #3d355a;
  --shadow: 0 24px 70px rgba(6, 4, 14, .25);
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 10%, rgba(133, 169, 91, .08), transparent 24rem),
    radial-gradient(circle at 90% 8%, rgba(125, 104, 189, .17), transparent 34rem),
    var(--paper);
}
:root[data-theme="dark"] ::selection { color: #211b33; }
:root[data-theme="dark"] .site-header.is-scrolled { background: rgba(25, 23, 34, .88); border-color: var(--line); }
:root[data-theme="dark"] .pill-nav { border-color: var(--line); background: rgba(36, 33, 47, .94); box-shadow: 0 10px 38px rgba(0, 0, 0, .18); }
:root[data-theme="dark"] :is(.nav-tab.is-active, .skip-link) { background: #d7cdf2; color: #211b33; }
:root[data-theme="dark"] .language-switch { color: var(--muted); }
:root[data-theme="dark"] :is(.sound-toggle, .social-dot, .button-light, .rail-controls button, .studio-control) { background: #302b40; color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .sound-toggle[aria-pressed="true"] { background: var(--lilac); color: var(--purple-dark); }
:root[data-theme="dark"] :is(.sound-toggle:hover, .studio-control:hover, .studio-control[aria-pressed="true"]) { background: #44395f; color: var(--ink); }
:root[data-theme="dark"] :is(.social-dot:hover, .rail-controls button:hover) { background: var(--lime); color: #29263a; }
:root[data-theme="dark"] .rail-controls button:last-child { background: #b5a8ff; color: #211b33; }
:root[data-theme="dark"] .button-dark { background: #c4baff; color: #211b33; }
:root[data-theme="dark"] .button-dark span:last-child { color: #352b59; }
:root[data-theme="dark"] :is(.hero-handnote, .studio-handnote) { color: #c5b5df; }
:root[data-theme="dark"] :is(.about-story, .about-facts article, .dock-card, .skill-card, .career-row, .tech-category, .project-card, .contact-card) { background: var(--white); border-color: var(--line); }
:root[data-theme="dark"] .dock-card:hover { background: #302b40; }
:root[data-theme="dark"] .career-feature { background: linear-gradient(125deg, #272333, #30283f); border-color: var(--line); }
:root[data-theme="dark"] .earlier-experience { background: #2d273f; }
:root[data-theme="dark"] .voice-category { background: linear-gradient(145deg, #24212f, #29312b); }
:root[data-theme="dark"] :is(.skill-index, .tech-heading > span, .project-meta) { color: var(--muted); }
:root[data-theme="dark"] .tech-list li { background: #302a40; }
/* Original logos/screenshots stay unfiltered. Small pale mounts keep dark brand marks legible. */
:root[data-theme="dark"] .company-logo { background: #fffefd; border-color: rgba(255, 255, 255, .4); }
:root[data-theme="dark"] .tech-list img { padding: 3px; border-radius: 7px; background: #f5f3ff; }
:root[data-theme="dark"] .concept-list li { color: #ddd2ff; border-color: var(--line); background: #3d355a; }
:root[data-theme="dark"] .skill-icon { color: #29263a; }
:root[data-theme="dark"] .skill-icon.lilac { color: var(--ink); }
:root[data-theme="dark"] .product-gallery { background: #353042; }
:root[data-theme="dark"] .board-gallery { background: #353042; }
:root[data-theme="dark"] .board-gallery .screenshot-button { background: #292531; }
:root[data-theme="dark"] :is(.video-toggle, .screenshot-button > span:last-child) { background: rgba(36, 33, 47, .9); color: #f0eaf9; border-color: var(--line); }
:root[data-theme="dark"] .image-dialog { border-color: var(--line); }
:root[data-theme="dark"] :is(.experience, .project-next) { background: #30283f; color: var(--ink); }
:root[data-theme="dark"] .next-orb { color: #29263a; }
/* The blue-ink portrait and its warm paper are intentionally unchanged. */
