
  :root {
    --navy: #0D1B3D;
    --navy-2: #0A1530;
    --slate: #273250;
    --slate-2: #1A2342;
    --ci-blue: #1F6FD0;
    --ci-orange: #F6A80D;
    --ci-orange-soft: #FFC15C;
    --white: #FFFFFF;
    --ink: #0B1020;
    --ink-2: #2B3346;
    --ink-3: #5E6778;
    --line: rgba(255,255,255,0.15);
    --line-dark: rgba(11,32,71,0.12);
    --bg-light: #F4F5F8;
    --body-dark: #B0B7CB;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; background: var(--white); color: var(--ink); font-family: 'Raleway', sans-serif; -webkit-font-smoothing: antialiased; }
  body { overflow-x: hidden; }
  h1,h2,h3,h4,h5 { font-family: 'Montserrat', sans-serif; letter-spacing: -0.015em; margin: 0; font-weight: 800; }
  p { margin: 0; line-height: 1.55; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; }
  .mono { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; font-weight: 500; }
  .mono.eyebrow-text { font-size: 15px; letter-spacing: 0.12em; font-weight: 600; }
  /* scrollbar tame */
  ::selection { background: var(--ci-orange); color: #000; }

  /* reusable grid bg */
  .grid-bg {
    background-image:
      linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
  }
  .grid-bg-light {
    background-image:
      linear-gradient(rgba(11,32,71,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(11,32,71,0.05) 1px, transparent 1px);
    background-size: 48px 48px;
  }

  /* reveal on scroll */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }

  /* nav */
  .nav-link { position: relative; }
  .nav-link::after { content:''; position:absolute; left:0; right:0; bottom:-6px; height:2px; background: var(--ci-orange); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
  .nav-link:hover::after { transform: scaleX(1); }

  /* CTA button */
  .btn-primary { background: var(--ci-orange); color: #000; padding: 14px 22px; font-weight: 700; font-family: 'Raleway', sans-serif; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 10px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
  .btn-primary:hover { background: #FFB820; transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(246,168,13,0.6); }
  .btn-outline { border: 1px solid currentColor; padding: 13px 22px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; transition: background .2s ease, color .2s ease; }
  .btn-outline.on-dark:hover { background: #fff; color: #000; }
  .btn-outline.on-light:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
  .text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
  .text-link .arrow { transition: transform .25s ease; }
  .text-link:hover .arrow { transform: translateX(4px); }

  /* tool card expand */
  .tool-card { transition: border-color .3s ease, background .3s ease, transform .3s ease; }
  .tool-card:hover { border-color: var(--ci-orange); transform: translateY(-4px); }
  .tool-card .expanded { max-height: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.2,.7,.2,1), margin-top .4s ease, opacity .4s ease; opacity: 0; }
  .tool-card:hover .expanded, .tool-card.open .expanded { max-height: 360px; opacity: 1; margin-top: 18px; }

  /* failure card chip */
  .chip { transition: transform .25s ease, border-color .25s ease, background .25s ease; }
  .chip:hover { transform: translateY(-3px); border-color: var(--ci-orange); background: rgba(246,168,13,0.05); }

  /* hero panel animation */
  @keyframes sweep { 0% { transform: translateX(-30%); } 100% { transform: translateX(130%); } }
  .sweep-line { animation: sweep 6s linear infinite; }

  @keyframes pulse-dot { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
  .pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

  /* hero toggle */
  .hero-toggle { display:inline-flex; background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
  .hero-toggle button { padding: 6px 14px; border-radius: 999px; font-size: 12px; color: #cbd0e0; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
  .hero-toggle button.active { background: var(--ci-orange); color: #000; }

  /* split safety/perf */
  .split-panel { position: relative; overflow: hidden; transition: flex .5s ease; }
  .split-panel::before { content:''; position:absolute; inset:0; opacity:.35; transition: opacity .4s ease; pointer-events:none; }
  .split-panel:hover::before { opacity:.15; }

  /* cursor target */
  .cursor-target { cursor: pointer; }

  /* tweaks panel */
  .tweaks-panel { position: fixed; right: 20px; bottom: 20px; width: 300px; background: #0D1B3D; color: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; z-index: 9999; font-size: 13px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
  .tweaks-panel h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ci-orange); margin-bottom: 12px; }
  .tweaks-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
  .tweaks-row label { color: #B0B7CB; }
  .tweaks-row select, .tweaks-row input { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-family: inherit; font-size: 12px; }

  /* shiny CTA cards */
  .cta-shine-card { position: relative; border-radius: 14px; overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 24px 60px -34px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s ease, box-shadow .4s ease; }
  .cta-shine-card::before { content:''; position:absolute; inset:0; border-radius:inherit; padding:1px; pointer-events:none;
    background: linear-gradient(140deg, rgba(255,255,255,0.4), rgba(255,255,255,0) 42%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
  .cta-shine-card::after { content:''; position:absolute; top:0; left:-40%; width:55%; height:100%; pointer-events:none; opacity:0;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.13), transparent); transform: skewX(-18deg); }
  .cta-shine-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.2);
    box-shadow: 0 44px 90px -42px rgba(0,0,0,0.95), inset 0 1px 0 rgba(255,255,255,0.1); }
  .cta-shine-card:hover::after { opacity:1; animation: ctaSheen 1.1s ease; }
  @keyframes ctaSheen { from { left:-45%; } to { left:125%; } }
  .cta-shine-card.featured { background: linear-gradient(180deg, rgba(246,168,13,0.14), rgba(246,168,13,0.025));
    border-color: rgba(246,168,13,0.38); box-shadow: 0 30px 72px -36px rgba(246,168,13,0.4), inset 0 1px 0 rgba(255,255,255,0.08); }
  .cta-shine-card.featured::before { background: linear-gradient(140deg, rgba(255,193,92,0.65), rgba(246,168,13,0) 46%); }
  .cta-shine-card.featured:hover { border-color: rgba(246,168,13,0.6);
    box-shadow: 0 46px 96px -42px rgba(246,168,13,0.55), inset 0 1px 0 rgba(255,255,255,0.12); }

  /* misc utility */
  .cmp-row { transition: background .2s ease; }
  .cmp-row:hover { background: #FAFBFD; }
  .headline-hl { color: var(--ci-orange); }
  .eyebrow { color: var(--ci-orange); }
  .eyebrow-blue { color: var(--ci-blue); }

  /* logo strip */
  .logo-plate { filter: grayscale(1) opacity(0.6); transition: filter .3s ease; }
  .logo-plate:hover { filter: grayscale(0) opacity(1); }

  /* hide scrollbar on horizontal */
  .no-scrollbar::-webkit-scrollbar { display: none; }
  .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

  /* module map grid dots */
  .mod-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
  .mod { aspect-ratio: 1 / 0.55; border-radius: 2px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); transition: background .3s ease, border-color .3s ease; }
  .mod.live.ok { background: rgba(56,189,120,0.35); border-color: rgba(56,189,120,0.6); }
  .mod.live.warn { background: rgba(246,168,13,0.45); border-color: rgba(246,168,13,0.8); }
  .mod.live.bad { background: rgba(229,85,85,0.45); border-color: rgba(229,85,85,0.85); }
  .mod.live.bad.blink { animation: blinkbad 1.4s ease-in-out infinite; }
  @keyframes blinkbad { 0%,100% { box-shadow: 0 0 0 0 rgba(229,85,85,0.5);} 50% { box-shadow: 0 0 0 4px rgba(229,85,85,0); } }
  .mod.live.ok.scan-pulse { background: rgba(56,189,120,0.75); border-color: rgba(56,189,120,0.95); box-shadow: 0 0 8px rgba(56,189,120,0.45); transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
  .mod.live.warn { animation: warn-pulse 1.6s ease-in-out infinite; }
  @keyframes warn-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(246,168,13,0.4);} 50% { box-shadow: 0 0 0 3px rgba(246,168,13,0); } }

  /* diagram stroke */
  .diagram-stroke { stroke: var(--ci-blue); }

  /* responsive container */
  .wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
  @media (max-width: 720px) { .wrap { padding: 0 20px; } }

  /* page hero — collapses to a single column on narrow viewports */
  .page-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
  @media (max-width: 1080px) { .page-hero-grid { grid-template-columns: 1fr; gap: 56px; } }

  /* science page responsive grids */
  .sci-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .sci-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
  .sci-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
  .sci-engine-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 4vw, 56px); align-items: start; }
  @media (max-width: 1080px) {
    .sci-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  }

  .nav-language-quick {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(44px, auto));
    align-items: stretch;
    min-height: 44px;
  }
  .nav-language-quick > a,
  .nav-language-quick > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(6,20,48,0.42);
    color: #DDE1EC;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }
  .nav-language-quick > *:first-child { border-radius: 6px 0 0 6px; }
  .nav-language-quick > *:last-child { border-inline-start: 0; border-radius: 0 6px 6px 0; }
  .nav-language-quick > a:hover { background: rgba(255,255,255,0.08); color: #fff; }
  .nav-language-quick > a:focus-visible { outline: 2px solid var(--ci-orange); outline-offset: -3px; }
  .nav-language-quick > [aria-current="page"] { background: var(--ci-orange); color: var(--navy); }
  .nav-mobile-actions { display: flex !important; }
  .nav-mobile-actions .nav-burger { display: inline-flex !important; }
  .lty-mobile-label { display: none; }
  .comparison-mobile-label,
  .sensor-compare-mobile-label,
  .string-reader-compare-mobile-label { display: none; }

  @media (max-width: 1320px) {
    .nav-mobile-actions { display: flex !important; }
  }

  @media (max-width: 360px) {
    nav .nav-shell { padding-inline: 20px !important; }
    nav .sunsniffer-logo { gap: 8px !important; }
    nav .sunsniffer-logo img:first-child { height: 29px !important; }
    nav .sunsniffer-logo img:last-child { height: 18px !important; }
  }

  /* Final phone layouts for data-heavy comparison and evidence graphics. */
  .performance-limits-mobile-label { display: none; }

  @media (max-width: 760px) {
    .sci-2 > *, .sci-3 > *, .sci-4 > * { min-width: 0; max-width: 100%; }
    .sensor-grade-a-steps,
    .sensor-grade-a-grid,
    .sensor-rsd-overview,
    .sensor-rsd-deployment-grid,
    .sensor-rsd-signal-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
    .sensor-grade-a-steps > *,
    .sensor-grade-a-grid > *,
    .sensor-rsd-overview > *,
    .sensor-rsd-deployment-grid > *,
    .sensor-rsd-signal-grid > * { min-width: 0; max-width: 100%; }
  }

  @media (max-width: 560px) {
    .sensor-hero-visual { height: 390px !important; }
    .sensor-hero-visual .snh-float {
      top: 54px !important;
      width: 220px !important;
      margin-left: -28px !important;
    }
    .sensor-hero-visual .snh-ring {
      width: 190px !important;
      height: 190px !important;
      margin-left: -95px !important;
      margin-top: -95px !important;
    }
    .sensor-hero-dimension { top: 68px !important; right: 0 !important; max-width: 112px; }
    .sensor-hero-dimension > div { white-space: normal; overflow-wrap: anywhere; }
    .sensor-hero-telemetry { bottom: 54px !important; right: 0; }
    .sensor-hero-telemetry > div { max-width: 100%; box-sizing: border-box; }
    .sensor-hero-telemetry .mono { white-space: normal !important; overflow-wrap: anywhere; }

    .sensor-facts-grid { grid-template-columns: 1fr !important; }
    .sensor-fact-card {
      min-width: 0;
      padding: 22px 0 !important;
      border-right: 0 !important;
      border-bottom: 1px solid var(--line-dark);
    }
    .sensor-fact-card:last-child { border-bottom: 0; }
    .sensor-fact-card > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

    .sensor-map-card { padding: 18px 12px 14px !important; }
    .sensor-map-grid { gap: 3px !important; }
    .sensor-status-strip {
      position: relative !important;
      inset: auto !important;
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px !important;
      margin-top: 18px;
    }
    .sensor-status-card {
      display: grid !important;
      grid-template-columns: 8px minmax(0, 1fr);
      gap: 4px 6px !important;
      align-content: center;
      min-width: 0;
      height: auto !important;
      min-height: 62px;
      padding: 9px 7px !important;
    }
    .sensor-status-card > span { min-width: 0; }
    .sensor-status-card > span:nth-child(2) { overflow-wrap: anywhere; }
    .sensor-status-card > span:last-child {
      grid-column: 2;
      margin-left: 0 !important;
    }
    .sensor-scale-metrics { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px !important; }

    .page-hero-ctas { min-width: 0; max-width: 100%; }
    .page-hero-ctas > a {
      max-width: 100%;
      min-height: 48px;
      white-space: normal !important;
      text-align: center;
      overflow-wrap: anywhere;
    }
    .performance-limits {
      border: 0 !important;
      overflow: visible !important;
      background: transparent !important;
      box-shadow: none !important;
    }
    .performance-limits-head { display: none !important; }
    .performance-limits-row {
      display: grid !important;
      grid-template-columns: 1fr !important;
      margin-bottom: 14px;
      overflow: hidden;
      border: 1px solid var(--line-dark) !important;
      border-radius: 8px;
      background: #fff;
    }
    .performance-limits-label { padding: 15px 16px !important; background: #F4F5F8; }
    .performance-limits-cell {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 8px;
      justify-items: start;
      justify-content: initial !important;
      padding: 13px 16px !important;
      border-top: 1px solid var(--line-dark);
      text-align: left !important;
    }
    .performance-limits-mobile-label {
      display: block;
      min-width: 0;
      color: var(--ink-3);
      font-size: 9px;
      font-weight: 600;
      letter-spacing: .05em;
      line-height: 1.45;
      text-transform: uppercase;
      overflow-wrap: anywhere;
    }
    .performance-limits-cell > span:last-child { max-width: 100%; white-space: normal !important; overflow-wrap: anywhere; }
    .performance-limits-foot { grid-template-columns: 1fr !important; padding: 18px 16px !important; }

    .sensor-compare-cell {
      grid-template-columns: 1fr !important;
      gap: 7px !important;
    }
    .sensor-compare-cell > span:last-child { text-align: left !important; }

    .sensor-grade-a-visual { height: 480px !important; }
    .sensor-grade-a-flow,
    .sensor-grade-a-visual > span { display: none !important; }
    .sensor-grade-a-badge { right: 14px; max-width: calc(100% - 28px); box-sizing: border-box; }
    .sensor-grade-a-badge .mono,
    .sensor-grade-a-data-chip .mono,
    .sensor-grade-a-paired .mono { white-space: normal !important; overflow-wrap: anywhere; }
    .sensor-grade-a-cutaway-label { left: 14px !important; right: 14px; top: 62px !important; overflow-wrap: anywhere; }
    .sensor-grade-a-cutaway { left: 14px !important; right: 14px; top: 84px !important; width: auto !important; height: 228px !important; }
    .sensor-grade-a-data-chip {
      top: 325px !important;
      left: 14px;
      right: 14px !important;
      max-width: calc(100% - 28px);
      box-sizing: border-box;
    }
    .sensor-grade-a-paired { max-width: calc(100% - 28px); box-sizing: border-box; }
    .sensor-spec-list > div > div {
      grid-template-columns: 1fr !important;
      gap: 6px !important;
      padding: 12px 0 !important;
    }
    .sensor-spec-list > div > div > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

    .sensor-rsd-visual-card { padding: 14px !important; }
    .sensor-rsd-caption { max-width: calc(100% - 52px); white-space: normal !important; overflow-wrap: anywhere; }
    .sensor-rsd-deployment-card { padding: 20px 18px !important; }
    .sensor-rsd-deployment-card .mono { white-space: normal !important; overflow-wrap: anywhere; }
    .sensor-rsd-evidence { padding: 20px 18px !important; border-left-width: 4px !important; }
    .sensor-rsd-signals { padding: 22px 18px !important; }
    .sensor-rsd-signal { padding-left: 14px !important; }
    .sensor-rsd-evidence > *,
    .sensor-rsd-signals > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

    .sensor-compare-mobile-label { font-size: 10px !important; }

    .insurer-claim-inner,
    .manufacturer-line-inner { padding: 16px !important; }
    .insurer-claim-head,
    .insurer-claim-array-head,
    .insurer-claim-array-foot,
    .insurer-claim-voltage-head,
    .manufacturer-line-head {
      align-items: flex-start !important;
      flex-direction: column;
      gap: 8px !important;
    }
    .insurer-claim-head > *,
    .insurer-claim-array-head > *,
    .insurer-claim-array-foot > *,
    .insurer-claim-voltage-head > *,
    .manufacturer-line-head > * {
      min-width: 0;
      max-width: 100%;
      white-space: normal !important;
      overflow-wrap: anywhere;
    }
    .insurer-claim-voltage-head > span:last-child { flex-wrap: wrap; gap: 8px 14px !important; }
    .insurer-claim-settlement { grid-template-columns: 1fr !important; gap: 7px !important; }
    .insurer-claim-settlement > div { min-width: 0; max-width: 100%; flex-wrap: wrap; height: auto !important; min-height: 24px; padding: 5px 8px; }
    .insurer-claim-settlement .mono { white-space: normal !important; overflow-wrap: anywhere; }

    .manufacturer-line-station { width: 96px !important; }
    .manufacturer-line-station .mono { overflow-wrap: anywhere; }
    .manufacturer-line-ships { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .manufacturer-line-ships > * { min-width: 0; border-top: 1px solid rgba(255,255,255,0.1); }
    .manufacturer-line-ships .mono { white-space: normal !important; overflow-wrap: anywhere; }
    .manufacturer-line-difference { grid-template-columns: 1fr !important; gap: 5px !important; }
    .manufacturer-line-difference > * { min-width: 0; overflow-wrap: anywhere; }
    .manufacturer-commodity-grid {
      grid-template-columns: minmax(0, 1fr) 50px 55px !important;
      column-gap: 6px !important;
    }
    .manufacturer-commodity-grid > * { min-width: 0; overflow-wrap: anywhere; }
    .manufacturer-commodity-grid > :nth-child(3n+2),
    .manufacturer-commodity-grid > :nth-child(3n+3) {
      font-size: 8px !important;
      letter-spacing: 0 !important;
      white-space: nowrap;
      text-align: center;
    }
  }
  @media (max-width: 980px) {
    .sci-2 { grid-template-columns: 1fr; gap: 40px; }
    .sci-engine-body { grid-template-columns: 1fr; }
    .sci-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  }
  @media (max-width: 640px) {
    .sci-3, .sci-4 { grid-template-columns: 1fr; }
  }

  /* ===== MOBILE RETROFIT (v2 homepage pass) — classes override inline grids ===== */
  @media (max-width: 760px) { body { overflow-x: clip; } }
  @media (max-width: 1320px) {
    .nav-desktop { display: none !important; }
    .nav-burger { display: inline-flex !important; }
  }
  @media (max-width: 1080px) { .m-chips6 { grid-template-columns: repeat(3, minmax(0,1fr)) !important; } }
  @media (max-width: 1180px) { .m-5c { grid-template-columns: repeat(3, minmax(0,1fr)) !important; } }
  @media (max-width: 860px) { .m-5c { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
  @media (max-width: 560px) { .m-5c { grid-template-columns: 1fr !important; } }
  @media (max-width: 980px) {
    .m-1c { grid-template-columns: 1fr !important; gap: 40px !important; }
    .m-4c { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
    .m-js-start { justify-self: start !important; }
  }
  @media (max-width: 900px) {
    .m-1c-900 { grid-template-columns: 1fr !important; }
    .m-path { grid-template-columns: 1fr !important; }
    .m-path-link { height: 30px; }
    .m-path-link .hp3-flow { width: 2px !important; height: 100% !important; background: repeating-linear-gradient(180deg, var(--ci-orange) 0 6px, transparent 6px 12px) !important; }
  }
  @media (min-width: 561px) and (max-width: 980px) {
    #phase1, #problem { overflow-x: hidden; }
  }
  @media (max-width: 860px) {
    .m-vsplit { grid-template-columns: 1fr !important; }
    .m-footer { grid-template-columns: 1fr 1fr !important; gap: 36px !important; }
    .m-footer > div:first-child { grid-column: 1 / -1; }
  }
  @media (max-width: 760px) {
    .m-1c-760 { grid-template-columns: 1fr !important; }
    .m-diag { grid-template-columns: 44px 1fr !important; row-gap: 6px !important; }
    .m-diag-tag { grid-column: 2; text-align: left !important; }
    .split-panel { padding: 64px 24px !important; }
    .m-ribbon { flex-wrap: wrap; }
    .m-ribbon > a { flex: 1 1 46% !important; }
    .m-ribbon > span { display: none; }
    .ds-ref-row { grid-template-columns: 1fr !important; gap: 10px !important; }
    .ds-ref-row > a { justify-self: start; }
    .ds-jump { flex-wrap: wrap !important; gap: 0 18px !important; }
    .ds-jump > a { letter-spacing: 0.06em !important; padding: 13px 2px 11px !important; }
  }

  @media (max-width: 640px) {
    .m-stats3 { grid-template-columns: 1fr !important; }
    .m-stats3 > div { border-right: none !important; border-bottom: 1px solid var(--line); }
    .m-stats3 > div:last-child { border-bottom: none; }
  }
  @media (max-width: 560px) {
    .m-1c-560 { grid-template-columns: 1fr !important; }
    .m-ray-row {
      grid-template-columns: minmax(0, 1fr) auto !important;
      align-items: start !important;
      gap: 6px 10px !important;
      padding: 12px !important;
    }
    .m-ray-sev { display: none !important; }
    .m-ray-row > :nth-child(1) { grid-column: 1; grid-row: 1; }
    .m-ray-row > :nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
    .m-ray-row > :nth-child(4) { grid-column: 2; grid-row: 1; }
    .m-4c { grid-template-columns: 1fr !important; }
  }
  .sci-scroll { overflow-x: auto; }

  /* Homepage section 04: keep the Ray plan inside narrow phone viewports. */
  #act .m-1c > *,
  #act .m-act-copy,
  #act .m-act-panel,
  #act .m-ray-meta,
  #act .m-ray-row > *,
  #act .m-ray-roi > * { min-width: 0; max-width: 100%; }
  #act .m-act-link {
    display: flex;
    align-items: flex-start;
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #act .m-ray-question { min-width: 0; max-width: 100% !important; }
  #act .m-ray-row > * { overflow-wrap: anywhere; }

  @media (max-width: 640px) {
    #act { padding: 72px 0 !important; }
    #act .m-act-panel { padding: 16px !important; }
    #act .m-ray-source { align-items: flex-start !important; }
    #act .m-ray-source .mono { white-space: normal; overflow-wrap: anywhere; }
    #act .m-ray-meta { align-items: flex-start !important; padding: 12px !important; }
    #act .m-ray-chips {
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px !important;
      width: 100%;
      margin-left: 0 !important;
    }
    #act .m-ray-chips > * {
      min-width: 0;
      padding: 4px 5px !important;
      text-align: center;
    }
    #act .m-ray-roi {
      flex-direction: column;
      align-items: flex-start !important;
      gap: 8px !important;
    }
    #act .m-ray-roi > * { overflow-wrap: anywhere; }
  }

  @media (max-width: 360px) {
    #act h2 { font-size: 34px !important; }
    #act .m-act-panel { padding: 12px !important; }
    #act .m-ray-chips { grid-template-columns: 1fr; }
    #act .m-ray-chips > * { white-space: normal !important; }
  }

  /* ===== V3 mobile layout hardening ===== */
  @media (max-width: 1080px) {
    html, body { overflow-x: clip; }
    .bd-hero-grid,
    .ds-hero-grid,
    .tech-collection-grid,
    .tech-analytics-grid,
    .tech-ray-grid {
      grid-template-columns: 1fr !important;
      gap: 40px !important;
    }
    .bd-form-card { margin-bottom: 0 !important; }
    .tech-ray-features { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .gw-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .bf-hero-visual, .gf-hero-visual { max-width: 100%; overflow: hidden; }
    .solution-problem-grid { grid-template-columns: 1fr !important; gap: 24px !important; overflow-x: clip; }
    .solution-problem-grid > * { min-width: 0; }
    .m-1c { min-width: 0; overflow-x: clip; }
    .page-hero-grid > *,
    .page-hero-copy,
    .page-hero-visual { min-width: 0; max-width: 100%; }
  }

  @media (max-width: 760px) {
    html, body { overflow-x: clip; }
    .wrap { padding-left: 20px; padding-right: 20px; }
    .nav-mobile-drawer { max-height: calc(100dvh - 74px) !important; }
    .nav-mobile-inner { padding: 10px 20px 24px !important; }
    .nav-mobile-language {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-mobile-language .mono { color: var(--ci-orange); font-size: 10px; letter-spacing: .16em; }
    .nav-mobile-language a { margin-top: 0 !important; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .nav-mobile-group-grid { grid-template-columns: 1fr !important; }
    .nav-mobile-inner > a { min-height: 44px; display: inline-flex; align-items: center; }

    .bd-form-card { width: 100%; min-width: 0; padding: 28px 20px 24px !important; }
    .bd-hero-copy h1 { font-size: clamp(38px, 11vw, 54px) !important; }
    .bd-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .bd-role-grid, .bd-focus-grid, .bd-faq-grid, .bd-trust-grid { grid-template-columns: 1fr !important; }
    .bd-role-grid button, .bd-focus-grid button { min-height: 48px; }

    .solution-step-flow { grid-template-columns: 1fr !important; }
    .solution-step-flow > div { border-right: none !important; border-bottom: 1px solid var(--line-dark); }
    .solution-step-flow > div:last-child { border-bottom: none; }
    .solution-step-flow > div > div[style*="rotate(45deg)"] { display: none !important; }
    .solution-deliverables, .gw-capability-grid, .sensor-deployment-cards { grid-template-columns: 1fr !important; }
    .accessory-block-grid, .sensor-scale-intro, .sensor-grade-aplus-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
    .sensor-facts-grid { grid-template-columns: 1fr 1fr !important; }
    .brownfield-retrofit-journey,
    .brownfield-ray-questions,
    .brownfield-result-grid,
    .epc-deliverables-grid,
    .safety-diode-steps,
    .safety-quiz-layout,
    .audience-ray-demo,
    .technology-cta-grid,
    .performance-validation-grid,
    .performance-outcomes-grid,
    .roi-proof-grid,
    .lty-health-grid,
    .lty-link-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .brownfield-retrofit-connector { display: none !important; }
    .brownfield-pilot-grid > *,
    .brownfield-pilot-timeline,
    .brownfield-pilot-kit,
    .brownfield-pilot-kit > * { min-width: 0; max-width: 100%; }
    .epc-gap-desktop { display: none !important; }
    .epc-gap-mobile { display: grid !important; grid-template-columns: 1fr; gap: 14px; }
    .om-roi-planner { min-width: 0; max-width: 100%; overflow: visible; }
    .lty-roi, .lty-roi > *, .lty-roi-table, .lty-roi-row > * { min-width: 0; max-width: 100%; }
    .lty-roi-stats > *, .lty-roi-stats > * > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
    #grade-a-plus .eyebrow-text { max-width: 100%; overflow-wrap: anywhere; line-height: 1.55; }
    .sensor-grade-aplus-grid > * { min-width: 0; }
    .sensor-grade-aplus-badge,
    .sensor-grade-aplus-kit { right: 14px; max-width: calc(100% - 28px); box-sizing: border-box; }
    .sensor-grade-aplus-reference { left: 14px; max-width: calc(100% - 28px); white-space: normal !important; }
    .safety-diode-steps > * { min-width: 0; min-height: 0 !important; }
    .safety-chart-header { align-items: flex-start !important; flex-wrap: wrap !important; }
    .safety-chart-header > * { min-width: 0; max-width: 100%; white-space: normal !important; overflow-wrap: anywhere; }
    .safety-quiz-questions {
      min-width: 0;
      padding: 22px 20px 24px !important;
      border-right: 0 !important;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .safety-quiz-result { min-width: 0; padding: 22px 20px 24px !important; }
    .audience-ray-demo > *,
    .technology-cta-grid > *,
    .technology-cta-agenda,
    .performance-validation-grid > *,
    .performance-outcomes-grid > *,
    .roi-proof-grid > *,
    .lty-health-grid > *,
    .lty-link-grid > * { min-width: 0; max-width: 100%; }

    /* Older page sections use inline two-column ratios.  Collapse those
       layout containers at phone width while leaving module/table repeat()
       grids intact. */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1.05fr"],
    [style*="grid-template-columns:1fr 1.05fr"],
    [style*="grid-template-columns: 1.05fr 1fr"],
    [style*="grid-template-columns:1.05fr 1fr"],
    [style*="grid-template-columns: 1.1fr 1fr"],
    [style*="grid-template-columns:1.1fr 1fr"],
    [style*="grid-template-columns: 1.15fr 1fr"],
    [style*="grid-template-columns:1.15fr 1fr"],
    [style*="grid-template-columns: 1.2fr 1fr"],
    [style*="grid-template-columns:1.2fr 1fr"],
    [style*="grid-template-columns: 1fr 1.1fr"],
    [style*="grid-template-columns:1fr 1.1fr"],
    [style*="grid-template-columns: 1fr 1.2fr"],
    [style*="grid-template-columns:1fr 1.2fr"],
    [style*="grid-template-columns: 1fr 1.12fr"],
    [style*="grid-template-columns:1fr 1.12fr"],
    [style*="grid-template-columns: 1.35fr 1fr"],
    [style*="grid-template-columns:1.35fr 1fr"],
    [style*="grid-template-columns: 1.9fr 1fr"],
    [style*="grid-template-columns:1.9fr 1fr"] {
      grid-template-columns: 1fr !important;
    }

    .ds-hero-grid > *, .tech-collection-grid > *, .tech-analytics-grid > *, .tech-ray-grid > * { min-width: 0; }
    .tech-stats-grid { grid-template-columns: 1fr !important; }
    .tech-analytics-cards { grid-template-columns: 1fr !important; }
    .tech-ray-features { grid-template-columns: 1fr !important; }
    .sci-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sci-scroll > * { min-width: 640px; }
  }

  @media (max-width: 560px) {
    .sensor-facts-grid { grid-template-columns: 1fr !important; }
    .bd-stats-grid { grid-template-columns: 1fr !important; }
    .bd-form-card h2 { font-size: 24px !important; }
    #grade-a-plus .eyebrow-text { font-size: 12px !important; letter-spacing: .08em !important; }
    .section-header {
      display: grid !important;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 10px 14px !important;
      align-items: center !important;
    }
    .section-header > .section-header-number {
      grid-column: 1;
      grid-row: 1;
      font-size: 40px !important;
      line-height: 1 !important;
    }
    .section-header > .section-header-copy { display: contents; }
    .section-header .eyebrow-text {
      grid-column: 2;
      grid-row: 1;
      align-self: center;
      font-size: 12px !important;
      line-height: 1.45;
      letter-spacing: .08em !important;
      overflow-wrap: anywhere;
    }
    .section-header h2 {
      grid-column: 1 / -1;
      grid-row: 2;
      min-width: 0;
      margin-top: 4px !important;
      font-size: 34px !important;
      overflow-wrap: anywhere;
    }
    #reports .ray-report-chat { padding: 16px !important; }
    #reports .ray-report-card { padding: 16px !important; }
    #reports .ray-report-row { grid-template-columns: 1fr !important; gap: 2px !important; }
    #reports .ray-report-value { white-space: normal !important; overflow-wrap: anywhere; }
    .sensor-grade-aplus-kit .mono { white-space: normal !important; overflow-wrap: anywhere; }
    .om-roi-planner { padding: 16px !important; }
    .om-diagnostic-probe,
    .om-repair-business-case { padding: 22px 20px !important; }
    .lty-roi-rule { margin-left: 0 !important; white-space: normal !important; border-radius: 6px !important; line-height: 1.45; }
    .lty-roi-stats { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
    .lty-roi-table { overflow: visible !important; border: 0 !important; background: transparent !important; }
    .lty-roi-table-head { display: none !important; }
    .lty-roi-row {
      grid-template-columns: repeat(2, minmax(0,1fr)) !important;
      gap: 12px !important;
      padding: 16px !important;
      margin-bottom: 12px;
      border: 1px solid rgba(255,255,255,0.09) !important;
      border-radius: 8px;
      background: rgba(255,255,255,0.025);
    }
    .lty-roi-repair { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .lty-roi-cell { display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
    .lty-mobile-label { display: block; color: #76819E; font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 500; letter-spacing: .06em; line-height: 1.35; text-transform: uppercase; }
    .lty-roi-decision { grid-column: 1 / -1; white-space: normal !important; border-radius: 6px !important; overflow-wrap: anywhere; }
    .lty-roi-decision .lty-mobile-label { margin-bottom: 3px; }
    .lty-roi-foot > * { min-width: 0; max-width: 100%; white-space: normal !important; overflow-wrap: anywhere; }

    .gf-hero-visual { height: 430px !important; }
    .gf-site-plan-chip { right: 14px; max-width: calc(100% - 28px); box-sizing: border-box; }
    .gf-site-plan-caption { left: 14px !important; right: 14px; bottom: 88px !important; white-space: normal !important; line-height: 1.45; }
    .gf-site-plan-status {
      left: 14px;
      right: 14px !important;
      bottom: 12px !important;
      max-width: calc(100% - 28px);
      box-sizing: border-box;
      align-items: flex-start !important;
    }
    .gf-site-plan-status > span { flex: 0 0 auto; margin-top: 3px; }
    .gf-site-plan-status > div { min-width: 0; }
    .gf-site-plan-status .mono,
    .gf-site-plan-status div { white-space: normal !important; overflow-wrap: anywhere; }
    .page-hero-stats {
      display: grid !important;
      grid-template-columns: 1fr;
      padding-top: 4px !important;
    }
    .page-hero-stat {
      min-width: 0;
      padding: 14px 0 !important;
      border-left: 0 !important;
      border-bottom: 1px solid rgba(255,255,255,0.10);
    }
    .page-hero-stat:last-child { border-bottom: 0; }
    .page-hero-stat > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

    .comparison-table {
      border: 0 !important;
      border-radius: 0 !important;
      overflow: visible !important;
      background: transparent !important;
      box-shadow: none !important;
    }
    .comparison-table-head { display: none !important; }
    .comparison-table-row {
      display: grid !important;
      grid-template-columns: 1fr !important;
      margin-bottom: 14px;
      overflow: hidden;
      border: 1px solid var(--line-dark) !important;
      border-radius: 8px;
      background: #fff;
    }
    .comparison-table-label {
      padding: 14px 16px !important;
      background: #F4F5F8;
    }
    .comparison-table-cell {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      justify-content: initial !important;
      padding: 13px 16px !important;
      border-left: 0 !important;
      border-top: 1px solid var(--line-dark);
      text-align: right !important;
    }
    .comparison-mobile-label {
      display: block;
      min-width: 0;
      color: var(--ink-3);
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      font-weight: 600;
      letter-spacing: .05em;
      line-height: 1.45;
      text-align: left;
      text-transform: uppercase;
      overflow-wrap: anywhere;
    }

    .sensor-compare-head,
    .string-reader-compare-head { display: none !important; }
    .sensor-compare-row,
    .string-reader-compare-row {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 0 !important;
      margin-bottom: 14px;
      overflow: hidden;
      border: 1px solid var(--line-dark);
      border-radius: 8px;
      background: #fff !important;
    }
    .sensor-compare-dimension,
    .string-reader-compare-label {
      padding: 14px 16px !important;
      background: var(--bg-light);
    }
    .sensor-compare-cell,
    .string-reader-compare-cell {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) minmax(0, auto);
      gap: 14px;
      padding: 13px 16px !important;
      border-left: 0 !important;
      border-top: 1px solid var(--line-dark);
      overflow-wrap: anywhere;
    }
    .sensor-compare-mobile-label,
    .string-reader-compare-mobile-label {
      display: block;
      min-width: 0;
      color: var(--ink-3);
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      font-weight: 600;
      letter-spacing: .04em;
      line-height: 1.45;
      text-transform: uppercase;
      overflow-wrap: anywhere;
    }
    .sensor-compare-cell > span:last-child,
    .string-reader-compare-cell > span:last-child { min-width: 0; text-align: right; overflow-wrap: anywhere; }
    .string-reader-compare { border: 0 !important; overflow: visible !important; background: transparent !important; }

    .technology-cta-grid { padding: 28px 20px !important; }
    .technology-cta-agenda { padding: 20px 18px !important; }
    .technology-cta-agenda > div:first-child { flex-wrap: wrap; gap: 8px 14px; }
    .portal-pw-card { padding: 18px 16px 20px !important; }
    .portal-pw-title { min-width: 0; }
    .portal-pw-title > span { min-width: 0; overflow-wrap: anywhere; }
    .safety-diode-steps { margin-top: 40px !important; }
    .safety-diode-steps > * { padding: 24px !important; }
    .safety-quiz-questions > div:first-child { gap: 8px !important; }
    .safety-quiz-questions .sqz-tab { min-width: 0; overflow-wrap: anywhere; }
    .safety-quiz-questions .sqz-tab { text-align: center !important; padding-left: 2px !important; padding-right: 2px !important; }
    .safety-quiz-questions .sqz-tab .mono:first-child { font-size: 10.5px !important; line-height: 1.4; }
    .safety-quiz-questions .sqz-tab .mono:last-child { font-size: 9px !important; line-height: 1.4; }
    .safety-quiz-questions .sqz-opt { min-height: 48px; padding: 14px 16px; }
    .brownfield-pilot-kit-head {
      align-items: flex-start !important;
      flex-direction: column;
      padding: 20px 18px 16px !important;
    }
    .brownfield-pilot-kit-row {
      grid-template-columns: 48px minmax(0, 1fr) !important;
      gap: 8px 12px !important;
      padding: 14px 18px !important;
    }
    .brownfield-pilot-kit-desc {
      grid-column: 2;
      white-space: normal !important;
      overflow-wrap: anywhere;
    }
    .brownfield-pilot-kit-summary-row {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 3px;
    }
    .brownfield-pilot-kit-summary-row > span { white-space: normal !important; overflow-wrap: anywhere; }
    .brownfield-pilot-kit-summary-row > span:nth-child(2) { display: none; }
    .brownfield-pilot-kit-barcode {
      align-items: flex-start !important;
      flex-direction: column;
      padding: 14px 18px !important;
    }
    .brownfield-pilot-kit-barcode > span { white-space: normal !important; overflow-wrap: anywhere; }
    .brownfield-pilot-kit-cta { padding: 18px !important; }
    .brownfield-pilot-kit-cta .btn-primary { min-height: 48px; white-space: normal; text-align: center; }
  }

  @media (max-width: 360px) {
    .om-roi-planner { padding: 12px !important; }
    .lty-roi-stats { grid-template-columns: 1fr !important; }
    .portal-pw-head { flex-wrap: wrap; }
    .portal-pw-kpi { width: 100%; text-align: left !important; }
    .technology-cta-agenda > div:not(:first-child) { grid-template-columns: 44px minmax(0, 1fr) !important; gap: 10px !important; }
  }
