/* ============================================================
   RONEX — global chrome (loader, progress, nav dropdowns,
   command palette, language switcher, page transitions)
   ============================================================ */

/* ---- page transition / loader ---- */
.px-loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: grid; place-items: center; transition: opacity .6s ease, visibility .6s;
}
.px-loader.done { opacity: 0; visibility: hidden; }
.px-loader .lx { width: 64px; height: 64px; opacity: 0; animation: lxin 1.1s cubic-bezier(.2,.7,.3,1) forwards; }
.px-loader .lx svg { width: 100%; height: 100%; }
.px-loader .lx svg path { fill: var(--accent); }
@keyframes lxin { 0%{opacity:0; transform:scale(.6) rotate(-8deg)} 55%{opacity:1} 100%{opacity:1; transform:scale(1) rotate(0)} }
.px-loader .lbar { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--accent); animation: lbar 1s ease forwards; }
@keyframes lbar { to { width: 100%; } }

body.px-leaving { opacity: 0; transition: opacity .32s ease; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; }
@media (prefers-reduced-motion: reduce){
  .px-loader, .px-loader .lx { animation: none; }
  body.px-leaving { opacity: 1; transition: none; }
}

/* ---- scroll progress ---- */
.px-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 70;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  box-shadow: 0 0 10px var(--accent); transition: width .08s linear;
}

/* ---- nav dropdowns ---- */
.nav-links { align-items: center; }
.nav-links > a, .nav-links .has-dd, .nav-links .dd-trig { display: inline-flex; align-items: center; line-height: 1; height: 22px; }
.nav-links > a.nav-active, .nav-links .has-dd.nav-active .dd-trig {
  color: #fff; position: relative;
}
.nav-links > a.nav-active::after, .nav-links .has-dd.nav-active .dd-trig::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 2px;
  background: var(--accent); border-radius: 1px;
}
.nav-links .has-dd { position: relative; }
.nav-links .has-dd.open-dd .dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-links .dd-trig { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: none; border: 0; color: var(--muted); font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; padding: 0; }
.nav-links .dd-trig svg { width: 11px; height: 11px; transition: transform .25s; opacity: .7; }
.nav-links .has-dd:hover .dd-trig, .nav-links .has-dd:focus-within .dd-trig { color: #fff; }
.nav-links .has-dd:hover .dd-trig svg, .nav-links .has-dd:focus-within .dd-trig svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-8px);
  min-width: 280px; background: rgba(12,14,20,.94); backdrop-filter: blur(18px);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 8px; opacity: 0; visibility: hidden;
  transition: .26s cubic-bezier(.2,.7,.3,1); box-shadow: 0 30px 70px -30px rgba(0,0,0,.85); z-index: 80;
}
.has-dd:hover .dd-menu, .has-dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dd-menu a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 6px; transition: background .2s; }
.dd-menu a:hover { background: var(--accent-dim); }
.dd-menu a::after { display: none; }
.dd-ico { width: 30px; height: 30px; flex: none; border: 1px solid var(--line-2); border-radius: 6px; display: grid; place-items: center; color: var(--accent-br); margin-top: 2px; }
.dd-ico svg { width: 16px; height: 16px; }
.dd-tt { display: block; font-family: var(--font); font-size: 14px; color: #fff; letter-spacing: -.01em; line-height: 1.25; }
.dd-ds { display: block; font-family: var(--font); font-size: 12px; color: var(--muted-2); margin-top: 3px; line-height: 1.4; letter-spacing: 0; text-transform: none; }

/* ---- nav utility cluster ---- */
.nav-util { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  height: 42px; min-width: 42px; padding: 0; box-sizing: border-box;
  border: 1px solid var(--line-2); border-radius: 6px; background: rgba(255,255,255,.02);
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: .22s; font-family: var(--mono); font-size: 12px; line-height: 1;
}
.icon-btn:hover { color: #fff; border-color: var(--accent); background: var(--accent-dim); }
.icon-btn svg { width: 16px; height: 16px; flex: none; }
/* search pill: icon + ⌘K, collapses to a square icon button on narrow screens */
.nav-search { padding: 0 14px; }
.nav-search .kk { display: flex; gap: 3px; }
.nav-search .kk kbd { font-family: var(--mono); font-size: 10px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 3px; padding: 2px 5px; color: var(--muted); line-height: 1; }
@media (max-width: 1200px){ .nav-search { padding: 0; } .nav-search .kk { display: none; } }
/* language pill */
.lang-btn { padding: 0 12px; gap: 7px; }
.lang-btn svg { width: 11px; height: 11px; opacity: .7; }
/* hide the inline CTA when the burger menu takes over */
@media (max-width: 1040px){ .nav-cta-btn { display: none; } }

/* ---- language switcher ---- */
.lang-wrap { position: relative; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 150px; background: rgba(12,14,20,.96);
  backdrop-filter: blur(18px); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .24s; z-index: 80; box-shadow: 0 24px 60px -28px rgba(0,0,0,.85);
}
.lang-wrap.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; background: none; border: 0; color: var(--muted); font-family: var(--mono); font-size: 12.5px; padding: 10px 12px; border-radius: 6px; cursor: pointer; transition: .18s; }
.lang-menu button:hover { background: var(--accent-dim); color: #fff; }
.lang-menu button.active { color: var(--accent-br); }
.lang-menu button .ln-code { font-size: 10px; color: var(--muted-2); }

/* ---- command palette ---- */
.cmdk { position: fixed; inset: 0; z-index: 150; display: none; }
.cmdk.open { display: block; }
.cmdk-scrim { position: absolute; inset: 0; background: rgba(4,5,8,.7); backdrop-filter: blur(6px); animation: fade .2s ease; }
.cmdk-box {
  position: absolute; top: 14vh; left: 50%; transform: translateX(-50%); width: min(620px, 92vw);
  background: rgba(12,14,20,.97); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.9); animation: cmdkin .26s cubic-bezier(.2,.7,.3,1);
}
@keyframes cmdkin { from { opacity:0; transform: translateX(-50%) translateY(-12px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cmdk-in svg { width: 18px; height: 18px; color: var(--muted-2); flex: none; }
.cmdk-in input { flex: 1; background: none; border: 0; outline: 0; color: #fff; font-family: var(--font); font-size: 17px; letter-spacing: -.01em; }
.cmdk-in input::placeholder { color: var(--muted-2); }
.cmdk-in .esc { font-family: var(--mono); font-size: 10px; color: var(--muted-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 7px; }
.cmdk-list { max-height: 52vh; overflow-y: auto; padding: 8px; }
.cmdk-group { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); padding: 12px 12px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 14px; padding: 12px 12px; border-radius: 8px; cursor: pointer; color: var(--text); }
.cmdk-item .ci-ic { width: 30px; height: 30px; flex: none; border: 1px solid var(--line-2); border-radius: 6px; display: grid; place-items: center; color: var(--accent-br); }
.cmdk-item .ci-ic svg { width: 15px; height: 15px; }
.cmdk-item .ci-t { display: block; font-size: 14.5px; line-height: 1.25; }
.cmdk-item .ci-d { display: block; font-size: 12px; color: var(--muted-2); margin-top: 2px; line-height: 1.35; }
.cmdk-item .ci-k { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.cmdk-item.sel, .cmdk-item:hover { background: var(--accent-dim); }
.cmdk-item.sel .ci-ic { border-color: var(--accent); }
.cmdk-empty { padding: 30px; text-align: center; color: var(--muted-2); font-family: var(--mono); font-size: 13px; }

/* ---- RTL ---- */
html[dir="rtl"] .eyebrow::before { background: linear-gradient(270deg, var(--accent), transparent); }
html[dir="rtl"] .btn svg, html[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
html[dir="rtl"] .crumb, html[dir="rtl"] .nav-in { direction: rtl; }
html[dir="rtl"] body { letter-spacing: 0; }

/* skip link */
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 4px; font-family: var(--mono); font-size: 12px; }
.skip:focus { left: 8px; }

/* ---- footer slogan ---- */
.foot-slogan {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-br);
  margin-bottom: 10px;
}

/* ---- footer newsletter ---- */
.footer-nl { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-nl h4 { font-size: 22px; letter-spacing: -0.02em; }
.footer-nl p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.nl-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
  flex: 1 1 280px;
  min-width: 0;
  max-width: 100%;
}
.nl-form input[type="email"] {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 0 16px;
  height: 48px;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  min-width: 0;
  flex: 1 1 180px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.nl-form input[type="email"]:focus { outline: none; border-color: var(--accent); background: var(--accent-dim); }
.nl-form .btn {
  height: 48px;
  flex: 0 1 auto;
  white-space: nowrap;
}
.nl-note {
  font-family: var(--mono);
  font-size: 12px;
  color: #25d07d;
  width: 100%;
  flex: 1 1 100%;
  line-height: 1.45;
}

/* ---- sticky scroll CTA ---- */
.sticky-cta { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(160%); z-index: 65; display: flex; align-items: center; gap: 16px; padding: 11px 14px 11px 22px; border: 1px solid var(--line-2); border-radius: 100px; background: rgba(12,14,20,.92); backdrop-filter: blur(14px); box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); transition: transform .5s cubic-bezier(.2,.7,.3,1); max-width: calc(100vw - 32px); }
.sticky-cta.show { transform: translateX(-50%) translateY(0); }
.sticky-cta span { font-size: 14px; color: var(--text); white-space: nowrap; }
.sticky-cta .x { background: none; border: 0; color: var(--muted-2); cursor: pointer; font-size: 17px; line-height: 1; padding: 4px 6px; }
.sticky-cta .x:hover { color: #fff; }
@media (max-width: 560px){ .sticky-cta span { display: none; } }

/* ---- cookie consent ---- */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 120; max-width: 380px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(12,14,20,.97); backdrop-filter: blur(14px); padding: 20px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.85); transform: translateY(160%); transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.cookie.show { transform: none; }
.cookie p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.cookie p a { color: var(--accent-br); }
.cookie .row { display: flex; gap: 10px; }
.foot-legal { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-legal .foot-link { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
/* keep the identifier on one line without non-breaking hyphens, so it copy-pastes as plain ASCII */
.foot-legal .foot-duns { white-space: nowrap; }

/* ---- print ---- */
@media print {
  .nav, .menu, .footer, .px-loader, .px-progress, .cmdk, .sticky-cta, .cookie, #ronex-tweaks,
  .scroll-hint, canvas, .hud, .skip, .filterbar, .marquee, .grid-bg, .glow, .hero-vignette, .veil, .eco-stage { display: none !important; }
  html, body { background: #fff !important; color: #111 !important; }
  .text-grad { -webkit-text-fill-color: #111 !important; background: none !important; color: #111 !important; }
  h1, h2, h3, h4, p, li, .display, .h2, .h3, .lead { color: #111 !important; }
  a { color: #111 !important; text-decoration: underline; }
  * { box-shadow: none !important; text-shadow: none !important; }
  .section, .section--tight, .phero, .subhero { padding-block: 18px !important; }
  main { padding-top: 0 !important; }
  .hero { min-height: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 720px) {
  .footer-nl {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding-bottom: 32px;
    margin-bottom: 32px;
  }
  .footer-nl > div {
    max-width: none;
    width: 100%;
  }
  .nl-form {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .nl-form {
    flex-direction: column;
    gap: 12px;
  }
  .nl-form input[type="email"],
  .nl-form .btn {
    flex: none;
    width: 100%;
    max-width: none;
  }
  .nl-form .btn {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 40px;
  }
  .foot-legal {
    width: 100%;
    gap: 12px 16px;
  }
  .footer {
    padding-block: 52px 28px;
  }
  .footer .wrap {
    padding-inline: max(16px, var(--gutter));
  }
}

@media (max-width: 460px) {
  .cookie {
    left: 12px;
    right: 12px;
    max-width: none;
    width: auto;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  .cookie .row {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie .row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-br); outline-offset: 2px; border-radius: 2px;
}

/* ============================================================
   LIGHT THEME
   Document surfaces go light; hero / page-hero / footer / logos
   stay as intentional dark bands.
   ============================================================ */
html[data-theme="light"] {
  --bg: #F3F5F9; --bg-1: #EAEDF3; --panel: #FFFFFF; --panel-2: #FAFBFD; --panel-3: #F0F2F8;
  --line: rgba(14,16,26,.10); --line-2: rgba(14,16,26,.17); --line-violet: rgba(121,97,255,.35);
  --text: #0B0D14; --muted: #4B5263; --muted-2: #7C8398; --faint: #C6CBD9;
  --accent-dim: rgba(121,97,255,.12); --blue-dim: rgba(62,139,255,.10);
  --chrome-bg: rgba(255,255,255,.92);
  --chrome-shadow: 0 18px 48px -24px rgba(14,16,26,.18);
  --input-bg: #FFFFFF;
  --input-border: rgba(14,16,26,.14);
}
html[data-theme="light"] body { background: var(--bg); color: var(--text); }

/* dark feature bands */
html[data-theme="light"] .hero,
html[data-theme="light"] .subhero,
html[data-theme="light"] .phero,
html[data-theme="light"] .cta-band,
html[data-theme="light"] .menu,
html[data-theme="light"] .footer {
  background: #07080B;
  color: #EEF0F6;
  --bg: #07080B; --bg-1: #0A0C12; --panel: #0C1018; --panel-2: #10172A; --panel-3: #141C32;
  --text: #EEF0F6; --muted: #9CA2B4; --muted-2: #8A90A4; --faint: #3A3F50;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12);
  --input-bg: rgba(255,255,255,.04);
  --input-border: rgba(255,255,255,.12);
}

/* ---- customer footprint ---- */
html[data-theme="light"] .customer-footprint-band { background: linear-gradient(180deg,var(--bg),var(--bg-1)); }
html[data-theme="light"] .customer-map { background: radial-gradient(circle at 58% 42%,rgba(var(--accent-rgb),.08),transparent 32%),linear-gradient(160deg,#e8ebf2,#f4f5f8 55%,#eef0f5); }
html[data-theme="light"] .customer-map__ocean { fill: #dce1ec; }
html[data-theme="light"] .customer-map__grid { stroke: rgba(15,20,35,.06); }
html[data-theme="light"] .customer-map__world path { fill: #f7f8fb; stroke: #9aa3b8; }
html[data-theme="light"] .customer-map__world path:hover { fill: #eef1f8; stroke: #6f7890; }
html[data-theme="light"] .customer-map__markets path { fill: rgba(var(--accent-rgb),.22); stroke: rgba(var(--accent-rgb),.88); }
html[data-theme="light"] .customer-map__label-box { fill: rgba(255,255,255,.94); stroke: #a6abba; }
html[data-theme="light"] .customer-map__label-title { fill: #171a24; }
html[data-theme="light"] .customer-map__label-count { fill: #596173; }
html[data-theme="light"] .customer-map__tooltip { background: rgba(255,255,255,.96); color: #171a24; border-color: #a6abba; box-shadow: 0 12px 28px rgba(20,24,40,.12); }
html[data-theme="light"] .customer-map__tip-meta { color: #596173; }
html[data-theme="light"] .customer-map__tip-list { color: #3f4658; }
/* zoom controls: the base rule hardcodes a near-black button, so light mode needs its own pair */
html[data-theme="light"] .customer-map__control { background: rgba(255,255,255,.94); border-color: #a6abba; color: #171a24; }
html[data-theme="light"] .customer-map__control:hover { border-color: var(--accent-br); color: var(--accent-br); }
html[data-theme="light"] .customer-metric { background: linear-gradient(160deg,#fff,var(--panel)); box-shadow: 0 18px 38px -30px rgba(14,16,26,.3); }
html[data-theme="light"] .customer-logo-tile { background: linear-gradient(160deg,#fff,var(--panel)); box-shadow: 0 16px 34px -28px rgba(14,16,26,.28); }
html[data-theme="light"] .customer-logo-tile--image { background: #aeb4c0; border-color: #9da4b1; }
/* light-artwork logos keep a dark panel in light mode — same treatment as the dark feature bands */
html[data-theme="light"] .customer-logo-tile--image-dark { background: linear-gradient(160deg,#10172A,#0C1018); border-color: rgba(14,16,26,.22); box-shadow: 0 16px 34px -28px rgba(14,16,26,.38); }

/* gradient text */
html[data-theme="light"] .text-grad {
  background: linear-gradient(100deg, var(--text), var(--accent-br) 82%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
html[data-theme="light"] .hero .text-grad,
html[data-theme="light"] .subhero .text-grad,
html[data-theme="light"] .phero .text-grad,
html[data-theme="light"] .cta-band .text-grad,
html[data-theme="light"] .footer .text-grad {
  background: linear-gradient(115deg,#fff 30%, var(--accent-br) 78%, var(--blue));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---- nav: light chrome on light surfaces; dark over hero bands ---- */
html[data-theme="light"] .nav:not(.nav-over-hero) .brand .wm { color: var(--text); }
html[data-theme="light"] .nav:not(.nav-over-hero) .brand .mark { filter: invert(1) brightness(.7); }
html[data-theme="light"] .nav:not(.nav-over-hero) .nav-links a,
html[data-theme="light"] .nav:not(.nav-over-hero) .nav-links .dd-trig,
html[data-theme="light"] .nav:not(.nav-over-hero) .icon-btn,
html[data-theme="light"] .nav:not(.nav-over-hero) .lang-btn { color: var(--muted); }
html[data-theme="light"] .nav:not(.nav-over-hero) .nav-links a:hover,
html[data-theme="light"] .nav:not(.nav-over-hero) .nav-links .has-dd:hover .dd-trig,
html[data-theme="light"] .nav:not(.nav-over-hero) .nav-links .has-dd:focus-within .dd-trig,
html[data-theme="light"] .nav:not(.nav-over-hero) .icon-btn:hover { color: var(--text); }
html[data-theme="light"] .nav:not(.nav-over-hero) .nav-links > a.nav-active,
html[data-theme="light"] .nav:not(.nav-over-hero) .nav-links .has-dd.nav-active .dd-trig { color: var(--text); }
html[data-theme="light"] .nav:not(.nav-over-hero) .burger span { background: var(--text); }
html[data-theme="light"] .nav:not(.nav-over-hero) .nav-search .kk kbd { background: var(--panel-2); color: var(--muted); }

/* Over dark hero: match default dark nav (transparent → frosted on scroll) */
html[data-theme="light"] .nav.nav-over-hero {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
html[data-theme="light"] .nav.nav-over-hero.scrolled {
  background: rgba(7,8,11,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255,255,255,.07);
}
html[data-theme="light"] .nav.nav-over-hero .brand .wm { color: #fff; }
html[data-theme="light"] .nav.nav-over-hero .brand .mark { filter: none; }
html[data-theme="light"] .nav.nav-over-hero .nav-links a,
html[data-theme="light"] .nav.nav-over-hero .nav-links .dd-trig,
html[data-theme="light"] .nav.nav-over-hero .icon-btn,
html[data-theme="light"] .nav.nav-over-hero .lang-btn { color: #9CA2B4; }
html[data-theme="light"] .nav.nav-over-hero .nav-links a:hover,
html[data-theme="light"] .nav.nav-over-hero .nav-links .has-dd:hover .dd-trig,
html[data-theme="light"] .nav.nav-over-hero .nav-links .has-dd:focus-within .dd-trig,
html[data-theme="light"] .nav.nav-over-hero .icon-btn:hover { color: #fff; }
html[data-theme="light"] .nav.nav-over-hero .nav-links > a.nav-active,
html[data-theme="light"] .nav.nav-over-hero .nav-links .has-dd.nav-active .dd-trig { color: #fff; }
html[data-theme="light"] .nav.nav-over-hero .burger span { background: #fff; }
html[data-theme="light"] .nav.nav-over-hero .nav-search .kk kbd { background: rgba(255,255,255,.06); color: #9CA2B4; border-color: rgba(255,255,255,.12); }
html[data-theme="light"] .nav.nav-over-hero .icon-btn { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.02); }
html[data-theme="light"] .nav.nav-over-hero .dd-menu,
html[data-theme="light"] .nav.nav-over-hero .lang-menu {
  background: rgba(12,14,20,.96);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.85);
}
html[data-theme="light"] .nav.nav-over-hero .dd-tt { color: #fff; }
html[data-theme="light"] .nav.nav-over-hero .dd-ds { color: #8A90A4; }
html[data-theme="light"] .nav.nav-over-hero .lang-menu button:hover { color: #fff; }
html[data-theme="light"] .nav.nav-over-hero ~ .menu {
  background: rgba(7,8,11,0.97);
  border-top-color: rgba(255,255,255,.07);
}
html[data-theme="light"] .nav.nav-over-hero ~ .menu a { color: #fff; }

/* ---- floating panels ---- */
html[data-theme="light"] .dd-menu,
html[data-theme="light"] .lang-menu,
html[data-theme="light"] .cmdk-box,
html[data-theme="light"] .cookie,
html[data-theme="light"] .sticky-cta {
  background: rgba(255,255,255,.98);
  box-shadow: var(--chrome-shadow);
  color: var(--text);
}
html[data-theme="light"] .dd-tt { color: var(--text); }
html[data-theme="light"] .dd-ds { color: var(--muted-2); }
html[data-theme="light"] .lang-menu button:hover { color: var(--text); }
html[data-theme="light"] .cmdk-in input { color: var(--text); }
html[data-theme="light"] .cmdk-scrim { background: rgba(18,22,32,.35); }
html[data-theme="light"] .nav:not(.nav-over-hero) ~ .menu { background: rgba(255,255,255,.98); border-top-color: var(--line-2); }
html[data-theme="light"] .nav:not(.nav-over-hero) ~ .menu a { color: var(--text); }
html[data-theme="light"] .sticky-cta span { color: var(--text); }
html[data-theme="light"] .cookie p { color: var(--muted); }

/* ---- forms & inputs on light surfaces ---- */
html[data-theme="light"] .field input,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .field select {
  color: var(--text);
  background: var(--input-bg);
  border-color: var(--input-border);
}
html[data-theme="light"] .field input:focus,
html[data-theme="light"] .field textarea:focus,
html[data-theme="light"] .field select:focus {
  background: var(--accent-dim);
}
html[data-theme="light"] .chip {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--muted);
}
html[data-theme="light"] .chip:hover { color: var(--text); border-color: var(--accent); }
html[data-theme="light"] .chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
html[data-theme="light"] .filedrop {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--muted);
}
html[data-theme="light"] .filedrop:hover,
html[data-theme="light"] .filedrop.over { color: var(--text); }

/* ---- components with hardcoded light-on-dark text ---- */
html[data-theme="light"] .article-meta .am-card,
html[data-theme="light"] .article-next-card {
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(14,16,26,.04), 0 12px 32px -20px rgba(14,16,26,.08);
}
html[data-theme="light"] .article-next-card:hover {
  background: #fff;
  box-shadow: 0 24px 56px -28px rgba(121,97,255,.18), 0 1px 2px rgba(14,16,26,.04);
}
html[data-theme="light"] .article-cover {
  box-shadow: 0 24px 60px -32px rgba(14,16,26,.12);
}
html[data-theme="light"] .article-prose blockquote {
  background: rgba(121,97,255,.08);
  border-color: rgba(121,97,255,.18);
}
html[data-theme="light"] .share-btn {
  background: var(--panel-2);
}
html[data-theme="light"] .article-tag {
  background: var(--panel-2);
}

html[data-theme="light"] .link-arrow:hover { color: var(--text); }
html[data-theme="light"] .btn-ghost:hover { color: var(--text); }
html[data-theme="light"] .tag { background: var(--panel-2); }
html[data-theme="light"] .eco-node .en-box {
  background: rgba(255,255,255,.94);
  border-color: var(--line-2);
}
html[data-theme="light"] .filter-chip {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--muted);
}
html[data-theme="light"] .filter-chip:hover {
  color: var(--text);
  border-color: var(--accent);
}
html[data-theme="light"] .filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
html[data-theme="light"] .wz-opt { background: var(--input-bg); }
html[data-theme="light"] .wz-summary .row .v { color: var(--text); }

/* ---- cards & grids on light sections ---- */
html[data-theme="light"] .dcard,
html[data-theme="light"] .why-cell,
html[data-theme="light"] .sec-cell,
html[data-theme="light"] .case-metricbar .cm,
html[data-theme="light"] .division-nav a {
  background: var(--panel);
}
html[data-theme="light"] .dcard:hover,
html[data-theme="light"] .why-cell:hover,
html[data-theme="light"] .sec-cell:hover,
html[data-theme="light"] .division-nav a:hover {
  background: var(--panel-2);
}
html[data-theme="light"] .quote,
html[data-theme="light"] .devcard,
html[data-theme="light"] .case-card,
html[data-theme="light"] .art-card,
html[data-theme="light"] .eco-detail {
  background: var(--panel);
}
html[data-theme="light"] .devcard {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}

/* image placeholders on light surfaces */
html[data-theme="light"] .section image-slot,
html[data-theme="light"] .section .ph-slot {
  background: linear-gradient(110deg, var(--panel-2) 8%, var(--panel-3) 18%, var(--panel-2) 33%);
}

/* creative bento tiles on light sections */
html[data-theme="light"] .section .ctile .ct-l { color: var(--text); }
html[data-theme="light"] .section .ctile::after {
  background: linear-gradient(180deg, transparent 35%, rgba(255,255,255,.94));
}

/* dashboard mock frames on light sections */
html[data-theme="light"] .section .frame {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 24px 60px -32px rgba(14,16,26,.14), inset 0 1px 0 rgba(255,255,255,.8);
}
html[data-theme="light"] .section .dash .kpi {
  background: var(--panel-2);
}

/* theme toggle */
.theme-btn { font-size: 14px; line-height: 1; }
.theme-btn svg { width: 16px; height: 16px; }
html[data-theme="light"] .theme-btn .icon-sun { display: none; }
html[data-theme="light"] .theme-btn .icon-moon { display: block; }
.theme-btn .icon-moon { display: none; }

/* screen reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
