/* A single sapphire family: page canvas → section field → reading surface. */
:root {
  --module-white:#fff;
  --module-paper:#fdfdff;
  --module-ice:#fdfdff;
  --module-ice-strong:#fafcff;
  --module-slate:#fdfdff;
  --module-slate-raised:#fafcff;
  --module-line:#dbe4f8;
}

/* Remove floating decorative masks; the section itself carries the backdrop. */
body :is(.sm-hero-plane,.sm-hero-depth) { display:none !important; }
body :is(.hero,.lab-hero-band,.software-hero,.eng-hero) {
  background:#fff;
  background-image:none;
}
body :is(.adv-section,.exv-section,.depth-section,.ti-section,.tw-section,.eng-section,.software-section) {
  background-image:none;
}

/* Home alternates broad technical stories with the white product canvas. */
body[data-page="home"] :is(#conversation-demo,#gpnpu-advantages,#scenarios) { background:#fff; }
body[data-page="home"] :is(#execution-showcase,#products,#damo-advantages) { background:var(--module-paper); }
body .conversation-workbench { background:var(--module-paper); }
body .conversation-dialogue { background:transparent; }
body .conversation-diagram { background:var(--module-ice-strong); }
body[data-page="home"] #products .tier-card { background:#fff; }
body[data-page="home"] #products .tier-entry { background:#fff; }
body #scenarios .scene-card { background:var(--module-paper); }
body #scenarios .scene-primary { background:var(--module-ice-strong); }

/* Architectural illustrations float on a continuous field, without nested mats. */
body[data-page="architecture"] :is(#lab,#architecture-scale,#parallel-workloads) { background:#fff; }
body[data-page="architecture"] :is(#execution,#d100-ledger) { background:var(--module-paper); }
body :is(.compute-scene,.cs-pe-depth,.exv-figure,.adv-art,.adv-company-art,.d100-product-visual,.device-scene-figure,.ws-webgl) {
  background:transparent;
  background-image:none;
}
body .compute-scene { --cs-grid:rgb(23 68 196 / .01125); }
body .ws-scene { background:var(--module-paper); }
body .ws-scene :is(.ws-webgl,.ws-stage) { background:transparent; }

/* Comparisons sit on pale fields; controls and results use white. */
body[data-page="products"] :is(#product-range,#selector) { background:var(--module-paper); border-radius:12px; }
body[data-page="products"] :is(#product-range .tier-card,#selector .recommendation) { background:#fff; }
body[data-page="products"] #selector :is(.recommendation-capacity,.recommendation-caution) { background:var(--module-paper); }
body[data-page="products"] :is(#device-scene,#selection-constraints) { background:#fff; }
body[data-page="products"] .impact-bridge { background:var(--module-paper); border-radius:12px; }

/* Software: distinct transformation, adaptation, validation and delivery fields. */
body[data-page="software"] :is(#software-evolution,#model-validation,#software-delivery) { background:var(--module-paper); }
body[data-page="software"] :is(#operator-feedback,.software-workloads) { background:#fff; }
body #compiler .compiler-detail { background:var(--module-paper); }
body #operator-feedback-map { background:var(--module-paper); }
body .operator-loop-candidate { background:var(--module-ice-strong); }
body #operator-feedback .tw-panels { background:transparent; }
body[data-page="software"] #software-delivery .delivery-package { background:#fff; }

/* Engineering evidence is grouped on a white working surface within one pale band. */
body[data-page="engineering"] :is(#engineering-overview,#experience,#x100,#roadmap-details,#onboarding) { background:#fff; }
body[data-page="engineering"] :is(#team-details,#validation-evidence) { background:var(--module-paper); }
body[data-page="engineering"] #experience .eng-experience-grid article { background:var(--module-paper); }
body[data-page="engineering"] #team-details :is(.founder-card,.team-card) { background:#fff; }
body #validation-evidence .tw-heading { margin-bottom:36px; }
body #validation-evidence .tw-layout { gap:32px; align-items:start; }
body #validation-evidence .tw-content { padding:28px; border-radius:12px; background:#fff; }
body #validation-evidence .tw-map { padding:0; background:transparent; border-radius:0; }
body #validation-evidence .tw-evidence-node { background:var(--module-paper); }
body #validation-evidence .tw-evidence-node[data-current="true"] { background:var(--module-ice-strong); }
body #validation-evidence .tw-panels { margin-top:24px; }
body #validation-evidence .tw-panel { margin-top:0; }
body #validation-evidence .tw-choice:not([aria-selected="true"]) { background:#fff; }
body #validation-evidence #delivery-assembly-scene { margin-top:36px; padding:28px 0 0; background:transparent; }
body #x100 .eng-x100-map { background:var(--module-paper); }
body #roadmap-details .rd-metrics { background:var(--module-paper); }
body[data-page="engineering"] .eng-contact { background:var(--module-ice-strong); }

/* Inference keeps the four-step walkthrough white and the decode story distinct. */
body[data-page="inference"] .decode-access-section { background:var(--module-paper); border-radius:12px; margin-block:24px 40px; padding:32px; }
body[data-page="inference"] :is(#simulator,#token-phases) { background:#fff; }
body .inference-flow-art::before { background-color:var(--module-paper); background-image:none; }
body #token-phases .ti-phase-map { background:var(--module-paper); }

/* Original solid sapphire brand bands remain the visual anchors. */
body[data-page="home"] :is(.metrics,#contact),body :is(.lab-cta,.cta) {
  background:var(--sapphire);
  background-image:none;
}
body :is(.footer,.lab-footer,.eng-footer,.software-footer) { background:#fff; }

/* Module introductions read vertically, immediately below the display heading. */
body #gpnpu-advantages .adv-heading,
body #execution .depth-head,
body #d100-ledger .depth-head,
body #parallel-workloads .ti-head,
body #software-evolution .evolution-intro,
body #operator-feedback .tw-heading,
body #experience .impact-engineering > div,
body #team-details .sec-head,
body #x100 .eng-section-head,
body #validation-evidence .tw-heading {
  display:block !important;
}
body .heading-description {
  margin:14px 0 0 !important;
  max-width:78ch;
  font-size:15px;
  line-height:1.85;
  color:var(--sapphire-text);
}
body #selection-constraints .selection-heading-evidence {
  display:flex;
  flex-wrap:wrap;
  gap:8px 24px;
  margin:14px 0 0;
  padding:0;
  font-size:13px;
  line-height:1.8;
  background:transparent;
}
@media(max-width:760px) {
  body .heading-description { margin-top:12px !important; font-size:14px; }
}

@media(max-width:900px) {
  body #validation-evidence .tw-content { padding:24px; }
}
@media(max-width:760px) {
  body #validation-evidence .tw-heading { margin-bottom:24px; }
  body #validation-evidence .tw-layout { gap:24px; }
  body #validation-evidence .tw-content { padding:20px 16px; }
  body #validation-evidence #delivery-assembly-scene { margin-top:28px; padding-top:20px; }
  body[data-page="inference"] .decode-access-section { padding:24px 16px; margin-block:16px 28px; border-radius:0; }
}
