/* PAVLIDIS light comparison: enabled exclusively by ?ansicht=hell.
   Photographs, material swatches, the logo outline and the 3D models stay intact. */
html[data-theme-preview=light] {
  color-scheme:light;
  background:#fff;
  --preview-ink:#001020;
  --preview-secondary:#34556c;
  --preview-accent:#34556c;
  --preview-surface:#fff;
  --preview-raised:#f4f8fa;
  --preview-line:#00102026;
  --preview-button:#001020;
  --preview-button-ink:#fff;
  --preview-shadow:0 14px 40px #0010200d;
}
html[data-theme-preview=light][data-theme-preview=light] body {
  --brand-heading:var(--preview-ink);
  --brand-heading-accent:var(--preview-accent);
  --navy:#001020;--deep:#001020;--white:#fff;--pale:#edf3f7;
  --ink:#001020;--text:#203e53;--muted:#34556c;--line:#00102026;--blue:#34556c;
  --finish-edge:#00102026;--finish-highlight:#fff;
  --finish-surface:linear-gradient(140deg,#fff,#f1f6f9);
  --finish-shadow:var(--preview-shadow);
  color:var(--preview-ink)!important;
  background:#fff!important;
}
html[data-theme-preview=light][data-theme-preview=light] body :is(
  h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,small,figcaption,span,strong,summary,
  a,button,output,legend,address,blockquote,input,select,textarea
) {color:var(--preview-ink)!important}
html[data-theme-preview=light][data-theme-preview=light] body :is(
  .heading-accent,.muted-title,.title-dot,.eyebrow,.world-eyebrow,.world-intro,
  .section-lead,.technical-note,.technical-qualifier,.form-note,.form-start-note,
  .document-brand-context span,.site-copyright,.document-copyright,
  .mobile-home-kicker,.mobile-section-kicker,.proof-location,.proof-mount,
  .project-location,.pb-row-number,.pb-row-scope,.service-number,.model-note,
  .model-format,.model-axis,.model-instructions,.model-system-name,
  .model-fixing-note,.mobile-scene-entry-status,.system-choice-label small,
  .sheet-title-group small,.sim-material,.sim-qualifier,.studio-options-title
) {color:var(--preview-secondary)!important}

/* White page canvas and pale, softly edged supporting surfaces. */
html[data-theme-preview=light][data-theme-preview=light] body :is(
  .site-header,.document-header,.site-footer,.document-footer,.page-hero,.hero,
  .document-main,.section,.systems-section,.company-section,
  .service-detail,.subpage-cta,.sustainability,.mobile-contact-bar,
  .mobile-scene-entry,.world-navigation,.document-navigation,#navigation,
  .model-settings,.studio-controls,.studio-details-content,.application-panel,
  .contact-aside,.quantity-panel,.inquiry-panel,.inquiry-dialog,.lightbox,
  .garage-guide-dialog,.garage-guide-content,.garage-guide-card,.garage-guide-bubble,
  .immersive-sheet,.sim-popover,.immersive-scene-caption,.sim-heat-legend,
  .inquiry-fallback,.inquiry-copy,.inquiry-draft,.inquiry-selection,.request-next,
  .studio-inspector,.montage-views,.application-status,.spatial-brand-loader,
  .model-loading
) {
  background:var(--preview-surface)!important;
  color:var(--preview-ink)!important;
  border-color:var(--preview-line)!important;
  box-shadow:var(--preview-shadow)!important;
}
/* The home copy is a foreground layer above its sibling WebGL scene. */
html[data-theme-preview=light][data-theme-preview=light] body .world-panel {
  background:transparent!important;box-shadow:none!important;
}
html[data-theme-preview=light][data-theme-preview=light] body :is(
  .page-hero,.world-panel,.document-main,.section,.systems-section,.company-section,
  .site-footer,.document-footer,.studio-details-content,.studio-controls
) {box-shadow:none!important}
html[data-theme-preview=light][data-theme-preview=light] body :is(
  .proof-card,.pb-project-row,.project-detail,.system-card,.process-list li,
  .mobile-process li,.job,.faq-list details,.mobile-home-faq details,
  .application-option>span,.application-choice,.model-card,.model-notes,
  .studio-callout,.world-label,.model-measurement,.model-badge,
  .viewer-navigation,.viewer-zoom,.site-dock,.document-dock,.model-format,
  .sim-hotspot>span:last-child,.spatial-label,.world-scene-note,.garage-guide-actions a,
  .spatial-fallback .spatial-loading
) {
  background:var(--preview-raised)!important;
  color:var(--preview-ink)!important;
  border-color:var(--preview-line)!important;
  box-shadow:0 5px 20px #00102008!important;
}
html[data-theme-preview=light][data-theme-preview=light] body :is(
  .hero-bottom,
  .site-footer-lead,.document-footer-lead,.site-footer-grid,
  .system-tabs,.model-top,.model-instructions,.model-settings,.model-detail,
  .service-list,.service-row,.process-list li,.pb-project-row,.project-facts,
  .faq-list details,.mobile-home-faq details,.mobile-service-links>div,
  .mobile-service-links a,.orbit-process button,.immersive-tools,.sim-disclosure,
  .studio-details,.studio-selector,.model-settings .model-toolbar,
  .form-grid fieldset,.application-form fieldset,.check-list li
) {border-color:var(--preview-line)!important;border-image:none!important}
html[data-theme-preview=light][data-theme-preview=light] body :is(.site-header,.document-header)::after,
html[data-theme-preview=light][data-theme-preview=light] body :is(.scroll-meter,.world-rule) {
  background:#00102026!important;
}
html[data-theme-preview=light][data-theme-preview=light] body .world-grain {
  display:none!important;
}
html[data-theme-preview=light][data-theme-preview=light] body :is(.world-halo,.document-orbit) {
  opacity:.035;filter:brightness(0);
}
html[data-theme-preview=light][data-theme-preview=light] body :is(.spatial-label,.world-scene-note) {
  color:var(--preview-secondary)!important;filter:none!important;
}
html[data-theme-preview=light][data-theme-preview=light] body .hero-shade {
  background:linear-gradient(90deg,#fffffff5 0%,#ffffffd9 40%,#ffffff35 100%)!important;
}
html[data-theme-preview=light][data-theme-preview=light] body .world-copy::before {
  background:radial-gradient(ellipse,#34556c0a,transparent 70%)!important;
}
html[data-theme-preview=light][data-theme-preview=light] body :is(
  #spatial-stage,.spatial-stage,.model-stage,.immersive-workbench
) {background:radial-gradient(ellipse at 50% 55%,#d7e4ec,#f4f8fa 58%,#fff)!important}

/* Only the original white logo is recoloured; no photographs are filtered. */
html[data-theme-preview=light] :is(.document-brand,.world-brand,.brand) img[src*="pavlidis-logo"] {
  filter:brightness(0) saturate(100%) invert(6%) sepia(56%) saturate(2472%) hue-rotate(176deg) brightness(89%) contrast(104%)!important;
}

/* Forms, native options and the full range of studio/mobile controls. */
html[data-theme-preview=light][data-theme-preview=light] body :is(
  input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea,
  .copy-text,.inquiry-draft
) {
  color:var(--preview-ink)!important;background:var(--preview-raised)!important;
  border-color:var(--preview-line)!important;box-shadow:inset 0 1px 3px #00102006!important;
  color-scheme:light;
}
html[data-theme-preview=light][data-theme-preview=light] body :is(input,textarea)::placeholder {
  color:var(--preview-secondary)!important;opacity:.8;
}
html[data-theme-preview=light][data-theme-preview=light] body select option {
  background:var(--preview-surface)!important;color:var(--preview-ink)!important;
}
html[data-theme-preview=light][data-theme-preview=light] body input {
  accent-color:var(--preview-button);
}
html[data-theme-preview=light][data-theme-preview=light] body :is(
  button,.button-outline,.studio-return,.document-header-inquiry>span
) {
  color:var(--preview-ink)!important;background:var(--preview-raised)!important;
  border-color:var(--preview-line)!important;box-shadow:none!important;
}
html[data-theme-preview=light][data-theme-preview=light] body :is(
  .button-white,.button-navy,.inquiry-primary,.sim-primary,.sim-inquiry,.application-submit,
  .mobile-scene-entry-button,.mobile-contact-bar a:last-child,
  button[aria-pressed=true],button[aria-selected=true],
  .site-dock a[aria-current],.document-dock a[aria-current]
) {
  background:var(--preview-button)!important;color:var(--preview-button-ink)!important;
  border-color:var(--preview-button)!important;
  box-shadow:0 5px 16px #00102012!important;
}
html[data-theme-preview=light][data-theme-preview=light] body :is(
  .button-white,.button-navy,.inquiry-primary,.sim-primary,.sim-inquiry,.application-submit,
  .mobile-scene-entry-button,.mobile-contact-bar a:last-child,
  button[aria-pressed=true],button[aria-selected=true],
  .site-dock a[aria-current],.document-dock a[aria-current]
) :is(span,strong,small,i,svg) {color:var(--preview-button-ink)!important}
html[data-theme-preview=light][data-theme-preview=light] body :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline:2px solid var(--preview-accent)!important;outline-offset:4px;
}
html[data-theme-preview=light][data-theme-preview=light] body input::file-selector-button {
  color:var(--preview-button-ink)!important;background:var(--preview-button)!important;
  border-color:var(--preview-button)!important;
}
html[data-theme-preview=light][data-theme-preview=light] body :is(.icon,.future-dgnb svg,.sustainability-mark svg,.garage-guide-actions svg) {
  stroke:var(--preview-secondary)!important;
}
html[data-theme-preview=light][data-theme-preview=light] body :is(.mobile-home-faq summary,.faq-list summary)::after {
  color:var(--preview-secondary)!important;
}
html[data-theme-preview=light][data-theme-preview=light] body :is(.hotspot-ring,.system-radio) {
  border-color:var(--preview-secondary)!important;
}
html[data-theme-preview=light][data-theme-preview=light] body .system-radio {
  box-shadow:inset 0 0 0 3px var(--preview-surface)!important;
}
html[data-theme-preview=light][data-theme-preview=light] body .application-option>input:checked+span {
  background:#001020!important;color:#fff!important;border-color:#001020!important;
  box-shadow:inset 0 0 0 1px #001020!important;
}
html[data-theme-preview=light][data-theme-preview=light] body .application-option>input:checked+span :is(span,strong,small,i) {
  color:#fff!important;
}

/* The existing light islands reverse to navy with their own local palette. */
html[data-theme-preview=light][data-theme-preview=light] body .surface-light {
  --preview-ink:#fff;--preview-secondary:#c6dae8;--preview-accent:#c6dae8;
  --preview-surface:#001020;--preview-raised:#0a2438;--preview-line:#c6dae83d;
  --preview-button:#fff;--preview-button-ink:#001020;
  --brand-heading:#fff;--brand-heading-accent:#c6dae8;
  --ink:#fff;--text:#e4edf3;--muted:#c6dae8;--line:#c6dae83d;
  --navy:#fff;--blue:#c6dae8;--pale:#0a2438;
  background:linear-gradient(140deg,#0b2539,#001020)!important;
  background-color:#001020!important;color:#fff!important;
  border-color:#c6dae83d!important;box-shadow:0 14px 40px #00102012!important;
  color-scheme:dark;
}
html[data-theme-preview=light][data-theme-preview=light] body .surface-light :is(
  h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,small,figcaption,span,strong,summary,
  a,button,output,legend,address,input,select,textarea
) {color:var(--preview-ink)!important}
html[data-theme-preview=light][data-theme-preview=light] body .surface-light :is(
  .heading-accent,.muted-title,.title-dot,.eyebrow,.technical-note,.section-lead,
  .service-number,.proof-location,.proof-mount,.pb-row-number,.project-location,
  .pb-row-scope,.pb-row-action,.request-next ol,.model-note
) {color:var(--preview-secondary)!important}
html[data-theme-preview=light][data-theme-preview=light] body .surface-light :is(
  button,input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea,
  .copy-text,.project-details,.inquiry-selection,.inquiry-fallback,.inquiry-copy,
  .inquiry-draft,.proof-card,.job,.model-notes,.request-next
) {
  background:var(--preview-raised)!important;color:var(--preview-ink)!important;
  border-color:var(--preview-line)!important;box-shadow:none!important;
}
html[data-theme-preview=light][data-theme-preview=light] body .surface-light :is(input,select,textarea) {
  color-scheme:dark;
}
html[data-theme-preview=light][data-theme-preview=light] body .surface-light :is(
  .button-white,.button-navy,.inquiry-primary,.sim-primary,.sim-inquiry,.application-submit,
  .mobile-scene-entry-button,button[aria-pressed=true],button[aria-selected=true]
) {
  background:#fff!important;color:#001020!important;border-color:#fff!important;
}
html[data-theme-preview=light][data-theme-preview=light] body .surface-light :is(
  .button-white,.button-navy,.inquiry-primary,.sim-primary,.sim-inquiry,.application-submit,
  .mobile-scene-entry-button,button[aria-pressed=true],button[aria-selected=true]
) :is(span,strong,small,i) {color:#001020!important}
html[data-theme-preview=light][data-theme-preview=light] body .surface-light #process-number {
  color:#c6dae85c!important;
}
html[data-theme-preview=light][data-theme-preview=light] body .surface-light .future-dgnb svg {
  stroke:#c6dae8!important;
}
html[data-theme-preview=light][data-theme-preview=light] body .surface-light.surface-light .proof-card strong {
  color:#fff!important;
}
html[data-theme-preview=light][data-theme-preview=light] body .surface-light.surface-light :is(input,textarea)::placeholder {
  color:#c6dae8!important;opacity:.8;
}
html[data-theme-preview=light][data-theme-preview=light] body .inquiry-status {
  color:var(--preview-ink)!important;background:var(--preview-raised)!important;
  border-color:var(--preview-line)!important;
}

/* Status colours retain their meaning and are readable in either palette. */
html[data-theme-preview=light][data-theme-preview=light] body :is(.inquiry-status,.application-status).is-error {
  background:#fff1ef!important;color:#782c25!important;border-color:#bd8a83!important;
}
html[data-theme-preview=light][data-theme-preview=light] body :is(.inquiry-status,.application-status).is-success {
  background:#e6f3ec!important;color:#1b513b!important;border-color:#8eb69f!important;
}
html[data-theme-preview=light] dialog::backdrop {
  background:#00102066!important;backdrop-filter:blur(10px);
}
html[data-theme-preview=light] ::selection {background:#c6dae8;color:#001020}
/* The 3D canvas blends into the page instead of revealing its rectangle. */
html[data-theme-preview=light][data-theme-preview=light] body #spatial-stage {background:transparent!important}
html[data-theme-preview=light][data-theme-preview=light] body #spatial-stage::after {display:none!important}
html[data-theme-preview=light] {scrollbar-color:#6d8798 #f4f8fa}
html[data-theme-preview=light]::-webkit-scrollbar-track,
html[data-theme-preview=light] body::-webkit-scrollbar-track {background:#f4f8fa}
html[data-theme-preview=light]::-webkit-scrollbar-thumb,
html[data-theme-preview=light] body::-webkit-scrollbar-thumb {background:#6d8798;border:3px solid #f4f8fa;border-radius:12px}
html[data-theme-preview=light][data-theme-preview=light] body .mobile-service-links i {color:var(--preview-secondary)!important}
@media(hover:hover) {
  html[data-theme-preview=light][data-theme-preview=light] body :is(button,.button,.proof-card,.pb-project-row):hover {
    border-color:var(--preview-secondary)!important;
  }
}

/* One accessible, half-dark/half-light switch across all public pages. */
body :is(.site-header,.document-header,.world-header) button.theme-toggle {
  display:inline-flex!important;align-items:center;justify-content:center;
  flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;
  margin:0;padding:0!important;border:1px solid #c6dae84d;border-radius:50%;
  background:transparent;color:#fff;cursor:pointer;line-height:1;
}
body :is(.site-header,.document-header,.world-header) button.theme-toggle .theme-toggle-symbol {
  display:block;width:21px;height:21px;flex:0 0 21px;
  border:1.5px solid currentColor;border-radius:50%;
  background:linear-gradient(90deg,#001020 0 50%,#fff 50% 100%);
}
body :is(.site-header,.document-header,.world-header) button.theme-toggle:focus-visible {
  outline:2px solid currentColor;outline-offset:4px;
}
html[data-theme-preview=light][data-theme-preview=light] body :is(.site-header,.document-header,.world-header) button.theme-toggle {
  color:#001020!important;background:#fff!important;border-color:#00102026!important;
}
html[data-theme-preview=light][data-theme-preview=light] body :is(.site-header,.document-header,.world-header) button.theme-toggle .theme-toggle-symbol {
  color:#001020!important;
}
@media(max-width:767px) {
  body :is(.site-header,.document-header,.world-header) button.theme-toggle {margin-left:auto!important}
  body :is(.site-header,.document-header,.world-header):has(.theme-toggle) .menu-toggle {margin-left:0!important}
}
