/* Dark theme: neutral surfaces, restrained blue actions, continuous closing band.
   Load after the shared palette. Light-mode styling is intentionally inherited. */
:root.dark {
  color-scheme: dark;
  --ui-page: #101317;
  --ui-card: #1b2027;
  --ui-soft: #181d24;
  --ui-ink: #edf1f6;
  --ui-muted: #aeb9c7;
  --ui-action: #79b9f4;
  --ui-on-action: #101923;
  --ui-hover: #acd5fa;
  --ui-on-hover: #101923;
  --ui-border: #363f4a;
  --ui-control-border: #647486;
  --ui-focus: #91c9ff;
  --card-foreground: var(--ui-ink);
  --popover: var(--ui-card);
  --popover-foreground: var(--ui-ink);
  --secondary-foreground: var(--ui-ink);
  --muted: var(--ui-card);
  --band: var(--ui-soft);
  --band-foreground: var(--ui-ink);
  --band-muted: var(--ui-muted);
  --band-border: var(--ui-border);
  --tone-graphite-soft: var(--ui-soft);
  --tone-steel-soft: var(--ui-soft);
  --surface-shadow: 0 12px 32px -24px #0009;
  --shadow-soft: 0 8px 24px -16px #0008;
  --shadow-lift: 0 16px 32px -20px #0009;
}

/* Keep a single quiet surface through the closing CTA and footer. Repeated
   fade-out/fade-in ramps previously created a dark trench between them. */
:root.dark .seas-contact-band:last-child {
  --section-fade-paint: linear-gradient(to bottom,
    var(--ui-page), var(--ui-soft) var(--section-fade-depth), var(--ui-soft));
  padding-block: calc(clamp(2.5rem, 5vw, 4rem) + var(--section-fade-depth) * .65);
}

:root.dark .seas-footer {
  background: linear-gradient(to bottom,
    var(--ui-page), var(--ui-soft) var(--section-fade-depth), var(--ui-soft));
}

:root.dark main:has(.seas-contact-band:last-child) + .seas-footer {
  background: var(--ui-soft);
}

/* The supplied blue logo has an opaque white canvas. Invert that canvas to
   black and screen-blend it away; the original artwork and proportions stay. */
:root.dark .brand-lockup {
  background: transparent;
  padding: 5px 0;
  border-radius: 0;
}

:root.dark .brand-lockup img {
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
}

@media (forced-colors: active) {
  :root.dark .brand-lockup { background: white; }
  :root.dark .brand-lockup img { filter: none; mix-blend-mode: normal; }
}
