/* Landing appearance shares the portal preference, switch, and jet-black palette. */
.landing-theme {
  color-scheme: light;
  --surface: #eeece6;
  --hover: #f0eef9;
  --field-border: #c8c6c1;
  --accent: #5840ba;
  --accent-soft: #eee8ff;
}
.landing-theme.dark-style {
  color-scheme: dark;
  --paper: #000000;
  --paper-bright: #000000;
  --ink: #f4f2ed;
  --muted: #a5a7b3;
  --line: #2b2b2b;
  --surface: #000000;
  --hover: #000000;
  --field-border: #454545;
  --accent: #c0abff;
  --accent-soft: #000000;
}
.landing-theme .site-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(.75rem, 1.5vw, 1.5rem);
}
.landing-theme .site-header nav { justify-content: center; }
.landing-theme .appearance-control { font-family: var(--display); }
.landing-theme.dark-style :focus-visible { outline-color: var(--accent); }
.landing-theme.dark-style ::selection { color: #0b0c11; background: #76e7ff; }
.landing-theme.dark-style .skip-link { color: var(--ink); background: #000; border: 1px solid var(--line); }

/* Flat black chrome and sections; color remains in artwork and spectrum accents. */
.landing-theme.dark-style .site-header,
.landing-theme.dark-style .site-header.is-scrolled,
.landing-theme.dark-style .site-header.menu-open #primary-navigation,
.landing-theme.dark-style .site-header.menu-open #primary-navigation a:hover,
.landing-theme.dark-style .services-overview,
.landing-theme.dark-style .neural-labs,
.landing-theme.dark-style .pledge,
.landing-theme.dark-style .pledge-scene,
.landing-theme.dark-style .pledge-media,
.landing-theme.dark-style .pledge-card,
.landing-theme.dark-style .neural-labs__preview,
.landing-theme.dark-style .neural-labs__preview figcaption,
.landing-theme.dark-style .service-index__row:hover,
.landing-theme.dark-style .service-index__row:focus-visible,
.landing-theme.dark-style .service-index__icon,
.landing-theme.dark-style .button-quiet,
.landing-theme.dark-style .button-quiet:hover,
.landing-theme.dark-style .spotify-launcher,
.landing-theme.dark-style .spotify-player__panel {
  background: #000000;
  border-color: var(--line);
  box-shadow: none;
}
.landing-theme.dark-style .site-header nav a,
.landing-theme.dark-style .cinematic-lede,
.landing-theme.dark-style .cinematic-footer,
.landing-theme.dark-style .cinematic-context,
.landing-theme.dark-style .service-index__number,
.landing-theme.dark-style .signal-strip span,
.landing-theme.dark-style .signal-strip small,
.landing-theme.dark-style .section-label,
.landing-theme.dark-style .approach-copy p:last-child,
.landing-theme.dark-style .pledge-principles span,
.landing-theme.dark-style .pledge-principles p,
.landing-theme.dark-style .neural-labs__copy > p:not(.section-label),
.landing-theme.dark-style .neural-labs__features span,
.landing-theme.dark-style .neural-labs__features small,
.landing-theme.dark-style .contact-copy > p:not(.section-label),
.landing-theme.dark-style .site-footer address,
.landing-theme.dark-style .site-footer p,
.landing-theme.dark-style .site-intro__kicker,
.landing-theme.dark-style .site-intro__steps,
.landing-theme.dark-style .spotify-player__header small,
.landing-theme.dark-style .spotify-player__close {
  color: var(--muted);
}
.landing-theme.dark-style .site-header nav a:hover,
.landing-theme.dark-style .site-header nav a[aria-current='page'],
.landing-theme.dark-style .spotify-player__close:hover { color: var(--ink); }
.landing-theme.dark-style .header-entry,
.landing-theme.dark-style .header-entry:hover,
.landing-theme.dark-style .button-primary.button-themed {
  color: #0b0c11;
  background: var(--button-spectrum-fill);
  border-color: transparent;
}
.landing-theme.dark-style .button-primary.button-themed { box-shadow: none; }
.landing-theme.dark-style .button-primary.button-themed:hover {
  box-shadow: 0 0 0 1px var(--accent);
}
.landing-theme.dark-style .service-accordion--violet { --service-accent: #9470ff; }
.landing-theme.dark-style .entry-spark { background: #0b0c11; }
.landing-theme.dark-style .cinematic-eyebrow {
  color: var(--muted);
  background: #000000;
}
.landing-theme.dark-style .cinematic-light { display: none; }
.landing-theme.dark-style .cinematic-context > a {
  background: #000000;
  box-shadow: inset 0 0 0 1px var(--line);
}
.landing-theme.dark-style .cinematic-context > a:hover { color: var(--accent); }
.landing-theme.dark-style .site-intro__rail { background: var(--line); }
.landing-theme.dark-style .site-intro__signal i { box-shadow: 0 0 0 1px var(--field-border); }
.landing-theme.dark-style .site-intro__field { background: none; }
.landing-theme.dark-style .contact-orbit { box-shadow: none; }

/* The public assistant resets its tokens, so explicitly match landing surfaces. */
.landing-theme.dark-style .alshival-widget {
  --paper: #000000;
  --bright: #000000;
  --surface: #000000;
  --hover: #000000;
  --field: #000000;
  --accent-soft: #000000;
  --positive-bg: #000000;
  --negative-bg: #000000;
  --warning-bg: #000000;
  --info-bg: #000000;
  --line: #2b2b2b;
  --field-border: #454545;
}
@media (max-width: 1200px) {
  .landing-theme .site-header { grid-template-columns: minmax(0, 1fr) auto auto; }
  .landing-theme .site-header nav { justify-content: start; }
}
@media (max-width: 760px) {
  .landing-theme .site-header { gap: .4rem; }
  .landing-theme .header-actions .header-entry,
  .landing-theme .header-actions .header-login { display: none; }
  .landing-theme .site-header.menu-open .nav-account { display: flex; }
  .landing-theme .appearance-control { gap: 4px; }
  }
@media (max-width: 360px) {
  .landing-theme .site-header .brand { font-size: 1.1rem; }
  .landing-theme .site-header .site-menu-toggle { padding-inline: .35rem; gap: .3rem; }
}
