
:root {
  --bg: #050505;
  --panel: #0c0c0c;
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.62);
  --grid: rgba(255, 255, 255, 0.12);
  --accent: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
 
  font-family: "Futura", "Trebuchet MS", sans-serif;
  color: var(--text);
}

.map{
   background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, #111111 0%, #070707 30%, #030303 100%);
}

.map a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0.34)
  );
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition:
    color 0.24s ease,
    background-size 0.24s ease,
    background-image 0.24s ease;
}

.map a:hover,
.map a:focus-visible {
  color: rgba(255, 255, 255, 1) !important;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96),
    rgba(255, 255, 255, 0.96)
  );
  background-size: 100% 1px;
}

.map a:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

.top {
  position: relative;
  padding: 30px 20px 60px;
}

.chart-shell {
  min-height: calc(100vh - 40px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
}

.chart-header {
  text-align: center;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding-top: 6px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: clamp(10px, 0.72vw, 12px);
  color: var(--muted);
}

.headline-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.headline-mark {
  width: clamp(42px, 4vw, 64px);
  height: auto;
  display: block;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: clamp(36px, 4vw, 70px);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h2{margin:0;}

.subhead {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(14px, 0.98vw, 16px);
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.chart-interaction-area {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.chart-frame {
  width: 100%;
  height: auto;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 18px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.lens-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 10px auto 4px;
  width: fit-content;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Futura", "Trebuchet MS", sans-serif;
}

.legend-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.legend-title {
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-right: 2px;
  font-weight: 600;
}

.legend-item {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
    font-weight: 300;

  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.legend-item:not(.is-active) {
  color: rgba(255, 255, 255, 0.42);
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--swatch);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.legend-item:not(.is-active) .legend-swatch {
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 0 0 1px var(--swatch);
  opacity: 0.7;
}

.legend-item:hover,
.legend-item:focus-visible {
  color: rgba(255, 255, 255, 1);
}

.legend-item:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

.chart-controls label {
  color: rgba(255,255,255,0.68);
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 10px;
  font-weight: 600;
}

/* Shared overlay-control surface. */
.top-controls .legend-group,
.top-controls #sensorFilter {
  background: rgba(38, 40, 42, 0.88);
  border: 1px solid rgba(18, 20, 22, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.55),
    0 8px 22px rgba(0,0,0,0.18);
}

/* Legend groups keep legend spacing. */
.top-controls .legend-group {
  padding: 10px 14px;
  border-radius: 12px;
}

/* Select keeps dropdown spacing and arrow. */
.top-controls #sensorFilter {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 9px 38px 9px 12px;
  border-radius: 10px;
  background:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.68) 50%) calc(100% - 16px) calc(50% - 2px) / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,0.68) 50%, transparent 50%) calc(100% - 11px) calc(50% - 2px) / 7px 7px no-repeat,
    rgba(38, 40, 42, 0.88);
  color: rgba(255,255,255,0.95);
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
  outline: none;
  color-scheme: dark;
}

#sensorFilter option {
  background-color: #111;
  color: rgba(255, 255, 255, 0.95);
  font-family: "Futura", "Trebuchet MS", sans-serif;
}

#sensorFilter option:checked {
  background-color: #2a2a2a;
  color: #fff;
}

.top-controls {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}

.top-controls .chart-controls,
.top-controls .lens-legend {
  margin: 0;
}

.rgb-footer {
  margin-top: 0;
  padding: 20px 0 34px;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Futura", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(236, 16, 20, 0.12), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(54, 163, 210, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 720px);
  justify-content: center;
  align-items: start;
  gap: 28px;
  text-align: left;
  padding-top: 80px;
}

.footer-logo {
  height: clamp(54px, 3vw, 74px);
  width: auto;
  margin-top: 28px;
}

.footer-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  font-size: clamp(12px, 1.45vw, 14px);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.58);
}

.footer-brand h2,
.table-heading h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-brand p:last-child {
  margin: 16px 0 0;
  max-width: 680px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(15px, 1vw, 17px);
}

.lens-index-intro {
  max-width: 760px;
  margin: 16px 0 42px 0;
  color: rgba(255, 255, 255, 0.66);
  padding-bottom: 28px;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.footer-cta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  margin: 20px 0;
  padding: clamp(60px, 7vw, 96px) 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(236, 16, 20, 0.10), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(54, 163, 210, 0.14), transparent 36%),
    radial-gradient(circle at 52% 92%, rgba(39, 154, 59, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,1), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(0,0,0,1)),
    linear-gradient(180deg, rgba(0,0,0,1), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(0,0,0,1)),
    linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0));
}

.cta-image-wrap {
  display: grid;
  place-items: center;
  justify-content: center;
}

.cta-image-ring {
  width: 150px;
  aspect-ratio: 1;
  padding: 24px;
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.cta-image {
  width: 100%;
  height: auto;
  border: 0;
  padding: 0;
  border-radius: 0;
  aspect-ratio: 1;
  object-fit: contain;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 28px rgba(255,255,255,0.12));
  opacity: 0.95;
}

.cta-action {
  display: grid;
  justify-items: center;
  gap: 18px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  text-align: center;
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    filter 0.22s ease;
}

.cta-action small {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.52);
  font-size: clamp(10px, 0.75vw, 11px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cta-icon {
  width: clamp(58px, 6vw, 88px);
  height: clamp(58px, 6vw, 88px);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.92);
  filter: drop-shadow(0 0 22px rgba(255,255,255,0.08));
}

.cta-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-mail:hover {
  transform: translateY(-10px);
  filter: drop-shadow(0 0 20px rgba(54, 163, 210, 0.26));
}

.cta-phone:hover {
  transform: translateY(-10px);
  filter: drop-shadow(0 0 20px rgba(236, 16, 20, 0.24));
}

.footer-cta a,
.footer-cta a:hover,
.footer-cta a:focus-visible {
  background-image: none;
  background-size: auto;
  background-position: initial;
  text-decoration: none !important;
  outline: none;
}

.footer-contact-grid address,
.footer-links {
  min-height: 136px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.035);
  font-style: normal;
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links a,
.lens-table a,
.footer-bottom a {
  color: rgba(255,255,255,0.94);
  text-decoration: none;
}

.footer-links a:hover,
.lens-table a:hover,
.footer-bottom a:hover {
  text-decoration: underline;
}

.table-heading {
  margin-bottom: 28px;
}

.lens-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  background: rgba(0,0,0,0.18);
}

.lens-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}

.lens-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lens-table th,
.lens-table td {
  padding: 17px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  vertical-align: middle;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.55;
}

.lens-table th:first-child,
.lens-table td:first-child {
  padding-left: 28px;
}

.lens-table th:last-child,
.lens-table td:last-child {
  padding-right: 28px;
}

.lens-table thead th {
  color: rgba(255,255,255,1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(11px, 0.8vw, 13px);
  background: rgba(255,255,255,0.045);
}

.lens-table thead th:first-child {
  border-top-left-radius: 24px;
}

.lens-table thead th:last-child {
  border-top-right-radius: 24px;
}

.lens-table tbody th {
  color: #fff;
  font-weight: 600;
}

.lens-table tbody td {
  color: rgba(255,255,255,0.72);
}

.footer-lens-index {
  padding: 80px clamp(24px, 5vw, 72px);
}

.lens-table tbody tr {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.lens-table tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)),
    rgba(255,255,255,0.025);
  box-shadow:
    inset 3px 0 0 rgba(54, 163, 210, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.25);
}

.lens-table tbody tr:hover th,
.lens-table tbody tr:hover td {
  color: rgba(255,255,255,0.94);
}

.table-pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background-image: none;
  background-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.table-pill-link:hover,
.table-pill-link:focus-visible {
  background-image: none;
  background-color: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.52);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.score-pill {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 245, 238, 0.94);
  color: #070707;
  font-weight: 600;
  line-height: 1;
}

.lens-table td:has(.score-pill),
.lens-table td:has(.table-pill-link) {
  text-align: center;
  vertical-align: middle;
}

.lens-table th:nth-child(4),
.lens-table td:nth-child(4) {
  text-align: center;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 0;
  padding-top: 24px;
  color: rgba(255,255,255,0.48);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: clamp(11px, 0.8vw, 12px);
}

.rgb-hero {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, #111111 0%, #070707 30%, #030303 100%);
}

.category-hero {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
  padding: 80px clamp(24px, 5vw, 72px) 60px;
}

.category-card {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: clamp(5px, 2vw, 10px) clamp(20px, 2vw, 28px) clamp(15px, 2vw, 28px);
  min-height: 100%;
  display: grid;
  grid-template-rows: 190px 52px 1fr auto;
  justify-items: center;
  text-align: center;
  gap: 5px;
}

.category-card img {
  width: min(200px, 90%);
  max-height: 200px;
  height: auto;
  object-fit: contain;
  align-self: center;
  margin: 0;
}

.category-card h3 {
  display: grid;
  place-items: center;
  font-size: clamp(24px, 1.9vw, 34px);
  line-height: 1;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.6;
  max-width: 30ch;
}

.category-btn {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  font-size: clamp(14px, 0.9vw, 14px);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.site-footer {
  padding: 34px 20px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.22);
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: clamp(15px, 0.8vw, 15px);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.42);
}

.site-footer p {
  margin: 0;
}

.chart-help-overlay {
position: absolute;
  top: 20px;
  left:50%;
  right: auto;
  bottom: auto;
  width: min(980px, calc(100% - 48px));
  height: auto;
  transform: translateX(-50%) translateY(0);
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 28px 32px 48px;
  z-index: 20;
  border: 1px solid rgba(245,250,255,0.36);
  border-radius: 24px;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045)),
    rgba(245,250,255,0.09);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.46),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 18px 60px rgba(0,0,0,0.26);
  backdrop-filter: blur(12px) saturate(155%) brightness(1.06);
  -webkit-backdrop-filter: blur(12px) saturate(155%) brightness(1.06);
  
  
}


.chart-help-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
}

.chart-help-section-title {
  color: rgba(255,255,255,0.94);
font-size: clamp(24px, 7vw, 38px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,0.38);
    width: 100%;
  text-align: center;
  margin-bottom:30px;
  
}

.chart-help-note {
  pointer-events: none;
}

.chart-help-note-filters {
  margin:0 auto 28px;
  width: min(860px, calc(100% - 36px));
  display: grid;
  justify-items: center;
  padding: 15px 20px 20px;
  border: 0;
  border-radius: 16px;
  background: rgba(255,255,255,0.075);
  box-shadow: none;
  text-align: center;
  pointer-events: none;
  
}
.chart-help-note-zoom {

  width: min(430px, 88vw);
  padding: 24px 26px;
  text-align: center;
  pointer-events: none;
    color: #050505;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(232,236,238,0.98));
  border-color: rgba(255,255,255,0.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(0,0,0,0.14),
    0 24px 60px rgba(0,0,0,0.38);
}





.chart-help-note-filters .lens-legend {
  margin: 0;
  pointer-events: none;
}

.chart-help-note-filters .legend-group {
  background: rgba(38, 40, 42, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(18, 20, 22, 0.62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.55),
    0 8px 22px rgba(0,0,0,0.18) !important;
}

.chart-control-label {
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 10px;
  font-weight: 600;
}

.chart-help-filter-guide {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
}

.chart-help-filter-column {
  display: grid;
  justify-items: center;
  gap: 15px;
}

.chart-help-filter-column p {
  position: relative;
  width: 100%;
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

.chart-help-filter-column p::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: -18px;
  height: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.46);
  border-left: 1px solid rgba(255,255,255,0.46);
  border-right: 1px solid rgba(255,255,255,0.46);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  pointer-events: none;
}

.chart-help-filter-column > .chart-controls,
.chart-help-filter-column > .lens-legend {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keep the sensor label + fake dropdown centered as one row. */
.chart-help-filter-column .chart-controls {
  gap: 10px;
}

.chart-help-filter-column .chart-control-label {
  margin-right: 0;
}

.chart-help-filter-column-sensor {
  min-width: max-content;
}

.chart-help-filter-column-legend {
  min-width: min(100%, 520px);
}

.chart-help-filter-column .chart-controls,
.chart-help-filter-column .lens-legend {
  margin: 0;
}



.chart-help-note-filters .lens-legend .legend-title {
  color: rgba(255, 255, 255, 0.68) !important;
}

.chart-help-note-filters .lens-legend .legend-item {
  color: rgba(255, 255, 255, 0.88) !important;
}

.chart-help-note-filters .lens-legend .legend-item:not(.is-active) {
  color: rgba(255, 255, 255, 0.46) !important;
}

.chart-help-note-filters .sensor-filter-fake {
  background:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.68) 50%) calc(100% - 16px) calc(50% - 2px) / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.68) 50%, transparent 50%) calc(100% - 11px) calc(50% - 2px) / 7px 7px no-repeat,
    rgba(38, 40, 42, 0.88);
  border: 1px solid rgba(18, 20, 22, 0.62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.55),
    0 8px 22px rgba(0,0,0,0.18) !important;  
}





.chart-help-note-filters p {
  margin: 0;
  color: rgba(255,255,255,0.94);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
}

.chart-help-kicker {
  margin: 0 0 10px;
  color: rgba(0,0,0,0.54);
  font-size: clamp(13px, 1vw, 15px) !important;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chart-help-note-zoom h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #050505;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chart-help-note-zoom p:last-child {
  margin: 12px 0 0;
  color: rgba(0,0,0,0.62);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
}

.keycap {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(0,0,0,0.22);
  border-bottom-color: rgba(0,0,0,0.30);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(218,224,226,0.85));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 2px 0 rgba(0,0,0,0.10);
  color: #050505;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.pinch-icon {
  position: relative;
  width: 38px;
  height: 28px;
  display: inline-block;
  flex: 0 0 auto;
  border: 2px solid rgba(0,0,0,0.72);
  border-radius: 7px;
  vertical-align: middle;
}

.pinch-icon::before,
.pinch-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 3px solid rgba(0,0,0,0.72);
  border-left: 3px solid rgba(0,0,0,0.72);
}

.pinch-icon::before {
  left: 12px;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.pinch-icon::after {
  right: 12px;
  transform: translate(50%, -50%) rotate(135deg);
}

.scroll-icon {
  position: relative;
  width: 24px;
  height: 34px;
  border: 1.5px solid rgba(0,0,0,0.72);
  border-radius: 999px;
  display: inline-block;
}

.scroll-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  transform: translateX(-50%);
}

.scroll-icon::after {
  content: "⌄";
  position: absolute;
  left: 50%;
  bottom: -12px;
  color: rgba(0,0,0,0.66);
  font-size: 16px;
  transform: translateX(-50%);
}

.chart-help-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  background: rgba(0,0,0,0.66);
  color: rgba(255,255,255,0.92);
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.chart-help-close:hover {
  border-color: rgba(255,255,255,0.52);
  background: rgba(255,255,255,0.12);
}

.chart-help-trigger {
  position: absolute;
  left: calc(100% + 40px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: clamp(36px, 4vw, 64px);
  height: clamp(36px, 4vw, 64px);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(54,58,61,0.96), rgba(22,24,26,0.96));
  color: rgba(255,255,255,0.9);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.65),
    0 10px 24px rgba(0,0,0,0.24);
}

.chart-help-trigger:hover {
  background:
    linear-gradient(180deg, rgba(70,74,78,0.98), rgba(30,32,35,0.98));
  border-color: rgba(255,255,255,0.34);
  color: #fff;
}

.chart-help-note-filters .legend-group {
  background: rgba(12, 12, 12, 0.96);
  border-color: rgba(255, 255, 255, 0.14);
}

.chart-help-note-filters .legend-title {
  color: rgba(255, 255, 255, 0.62);
}

.chart-help-note-filters .legend-item {
  color: rgba(255, 255, 255, 0.92);
}

.chart-help-note-filters .legend-item:not(.is-active) {
  color: rgba(255, 255, 255, 0.42);
}

.chart-help-note-filters .lens-legend {
  margin: 0;
  pointer-events: none;
}

.chart-help-controls-copy {
  width: 100%;
  pointer-events: none;
  margin: 10px 0 18px;
}

.chart-help-controls-copy .chart-controls {
  margin: 0;
}

.chart-help-controls-copy .lens-legend {
  margin: 0;
}

.sensor-filter-fake {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 9px 38px 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%) calc(100% - 16px) calc(50% - 2px) / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%) calc(100% - 11px) calc(50% - 2px) / 7px 7px no-repeat,
    rgba(18, 18, 18, 0.92);
  color: rgba(255, 255, 255, 0.95);
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: clamp(12px, 0.9vw, 13px);
  line-height: 1.2;
}

/* Subnav */

.lens-map-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 5px;
  border: 1px solid rgba(18, 20, 22, 0.62);
  border-radius: 999px;
  background: rgba(38, 40, 42, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.55),
    0 8px 22px rgba(0,0,0,0.18);
}

.lens-map-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background-image: none;
  color: rgba(255,255,255,0.74);
  font-size: clamp(10px, 0.85vw, 12px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.lens-map-nav a:hover,
.lens-map-nav a:focus-visible {
  color: #fff !important;
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.how-we-measured {
  padding: 90px clamp(24px, 5vw, 72px);
  color: rgba(255,255,255,0.9);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.055), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
}

.how-we-measured-inner {
  display: grid;
  gap: 34px;
}

.how-measured-header {
  display: grid;
  max-width: 760px;
}

.how-measured-header h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
  font-weight: 600;
  text-transform: uppercase;
}

.how-measured-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.035);
  box-shadow:
    0 30px 90px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.how-measured-image img {
  width: 100%;
  aspect-ratio: 21 / 8;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) brightness(0.82) saturate(0.9);
}

.how-measured-image figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  max-width: 520px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.58);
  color: rgba(255,255,255,0.72);
  font-size: clamp(11px, 0.85vw, 13px);
  line-height: 1.3;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.how-measured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.how-measured-grid article {
  padding: 22px 22px 24px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.025);
}

.how-measured-step {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.42);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.how-measured-grid h4 {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.96);
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.05;
  font-weight: 600;
  text-transform: uppercase;
}

.how-measured-grid p,
.how-measured-note {
  color: rgba(255,255,255,0.66);
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.6;
}

.how-measured-note {
  max-width: 900px;
  padding-top: 4px;
  text-align: center;
  margin: 0 auto;

}

@media (max-width: 900px) {
  .how-measured-grid {
    grid-template-columns: 1fr;
  }

  .how-measured-image img {
    aspect-ratio: 4 / 3;
  }

  .how-measured-image figcaption {
    position: static;
    max-width: none;
    border-radius: 0;
    background: rgba(0,0,0,0.42);
  }
}

@media (max-width: 1100px) {
  .category-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .footer-cta {
    grid-template-columns: 1fr;
    gap: 42px;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .rgb-footer {
    padding-top: 56px;
  }

  .footer-brand {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 720px) {
  body {
    padding: 12px;
  }

  .chart-shell {
    min-height: calc(100vh - 24px);
    gap: 14px;
  }

  .chart-frame {
    padding: 10px;
    border-radius: 18px;
  }

  .headline-row {
    gap: 12px;
  }

  .headline-mark {
    width: 38px;
  }

  h1 {
    font-size: clamp(30px, 9vw, 48px);
  }

  .subhead {
    font-size: clamp(13px, 3.5vw, 15px);
    max-width: 92%;
  }

  .lens-legend {
    gap: 12px;
    padding: 8px 10px;
  }

  .legend-group {
    gap: 8px;
  }

  .legend-title {
    font-size: clamp(10px, 2.7vw, 11px);
  }

  .legend-item {
    font-size: clamp(11px, 3vw, 12px);
  }

  .chart-help-overlay {
    top: -12px;
  }

  .chart-help-note-filters {
    top: 10px;
    width: calc(100% - 24px);
  }

  .chart-help-note-zoom {
    top: 60%;
    width: min(340px, 88vw);
  }
}

@media (max-width: 680px) {
  .category-hero {
    grid-template-columns: 1fr;
  }

  
}

.lens-map-mobile-notice {
  display: none;
}

@media (max-width: 720px) {
      .chart-frame,
  .chart-frame canvas,
  #lensChart {
    display: none !important;}
  .chart-interaction-area > .top-controls,
  .chart-interaction-area > .chart-frame,
  .chart-interaction-area > .chart-help-overlay,
  .chart-help-trigger {
    display: none;
  }

  .lens-map-mobile-notice {
    min-height: 50vh;
    display: grid;
    place-items: center;
    padding: 24px;
  }
  
  .lens-map-mobile-notice h2{
    text-transform:uppercase;
  }

  .lens-map-mobile-notice-inner {
    width: min(360px, 100%);
    padding: 28px 24px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035)),
      rgba(38,40,42,0.82);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.18),
      0 24px 70px rgba(0,0,0,0.42);
    text-align: center;

  }

/*Table Mobile View*/

@media (max-width: 720px) {
  .lens-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .lens-table {
    min-width: 0;
    width: 100%;
    border-spacing: 0 14px;
  }

  .lens-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .lens-table tbody,
  .lens-table tr,
  .lens-table th,
  .lens-table td {
    display: block;
    width: 100%;
  }

  .lens-table tbody tr {
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
      rgba(255,255,255,0.025);
    display: block;
    margin-bottom: 18px;
  }

    .lens-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .lens-table th,
  .lens-table td,
  .lens-table th:first-child,
  .lens-table td:first-child,
  .lens-table th:last-child,
  .lens-table td:last-child {
    padding: 0;
    border-bottom: 0;
    text-align: left;
  }

  .lens-table tbody th {
    margin-bottom: 12px;
    color: #fff;
    font-size: 20px;
    line-height: 1.1;
  }

  .lens-table td {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 9px;
    color: rgba(255,255,255,0.74);
  }

  .lens-table td::before {
    color: rgba(255,255,255,0.44);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .lens-table td:nth-child(2)::before {
    content: "Optics";
  }

  .lens-table td:nth-child(3)::before {
    content: "Type";
  }

  .lens-table td:nth-child(4)::before {
    content: "Coverage";
  }

  .lens-table td:nth-child(5)::before {
    content: "Sharpness";
  }

  .lens-table td:nth-child(6)::before {
    content: "Contrast";
  }

  .lens-table td:nth-child(7)::before {
    content: "Character";
  }

  .lens-table td:nth-child(8)::before {
    content: "Look";
  }

  .lens-table td:nth-child(9)::before {
    content: "Link";
  }

  .lens-table td:nth-child(8) {
    align-items: start;
  }

  .lens-table td:has(.score-pill),
  .lens-table td:has(.table-pill-link),
  .lens-table th:nth-child(4),
  .lens-table td:nth-child(4) {
    text-align: left;
  }

  .score-pill {
    width: 32px;
    height: 32px;
  }

  .table-pill-link {
    width: fit-content;
  }
}
