/* ER / V19 — consistent dark surfaces. Loaded after all prior styles. */
:root {
  --er-ink:#080A09;
  --er-charcoal:#101512;
  --er-surface:#141B17;
  --er-paper:#0D110F;
  --er-white:#F7F9F5;
  --er-slate:#C4CDC5;
  --er-neon:#C6FF34;
  --er-border:rgba(255,255,255,.15);
}
/* Uniform dark editorial backgrounds, never paper white, for the sections
   introduced by V18. All readable copy and controls are re-toned together. */
body[data-page="home"] .home-brand-preview,
body[data-page="home"] .home-partners-v7,
body[data-page="projects"] .project-testimonial-cta,
body[data-page="notfound"] .error-hero-v7 {
  background:#0D110F!important;
  color:#F7F9F5!important;
  border-color:rgba(255,255,255,.12)!important;
}
body[data-page="home"] .home-brand-preview,
body[data-page="home"] .home-partners-v7,
body[data-page="projects"] .project-testimonial-cta {
  border-top:1px solid rgba(255,255,255,.11)!important;
}
body[data-page="home"] .home-brand-preview .eyebrow,
body[data-page="home"] .home-partners-v7 .eyebrow,
body[data-page="projects"] .project-testimonial-cta .eyebrow {
  color:var(--er-neon)!important;
}
body[data-page="home"] .home-brand-preview :is(.h-xl,.section-heading,.text-link),
body[data-page="home"] .home-partners-v7 .partners-heading .h-xl,
body[data-page="projects"] .project-testimonial-heading h2,
body[data-page="notfound"] .error-copy-v7 :is(.display,.lead) {
  color:var(--er-white)!important;
}
body[data-page="home"] .home-brand-preview .text-link:hover,
body[data-page="home"] .home-brand-preview .text-link:focus-visible {
  color:var(--er-neon)!important;
}
body[data-page="home"] .home-partners-v7 .partners-section-intro,
body[data-page="projects"] .project-testimonial-action p {
  color:var(--er-slate)!important;
}
body[data-page="home"] .home-brand-preview .brand-project-card {
  background:#141B17!important;
  color:var(--er-white)!important;
  border:1px solid var(--er-border)!important;
}
body[data-page="home"] .home-brand-preview .brand-project-card:is(:hover,:focus-visible) {
  border-color:var(--er-neon)!important;
}
/* Keep each partner's separately authored official-color hover intact.
   Grayscale idle mark, legible colored logo on hover, dark tile by default. */
body[data-page="home"] .home-partners-v7 .partner-logo:not(:hover):not(:focus-visible) {
  background:#121815!important;
  border-color:var(--er-border)!important;
}
/* Projects: dark grid CTA with an outlined divider and pill CTA. */
body[data-page="projects"] .project-testimonial-cta-inner {
  border-color:rgba(255,255,255,.24)!important;
}
body[data-page="projects"] .er-testimonial-pill {
  color:#090C09!important;
  background:var(--er-neon)!important;
  border:1px solid var(--er-neon)!important;
}
body[data-page="projects"] .er-testimonial-pill:is(:hover,:focus-visible) {
  color:var(--er-white)!important;
  background:transparent!important;
  border-color:var(--er-white)!important;
}
/* 404 returns to the same black page rhythm, with its neon 404 centerpiece. */
body[data-page="notfound"] .error-hero-v7 {border-top:1px solid var(--er-border)!important;}
body[data-page="notfound"] .error-hero-v7 .btn {background:var(--er-neon)!important;color:#080A09!important;border-color:var(--er-neon)!important;}
body[data-page="notfound"] .error-hero-v7 .btn:is(:hover,:focus-visible) {background:transparent!important;color:var(--er-white)!important;border-color:var(--er-white)!important;}
body[data-page="notfound"] .error-art-v7 .error-art-caption {color:var(--er-white)!important;}
body[data-page="notfound"] .error-number-v7 {color:var(--er-neon)!important;}
/* Header and footer backgrounds stay neutral on every route. */
.footer {background:var(--er-ink)!important;}
/* Keep the featured brand cards dark as well; never show a pale rectangle
   inside an otherwise charcoal section. Restrict this to listing cards,
   not the original brand case-study banners or their photographs. */
body[data-page="home"] .brand-project-card.brand-theme-visa .brand-identity-art,
body[data-page="projects"] .brand-project-card.brand-theme-visa .brand-identity-art {
  background:radial-gradient(ellipse at 67% 33%,#243765 0%,#101B2F 62%,#0B1118 100%)!important;
}
body[data-page="home"] .brand-project-card.brand-theme-home-credit .brand-identity-art,
body[data-page="projects"] .brand-project-card.brand-theme-home-credit .brand-identity-art {
  background:radial-gradient(ellipse at 67% 33%,#542633 0%,#27151C 60%,#121012 100%)!important;
}
body[data-page="home"] .brand-project-card .brand-identity-logo,
body[data-page="projects"] .brand-project-card .brand-identity-logo {
  filter:brightness(0) invert(1) drop-shadow(0 8px 16px rgba(0,0,0,.18))!important;
}
body[data-page="home"] .brand-project-card .brand-art-signature,
body[data-page="projects"] .brand-project-card .brand-art-signature {color:rgba(255,255,255,.8)!important;}
