    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      background: #070707;
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      overflow-x: hidden;
    }

    .ris-page {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
    }

    /* ─── HERO LEVEL (LEVEL A) ─── */
    .hero-level {
      display: block;
    }

    .hero-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
      padding: 48px 32px;
    }

    .hero-left {
      padding-right: 20px;
    }

    .hero-title {
      font-size: clamp(36px, 6.2vw, 62px);
      line-height: 1.1;
      letter-spacing: -0.02em;
      margin: 0 0 16px;
      font-weight: 700;
      color: #ffffff;
    }

    .hero-subtitle {
      font-size: 18px;
      line-height: 1.6;
      color: #b8b8b8;
      margin: 0 0 40px;
      max-width: 520px;
    }

    .address-form {
      margin-top: 24px;
    }

    .address-form label {
      display: block;
      margin: 0 0 10px;
      font-size: 13px;
      font-weight: 600;
      color: #ffffff;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .address-form input {
      width: 100%;
      height: 48px;
      padding: 0 14px;
      margin-bottom: 8px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 12px;
      background: rgba(20, 20, 20, 0.72);
      color: #ffffff;
      font-size: 16px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .address-form input:focus {
      outline: none;
      border-color: #FF6A1A;
      box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.1);
    }

    .address-form input::placeholder {
      color: #666666;
    }

    .address-help {
      margin: 6px 0 16px;
      font-size: 13px;
      line-height: 1.5;
      color: #999999;
    }

    .hero-contacts {
      margin-bottom: 12px;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      align-items: center;
    }

    .contact-field label {
      display: block;
      margin: 0 0 6px;
      font-size: 11px;
      color: #d0d0d0;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      font-weight: 600;
    }

    .contact-field input {
      width: 100%;
      height: 44px;
      padding: 0 12px;
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(18,18,18,0.6);
      color: #fff;
      font-size: 16px;
    }

    @media (max-width: 960px) {
      .contact-grid { grid-template-columns: 1fr; }
    }

    .address-help.ok {
      color: #4CAF50;
    }

    .address-help.warn {
      color: #FFC107;
    }

    .address-help.error {
      color: #FF6B6B;
    }

    .address-help.info {
      color: #2196F3;
    }

    .cta-button {
      width: 100%;
      height: 52px;
      border: none;
      border-radius: 12px;
      background: #FF6A1A;
      color: #ffffff;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0.05em;
      cursor: pointer;
      transition: all 0.3s ease;
      text-transform: uppercase;
      margin-top: 0;
    }

    .cta-button:hover {
      background: #FF7A2A;
      transform: translateY(-2px);
      box-shadow: 0 12px 32px rgba(255, 106, 26, 0.3);
    }

    .cta-button:active {
      transform: translateY(0);
    }

    .cta-button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }

    .trust-line {
      margin-top: 14px;
      font-size: 12px;
      color: #999999;
      line-height: 1.5;
    }

    .hero-right {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      min-height: 420px;
    }

    .roof-visual {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .roof-image-wrap {
      position: relative;
      width: 100%;
      max-width: 520px;
      min-height: 420px;
      border-radius: 28px;
      overflow: hidden;
      background: #111111;
      box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .roof-image-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .roof-glow {
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at top right, rgba(255, 106, 26, 0.18), transparent 44%);
      pointer-events: none;
      mix-blend-mode: screen;
    }

    @keyframes glow-pulse {
      0%, 100% { opacity: 0.75; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.01); }
    }

    /* ─── PROPERTY LEVEL (LEVEL B) ─── */
    .property-level {
      padding: 60px 40px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .level-container {
      max-width: 900px;
      margin: 0 auto;
    }

    .property-level h2,
    .estimate-level h2,
    .lead-capture-level h2 {
      font-size: 40px;
      line-height: 1.2;
      letter-spacing: -0.02em;
      margin: 0 0 16px;
      font-weight: 700;
      color: #ffffff;
    }

    .submitted-address {
      font-size: 16px;
      color: #b8b8b8;
      margin: 0 0 32px;
      padding: 12px 16px;
      background: rgba(255, 106, 26, 0.08);
      border-left: 3px solid #FF6A1A;
      border-radius: 6px;
    }

    .satellite-preview {
      width: 100%;
      aspect-ratio: 16 / 9;
      margin: 32px 0;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(20, 20, 20, 0.72);
      overflow: hidden;
      position: relative;
    }

    .preview-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      background: linear-gradient(135deg, rgba(255, 106, 26, 0.04), rgba(255, 106, 26, 0.015));
    }

    .roof-overlay-glow {
      position: absolute;
      width: 180px;
      height: 180px;
      background: radial-gradient(circle, rgba(255, 106, 26, 0.4) 0%, rgba(255, 106, 26, 0.15) 50%, transparent 80%);
      border-radius: 50%;
      filter: blur(30px);
    }

    .preview-status {
      font-size: 16px;
      color: #b8b8b8;
      text-align: center;
      margin-top: 24px;
      padding: 20px;
      background: rgba(255, 106, 26, 0.08);
      border-radius: 8px;
    }

    /* ─── ESTIMATE LEVEL (LEVEL C) ─── */
    .estimate-level {
      padding: 60px 40px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .estimate-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 24px;
      margin: 40px 0;
    }

    .estimate-item {
      padding: 24px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 12px;
      background: rgba(20, 20, 20, 0.72);
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .estimate-label {
      font-size: 12px;
      color: #999999;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-weight: 600;
    }

    .estimate-value {
      font-size: 20px;
      font-weight: 700;
      color: #ffffff;
      line-height: 1.2;
    }

    .estimate-price {
      color: #FF6A1A;
      font-size: 24px;
    }

    .estimate-disclaimer {
      margin-top: 32px;
      padding: 20px;
      border-left: 3px solid #FF6A1A;
      background: rgba(255, 106, 26, 0.05);
      font-size: 13px;
      color: #b8b8b8;
      line-height: 1.6;
      border-radius: 6px;
    }

    /* ─── LEAD CAPTURE LEVEL ─── */
    .lead-capture-level {
      padding: 60px 40px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .section-description {
      font-size: 16px;
      color: #b8b8b8;
      margin: 0 0 32px;
      max-width: 600px;
    }

    .lead-form {
      max-width: 500px;
    }

    .lead-form label {
      display: block;
      margin: 20px 0 8px;
      font-size: 13px;
      font-weight: 600;
      color: #ffffff;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .lead-form input {
      width: 100%;
      height: 48px;
      padding: 0 14px;
      margin-bottom: 6px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 12px;
      background: rgba(20, 20, 20, 0.72);
      color: #ffffff;
      font-size: 16px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .lead-form input:focus {
      outline: none;
      border-color: #FF6A1A;
      box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.1);
    }

    .lead-form input::placeholder {
      color: #666666;
    }

    .sms-consent {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      margin-top: 24px;
      margin-bottom: 32px;
      color: #b8b8b8;
      font-size: 12px;
      line-height: 1.6;
    }

    .sms-consent input {
      width: 18px;
      height: 18px;
      margin-top: 2px;
      flex-shrink: 0;
      cursor: pointer;
      accent-color: #FF6A1A;
    }

    .status {
      min-height: 20px;
      margin-top: 16px;
      font-size: 14px;
      color: #FF6A1A;
      line-height: 1.5;
    }

    .status.error {
      color: #FF6B6B;
    }

    .landing-footer {
      display: grid;
      grid-template-columns: 1fr 1fr auto;
      gap: 18px;
      margin-top: 28px;
      padding: 20px 22px;
      background: rgba(15, 15, 15, 0.64);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 14px;
      align-items: center;
    }

    .footer-contact {
      color: #d0d0d0;
      font-size: 14px;
      line-height: 1.8;
    }

    .footer-icons {
      display: flex;
      gap: 12px;
      align-items: center;
      justify-content: flex-end;
    }

    @media (max-width: 640px) {
      .landing-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
      }
      .footer-icons {
        justify-content: center;
      }
    }

    .footer-link {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      color: #d0d0d0;
      text-decoration: none;
      font-size: 13px;
      padding: 6px 8px;
      border-radius: 8px;
      transition: background 0.12s ease, color 0.12s ease;
    }

    .footer-link svg {
      width: 18px;
      height: 18px;
      fill: #d0d0d0;
    }

    .footer-link:hover {
      background: rgba(255,106,26,0.06);
      color: #FF6A1A;
    }

    /* larger icon sizes for colorful buttons */
    .footer-icons .footer-link svg { width: 34px; height: 34px; }
    .footer-icons .footer-link { padding: 6px; border-radius: 10px; }

    .footer-contact a {
      color: #d0d0d0;
      text-decoration: none;
    }

    .footer-contact a:hover {
      color: #FF6A1A;
    }

    .footer-brand {
      font-size: 15px;
      font-weight: 700;
      color: #ffffff;
      margin-bottom: 10px;
    }

    .footer-license {
      color: #b8b8b8;
      font-size: 14px;
      line-height: 1.8;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 18px;
      align-items: center;
    }

    .footer-links a {
      font-size: 14px;
      color: #d0d0d0;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .footer-links a:hover {
      color: #FF6A1A;
    }

    /* ─── RESPONSIVE DESIGN ─── */
    @media (max-width: 960px) {
      .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
      }

      .hero-left {
        padding-right: 0;
      }

      .hero-right {
        min-height: 350px;
      }

      .roof-visual {
        transform: scale(0.8);
      }

      .property-level,
      .estimate-level,
      .lead-capture-level {
        padding: 40px 24px;
      }

      .estimate-grid {
        grid-template-columns: 1fr;
      }

      .hero-right {
        margin-top: 0 !important;
        align-items: center !important;
      }

      .hero-right > a {
        display: flex;
        width: 100%;
        justify-content: center;
      }

      .hero-right > a > img {
        margin-top: 0 !important;
      }
    }

    @media (max-width: 640px) {
      .hero-title {
        font-size: clamp(32px, 5vw, 42px);
      }

      .hero-subtitle {
        font-size: 16px;
      }

      .hero-right {
        min-height: 280px;
      }

      .roof-visual {
        transform: scale(0.65);
      }

      .property-level h2,
      .estimate-level h2,
      .lead-capture-level h2 {
        font-size: 28px;
      }

      .estimate-grid {
        grid-template-columns: 1fr;
      }

      .estimate-value {
        font-size: 18px;
      }

      .estimate-price {
        font-size: 22px;
      }

      .cta-button {
        height: 50px;
        font-size: 14px;
      }

      .lead-form input {
        height: 50px;
        font-size: 15px;
      }
    }

    /* Results overlay (second-page premium results experience) */
    .ris-results-overlay {
      position: fixed;
      inset: 0;
      background:
        radial-gradient(circle at 82% 12%, rgba(255,106,26,0.08), transparent 28%),
        rgba(7,7,7,0.96);
      z-index: 9999;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 14px;
      overflow: auto;
    }

    .ris-results-shell {
      width: min(1460px, 100%);
      min-height: calc(100vh - 28px);
      border-radius: 22px;
      background: linear-gradient(180deg, rgba(18,18,18,0.94), rgba(10,10,10,0.94));
      border: 1px solid rgba(255,255,255,0.10);
      box-shadow: 0 34px 100px rgba(0,0,0,0.68);
      color: #fff;
      padding: 20px 22px 18px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .results-topbar {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 18px;
      align-items: start;
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .results-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      background: linear-gradient(90deg, #FF6A1A, #FF7A2A);
      padding: 8px 16px;
      border-radius: 11px;
      font-weight: 800;
      letter-spacing: 0.02em;
      box-shadow: 0 10px 30px rgba(255,106,26,0.18);
      font-size: 14px;
    }

    .results-title {
      font-size: clamp(30px, 4vw, 50px);
      line-height: 1.0;
      font-weight: 850;
      letter-spacing: -0.04em;
      margin: 12px 0 6px;
      color: #fff;
    }

    .results-addr {
      color: #d8d8d8;
      font-size: 15px;
      line-height: 1.35;
      max-width: 780px;
    }

    .results-status {
      color: #fff;
      font-size: 15px;
      padding-top: 12px;
      white-space: nowrap;
    }

    .results-body {
      margin-top: 14px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .results-loading {
      min-height: 360px;
      display: grid;
      place-items: center;
      color: #d8d8d8;
      font-size: 20px;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 18px;
      background: rgba(20,20,20,0.42);
    }

    /* Map 1: premium perspective visual */
    .results-perspective-strip {
      position: relative;
      height: clamp(170px, 22vh, 240px);
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.10);
      box-shadow: 0 20px 56px rgba(0,0,0,0.42);
      background: #0d0d0d;
      margin-bottom: 14px;
      flex: 0 0 auto;
    }

    .results-perspective-strip img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 44%;
      display: block;
      filter: saturate(1.06) contrast(1.04);
    }

    .results-perspective-shade {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(0,0,0,0.66), rgba(0,0,0,0.18) 48%, rgba(0,0,0,0.36)),
        radial-gradient(circle at 62% 36%, rgba(255,106,26,0.16), transparent 38%);
      pointer-events: none;
    }

    .results-perspective-badge {
      position: absolute;
      top: 16px;
      right: 16px;
      padding: 9px 13px;
      border-radius: 11px;
      color: #fff;
      background: rgba(10,10,10,0.72);
      border: 1px solid rgba(255,255,255,0.14);
      backdrop-filter: blur(14px);
      font-weight: 800;
      letter-spacing: 0.03em;
      box-shadow: 0 10px 30px rgba(0,0,0,0.32);
      font-size: 12px;
    }

    .results-perspective-copy {
      position: absolute;
      left: 22px;
      bottom: 18px;
      max-width: 520px;
    }

    .results-perspective-copy span,
    .results-section-label,
    .metric-card span {
      display: block;
      color: #e6e6e6;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-weight: 850;
      margin-bottom: 8px;
    }

    .results-perspective-copy strong {
      display: block;
      font-size: clamp(21px, 2.2vw, 32px);
      line-height: 1.05;
      letter-spacing: -0.03em;
      color: #fff;
      max-width: 500px;
    }

    .results-perspective-copy small {
      display: block;
      color: #d8d8d8;
      font-size: 13px;
      margin-top: 6px;
    }

    /* Main board: Map 2 left + info cards right */
    .results-main-board {
      display: grid;
      grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
      gap: 14px;
      align-items: stretch;
      min-height: 0;
    }

    .results-satellite-panel,
    .results-bottom-cta {
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(20,20,20,0.56);
      box-shadow: 0 18px 44px rgba(0,0,0,0.26);
    }

    .results-satellite-panel {
      padding: 18px;
      min-height: 0;
    }

    .results-satellite-panel h3 {
      margin: 0 0 8px;
      font-size: clamp(20px, 2vw, 28px);
      line-height: 1.1;
      letter-spacing: -0.025em;
      color: #fff;
    }

    .results-satellite-panel p {
      margin: 0 0 12px;
      color: #d4d4d4;
      font-size: 14px;
      line-height: 1.45;
    }

    .results-satellite-frame {
  height: clamp(380px, 48vh, 560px);
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(135deg, rgba(19,60,43,0.55), rgba(18,33,42,0.62)),
    #111;
  position: relative;
}

    .results-satellite-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      filter: saturate(1.02) contrast(0.98);
    }

    .satellite-placeholder-grid {
      width: 100%;
      height: 100%;
      position: relative;
      background:
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        radial-gradient(circle at 32% 42%, rgba(78,145,93,0.35), transparent 22%),
        radial-gradient(circle at 72% 58%, rgba(60,110,80,0.30), transparent 24%),
        linear-gradient(135deg, rgba(32,58,43,0.78), rgba(20,38,46,0.84));
      background-size: 56px 56px, 56px 56px, auto, auto, auto;
    }

    .satellite-placeholder-roof {
      position: absolute;
      left: 36%;
      top: 28%;
      width: 28%;
      height: 30%;
      transform: rotate(-8deg);
      border: 2px solid rgba(255,106,26,0.88);
      background: rgba(255,106,26,0.18);
      box-shadow: 0 0 28px rgba(255,106,26,0.45);
      border-radius: 4px;
    }

    .satellite-placeholder-street {
      position: absolute;
      background: rgba(230,230,230,0.20);
      border: 1px solid rgba(255,255,255,0.08);
    }

    .street-one { left: 0; top: 58%; width: 100%; height: 12%; }
    .street-two { left: 17%; top: 0; width: 10%; height: 100%; }

    .satellite-placeholder-label {
      position: absolute;
      right: 14px;
      bottom: 14px;
      color: rgba(255,255,255,0.75);
      font-size: 12px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .results-map-caption {
      margin-top: 10px;
      color: #aeb0b3;
      font-size: 12px;
      line-height: 1.35;
    }

    .results-metrics-panel {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      min-height: 0;
    }

    .metric-card {
      padding: 20px 22px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(20,20,20,0.62);
      min-height: 132px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      box-shadow: 0 16px 38px rgba(0,0,0,0.22);
    }

    .metric-card strong {
      display: block;
      color: #fff;
      font-size: clamp(25px, 2.85vw, 40px);
      line-height: 1.06;
      letter-spacing: -0.035em;
      word-break: normal;
    }

    .estimate-range-card {
      grid-column: 1 / -1;
      min-height: 118px;
    }

    .estimate-range-card strong {
      color: #fff;
      font-size: clamp(22px, 2.3vw, 34px);
    }

    .results-bottom-cta {
      margin-top: 14px;
      padding: 18px 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 22px;
      flex: 0 0 auto;
    }

    .results-bottom-cta h3 {
      margin: 0 0 6px;
      font-size: 21px;
      letter-spacing: -0.02em;
    }

    .results-bottom-cta p {
      margin: 0;
      color: #d0d0d0;
      max-width: 840px;
      font-size: 13px;
      line-height: 1.42;
    }

    .results-message {
      margin-top: 10px;
      padding: 12px 14px;
      color: #fff;
      background: rgba(255,106,26,0.12);
      border: 1px solid rgba(255,106,26,0.22);
      border-radius: 12px;
      font-size: 13px;
    }

    .results-actions {
      margin-top: 12px;
      display: flex;
      gap: 12px;
      justify-content: flex-end;
      flex: 0 0 auto;
    }

    .btn-secondary,
    .btn-primary {
      border-radius: 12px;
      padding: 12px 17px;
      font-weight: 800;
      letter-spacing: 0.04em;
      cursor: pointer;
      transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    }

    .btn-secondary {
      background: rgba(255,255,255,0.02);
      border: 1px solid rgba(255,255,255,0.12);
      color: #fff;
    }

    .btn-primary {
      background: #FF6A1A;
      color: #fff;
      border: 0;
      box-shadow: 0 16px 36px rgba(255,106,26,0.22);
    }

    .btn-primary:hover,
    .btn-secondary:hover {
      transform: translateY(-1px);
    }

    .results-error {
      padding: 20px;
      color: #ffd6d6;
      background: rgba(200,30,30,0.06);
      border: 1px solid rgba(255,120,120,0.18);
      border-radius: 12px;
    }

    .results-error-secondary {
      margin-top: 8px;
      color: #fff0b8;
    }

    @media (max-width: 1120px) {
      .ris-results-shell { min-height: auto; }
      .results-main-board { grid-template-columns: 1fr; }
      .results-metrics-panel { grid-template-columns: repeat(2, 1fr); }
      .results-satellite-frame { height: 300px; }
    }

    @media (max-width: 720px) {
      .ris-results-overlay { padding: 10px; }
      .ris-results-shell { padding: 14px; border-radius: 18px; }
      .results-topbar { grid-template-columns: 1fr; }
      .results-status { padding-top: 0; }
      .results-title { font-size: 34px; }
      .results-perspective-strip { height: 210px; }
      .results-perspective-badge { top: 12px; right: 12px; font-size: 11px; }
      .results-perspective-copy { left: 15px; bottom: 14px; right: 15px; }
      .results-perspective-copy strong { font-size: 22px; }
      .results-metrics-panel { grid-template-columns: 1fr; }
      .metric-card { min-height: 104px; padding: 18px; }
      .results-bottom-cta { flex-direction: column; align-items: flex-start; }
      .results-actions { justify-content: stretch; flex-direction: column-reverse; }
      .btn-primary, .btn-secondary { width: 100%; }
    }

    /* ═══════════════════════════════════════════════════════════════
       P5 — MOTION DESIGN & CINEMATIC EXPERIENCE
       ═══════════════════════════════════════════════════════════════ */

    /* ─── Entrance animations ────────────────────────────────────── */
    @keyframes ris-fade-up {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes ris-fade-in {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
    @keyframes ris-float {
      0%, 100% { transform: translateY(0); }
      50%      { transform: translateY(-9px); }
    }

    .hero-title    { animation: ris-fade-up 0.62s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
    .hero-subtitle { animation: ris-fade-up 0.62s cubic-bezier(0.22,1,0.36,1) 0.16s both; }
    .address-form  { animation: ris-fade-up 0.62s cubic-bezier(0.22,1,0.36,1) 0.27s both; }
    .landing-footer { animation: ris-fade-in 0.8s ease 0.6s both; }

    /* Hero image float */
    .roof-image-wrap {
      animation: ris-float 7s ease-in-out infinite;
    }

    /* Glow pulse (was defined but never applied) */
    .roof-glow {
      animation: glow-pulse 4s ease-in-out infinite;
    }

    /* ─── CTA button shimmer ─────────────────────────────────────── */
    @keyframes ris-shimmer {
      0%   { background-position: -200% center; }
      100% { background-position: 200% center; }
    }
    .cta-button.primary {
      background: linear-gradient(90deg, #FF6A1A 0%, #FF8A3A 42%, #FF6A1A 100%);
      background-size: 200% 100%;
      animation: ris-shimmer 3.2s ease-in-out infinite;
    }
    .cta-button.primary:hover,
    .cta-button.primary:disabled {
      animation: none;
      background: #FF7A2A;
    }

    /* ─── Hero SVG scan overlay ──────────────────────────────────── */
    @keyframes ris-trace {
      from { stroke-dashoffset: 600; }
      to   { stroke-dashoffset: 0; }
    }
    @keyframes ris-scan-line {
      0%   { top: -2px; opacity: 0; }
      5%   { opacity: 1; }
      92%  { opacity: 0.8; }
      100% { top: 100%; opacity: 0; }
    }
    @keyframes ris-chip-in {
      from { opacity: 0; transform: translateX(10px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes ris-dot-blink {
      0%, 100% { opacity: 1; }
      50%      { opacity: 0.25; }
    }

    .ris-hero-scan {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 5;
      border-radius: 28px;
      overflow: hidden;
    }
    .ris-hero-scan svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }
    .ris-scan-outline {
      fill: rgba(0, 245, 255, 0.07);
      stroke: rgba(0, 245, 255, 0.88);
      stroke-width: 1.1;
      stroke-dasharray: 600;
      stroke-dashoffset: 600;
      filter: drop-shadow(0 0 7px rgba(0, 245, 255, 0.75));
      animation: ris-trace 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    }
    .ris-scan-divider {
      fill: none;
      stroke: rgba(160, 248, 255, 0.65);
      stroke-width: 0.55;
      stroke-dasharray: 300;
      stroke-dashoffset: 300;
      filter: drop-shadow(0 0 3px rgba(0, 245, 255, 0.5));
    }
    .ris-scan-divider.d1 { animation: ris-trace 1.3s ease 2.2s forwards; }
    .ris-scan-divider.d2 { animation: ris-trace 1.3s ease 2.6s forwards; }
    .ris-scan-divider.d3 {
      stroke-dasharray: 5 5;
      stroke-opacity: 0.5;
      animation: ris-trace 1.1s ease 3.0s forwards;
    }
    .ris-scan-line {
      position: absolute;
      left: 0; right: 0; height: 2px;
      background: linear-gradient(90deg,
        transparent,
        rgba(0, 245, 255, 0.55),
        rgba(255, 255, 255, 0.85),
        rgba(0, 245, 255, 0.55),
        transparent
      );
      filter: blur(1px);
      top: -2px;
      opacity: 0;
      animation: ris-scan-line 2.4s ease 0.5s forwards;
    }

    /* Data chips */
    .ris-data-chip {
      position: absolute;
      display: flex; align-items: center; gap: 6px;
      padding: 5px 10px;
      border-radius: 20px;
      background: rgba(4, 4, 8, 0.72);
      border: 1px solid rgba(0, 245, 255, 0.28);
      backdrop-filter: blur(12px);
      font-size: 10px; font-weight: 700;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: #dffcff;
      opacity: 0;
      white-space: nowrap;
    }
    .ris-data-chip.chip-area   { top: 17%; right: 5%; animation: ris-chip-in 0.45s ease 2.5s forwards; }
    .ris-data-chip.chip-planes { top: 31%; right: 5%; animation: ris-chip-in 0.45s ease 2.85s forwards; }
    .ris-data-chip.chip-pitch  { bottom: 30%; right: 5%; animation: ris-chip-in 0.45s ease 3.2s forwards; }
    .ris-data-chip.chip-ready  {
      bottom: 13%; left: 50%; transform: translateX(-50%);
      background: rgba(4, 28, 16, 0.78);
      border-color: rgba(74, 222, 128, 0.38);
      color: #bbf7d0;
      animation: ris-chip-in 0.45s ease 3.6s forwards;
    }
    .ris-chip-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: #00f5ff; flex-shrink: 0;
      animation: ris-dot-blink 1.6s ease-in-out infinite;
    }
    .chip-ready .ris-chip-dot { background: #4ade80; }

    /* ─── Overlay entrance ───────────────────────────────────────── */
    @keyframes ris-overlay-in {
      from { opacity: 0; transform: scale(0.975) translateY(14px); }
      to   { opacity: 1; transform: scale(1)     translateY(0); }
    }
    .ris-results-overlay .ris-results-shell {
      animation: ris-overlay-in 0.42s cubic-bezier(0.34, 1.28, 0.64, 1) both;
    }

    /* ─── Metric card stagger ────────────────────────────────────── */
    @keyframes ris-card-in {
      from { opacity: 0; transform: translateY(18px) scale(0.96); }
      to   { opacity: 1; transform: translateY(0)    scale(1); }
    }
    .metric-card.animate { animation: ris-card-in 0.42s cubic-bezier(0.34, 1.28, 0.64, 1) both; }
    .metric-card.animate:nth-child(1) { animation-delay: 0.04s; }
    .metric-card.animate:nth-child(2) { animation-delay: 0.11s; }
    .metric-card.animate:nth-child(3) { animation-delay: 0.18s; }
    .metric-card.animate:nth-child(4) { animation-delay: 0.25s; }

    /* ─── Loading spinner ────────────────────────────────────────── */
    @keyframes ris-spin  { to { transform: rotate(360deg); } }
    @keyframes ris-spin-r{ to { transform: rotate(-360deg); } }
    @keyframes ris-pulse-ring {
      0%, 100% { opacity: 0.35; transform: scale(1); }
      50%      { opacity: 1;    transform: scale(1.05); }
    }

    .results-loading {
      flex-direction: column;
      gap: 0;
    }
    .ris-spinner-wrap {
      display: flex; align-items: center; justify-content: center;
      position: relative;
      width: 72px; height: 72px;
      margin: 0 auto 20px;
    }
    .ris-spinner-outer {
      position: absolute; inset: 0;
      border: 2px solid rgba(255, 106, 26, 0.15);
      border-top-color: #FF6A1A;
      border-radius: 50%;
      animation: ris-spin 1s linear infinite;
    }
    .ris-spinner-inner {
      position: absolute; inset: 12px;
      border: 1px solid rgba(0, 245, 255, 0.2);
      border-bottom-color: rgba(0, 245, 255, 0.7);
      border-radius: 50%;
      animation: ris-spin-r 0.75s linear infinite;
    }
    .ris-spinner-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: rgba(255, 106, 26, 0.6);
      animation: ris-pulse-ring 1.4s ease-in-out infinite;
    }
    .ris-loading-text {
      font-size: 16px;
      color: #d8d8d8;
      text-align: center;
      letter-spacing: 0.01em;
    }

    /* ═══════════════════════════════════════════════════════════════
       AERIAL PREVIEW — hero replaces static image on address select
       ═══════════════════════════════════════════════════════════════ */

    @keyframes ris-aerial-in {
      from { opacity: 0; transform: scale(1.04); }
      to   { opacity: 1; transform: scale(1); }
    }

    /* Stop the idle float when showing a live map */
    .roof-image-wrap.ris-aerial-active {
      animation: none;
      border: 1.5px solid rgba(0, 245, 255, 0.45);
      box-shadow:
        0 0 0 1px rgba(0, 245, 255, 0.15),
        0 0 40px rgba(0, 245, 255, 0.22),
        0 24px 64px rgba(0, 0, 0, 0.55);
    }

    /* The Google Maps div — fills the whole wrap */
    .ris-aerial-map {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border-radius: 26px;
      overflow: hidden;
      animation: ris-aerial-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    /* Gradient vignette + address chip at the bottom */
    .ris-aerial-overlay {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 10;
      border-radius: 26px;
      background: linear-gradient(
        to top,
        rgba(4, 4, 8, 0.80) 0%,
        rgba(4, 4, 8, 0.38) 36%,
        transparent 64%
      );
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 18px 20px;
      gap: 7px;
    }

    /* "Live Aerial View" badge */
    .ris-aerial-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      align-self: flex-start;
      padding: 5px 10px;
      border-radius: 20px;
      background: rgba(4, 4, 8, 0.72);
      border: 1px solid rgba(0, 245, 255, 0.38);
      backdrop-filter: blur(12px);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #dffcff;
      animation: ris-chip-in 0.45s ease 0.5s both;
      opacity: 0;
    }

    /* Blinking cyan dot inside the badge */
    .ris-aerial-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #00f5ff;
      flex-shrink: 0;
      animation: ris-dot-blink 1.6s ease-in-out infinite;
    }

    /* Address line below the badge */
    .ris-aerial-address {
      font-size: 12px;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.82);
      letter-spacing: 0.01em;
      line-height: 1.35;
      animation: ris-fade-up 0.45s ease 0.6s both;
      opacity: 0;
    }

    /* ═══════════════════════════════════════════════════════════════
       ROOF MEASUREMENT INTERFACE  (P6 — Measurement Screen)
       Full-screen 3-column app replacing the results modal.
       ═══════════════════════════════════════════════════════════════ */

    /* ── Outer shell ─────────────────────────────────────────────── */
    .ris-msr-overlay {
      position: fixed;
      inset: 0;
      z-index: 2000;
      background: #080c12;
      display: flex;
      flex-direction: column;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      color: #fff;
      animation: ris-fade-in 0.25s ease both;
    }

    /* ── Top toolbar ─────────────────────────────────────────────── */
    .ris-msr-toolbar {
      height: 54px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 0 20px;
      background: #0d1117;
      border-bottom: 1px solid rgba(255,255,255,0.07);
      z-index: 10;
    }

    .ris-msr-brand {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
      min-width: 0;
    }
    .ris-msr-brand-dot {
      width: 8px; height: 8px; border-radius: 50%;
      background: #FF6A1A; flex-shrink: 0;
      animation: ris-dot-blink 2.2s ease-in-out infinite;
    }
    .ris-msr-brand-name {
      font-size: 13px; font-weight: 700; letter-spacing: 0.01em; color: #fff;
      white-space: nowrap;
    }
    .ris-msr-brand-sep {
      color: rgba(255,255,255,0.18); font-size: 14px; flex-shrink: 0;
    }
    .ris-msr-brand-sub {
      font-size: 10.5px; color: rgba(255,255,255,0.38);
      letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap;
    }

    .ris-msr-tools {
      display: flex; gap: 5px; flex: 1; justify-content: center;
    }
    .ris-msr-tool {
      display: flex; align-items: center; gap: 5px;
      padding: 5px 13px;
      border-radius: 7px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      color: rgba(255,255,255,0.55);
      font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
      cursor: pointer;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
      white-space: nowrap;
    }
    .ris-msr-tool:hover {
      background: rgba(0, 217, 245, 0.07);
      border-color: rgba(0, 217, 245, 0.22);
      color: #00d9f5;
    }
    .ris-msr-tool.active {
      background: rgba(0, 217, 245, 0.11);
      border-color: rgba(0, 217, 245, 0.38);
      color: #00d9f5;
    }
    .ris-msr-tool-icon { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.8; }

    .ris-msr-toolbar-right {
      display: flex; align-items: center; gap: 10px; flex-shrink: 0;
    }
    .ris-msr-status {
      font-size: 10.5px; color: rgba(255,255,255,0.35);
      letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
    }
    .ris-msr-close {
      width: 30px; height: 30px; border-radius: 7px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.10);
      color: rgba(255,255,255,0.55); font-size: 17px;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: background 0.15s, color 0.15s;
    }
    .ris-msr-close:hover {
      background: rgba(255,60,60,0.10); color: #ff7b7b;
      border-color: rgba(255,60,60,0.22);
    }

    /* ── Body — 3-column grid ────────────────────────────────────── */
    .ris-msr-body {
      flex: 1; display: grid;
      grid-template-columns: 255px 1fr 255px;
      overflow: hidden; min-height: 0;
    }

    /* ── Shared panel styles ─────────────────────────────────────── */
    .ris-msr-left, .ris-msr-right {
      background: #0d1117; overflow-y: auto;
      padding: 18px 15px; display: flex; flex-direction: column; gap: 0;
      scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
    }
    .ris-msr-left  { border-right: 1px solid rgba(255,255,255,0.07); }
    .ris-msr-right { border-left:  1px solid rgba(255,255,255,0.07); }

    /* Section label (small-caps divider) */
    .ris-msr-lbl {
      font-size: 9px; font-weight: 700; letter-spacing: 0.14em;
      text-transform: uppercase; color: rgba(255,255,255,0.3);
      padding-bottom: 7px; margin-bottom: 9px; margin-top: 18px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .ris-msr-lbl:first-child { margin-top: 0; }

    /* Address */
    .ris-msr-address {
      font-size: 12.5px; font-weight: 600; color: #dde4f0;
      line-height: 1.45; margin-bottom: 14px;
    }

    /* ── Step indicator (LED-style green lights) ────────────────────── */
    @keyframes ris-led-pulse {
      0%, 100% { box-shadow: 0 0 6px rgba(74,222,128,0.4), 0 0 14px rgba(74,222,128,0.15), inset 0 0 4px rgba(74,222,128,0.25); }
      50%      { box-shadow: 0 0 10px rgba(74,222,128,0.6), 0 0 20px rgba(74,222,128,0.25), inset 0 0 6px rgba(74,222,128,0.35); }
    }
    @keyframes ris-led-glow {
      0%, 100% { box-shadow: 0 0 8px rgba(74,222,128,0.35), 0 0 16px rgba(74,222,128,0.12), inset 0 0 4px rgba(74,222,128,0.2); }
    }
    @keyframes ris-line-activate {
      0%, 100% { background: rgba(74,222,128,0.15); }
    }

    .ris-msr-steps { display: flex; flex-direction: column; gap: 0; margin-bottom: 14px; }
    .ris-msr-step-row {
      display: flex; align-items: flex-start; gap: 9px;
      padding: 5px 0; position: relative;
    }

    /* Vertical connector line between steps */
    .ris-msr-step-row:not(:last-child)::after {
      content: ''; position: absolute; left: 8px; top: 21px; bottom: -5px;
      width: 1px; background: rgba(74,222,128,0.15); transition: background 0.6s cubic-bezier(0.4,0,0.2,1);
    }

    /* Step dot - LED indicator */
    .ris-msr-step-dot {
      width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 9px; font-weight: 800;
      border: 1.5px solid rgba(74,222,128,0.25);
      background: rgba(74,222,128,0.06);
      color: rgba(74,222,128,0.35);
      box-shadow: 0 0 4px rgba(74,222,128,0.1), inset 0 0 2px rgba(74,222,128,0.1);
      transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
    }

    /* Pending state - LED off (dark green) */
    .ris-msr-step-row:not(.done):not(.active) .ris-msr-step-dot {
      border-color: rgba(74,222,128,0.22);
      background: rgba(74,222,128,0.04);
      color: rgba(74,222,128,0.3);
      box-shadow: 0 0 2px rgba(74,222,128,0.05), inset 0 0 2px rgba(74,222,128,0.05);
    }

    /* Complete state - LED solid (steady glow) */
    .ris-msr-step-row.done .ris-msr-step-dot {
      border-color: rgba(74,222,128,0.45);
      background: rgba(74,222,128,0.14);
      color: #4ade80;
      animation: ris-led-glow 2s ease-in-out infinite;
    }

    /* Active state - LED pulsing (bright) */
    .ris-msr-step-row.active .ris-msr-step-dot {
      border-color: rgba(74,222,128,0.6);
      background: rgba(74,222,128,0.2);
      color: #4ade80;
      animation: ris-led-pulse 1.2s ease-in-out infinite;
    }

    /* Connector line activation */
    .ris-msr-step-row.done:not(:last-child)::after {
      background: rgba(74,222,128,0.3);
    }
    .ris-msr-step-row.active:not(:last-child)::after {
      background: rgba(74,222,128,0.4);
      animation: ris-line-activate 1.2s ease-in-out infinite;
    }

    .ris-msr-step-info { display: flex; flex-direction: column; gap: 1px; padding-top: 1px; }
    .ris-msr-step-name {
      font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.22);
      transition: color 0.6s cubic-bezier(0.4,0,0.2,1);
    }
    .ris-msr-step-row.done   .ris-msr-step-name { color: rgba(74,222,128,0.75); }
    .ris-msr-step-row.active .ris-msr-step-name { color: #4ade80; }
    .ris-msr-step-hint {
      font-size: 9.5px; color: rgba(255,255,255,0.18);
      transition: color 0.6s cubic-bezier(0.4,0,0.2,1);
    }
    .ris-msr-step-row.done   .ris-msr-step-hint { color: rgba(74,222,128,0.4); }
    .ris-msr-step-row.active .ris-msr-step-hint { color: rgba(74,222,128,0.6); }

    /* ── Summary / data rows ─────────────────────────────────────── */
    .ris-msr-row {
      display: flex; justify-content: space-between; align-items: baseline;
      padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.045); gap: 6px;
    }
    .ris-msr-row:last-child { border-bottom: none; }
    .ris-msr-row-label { font-size: 10.5px; color: rgba(255,255,255,0.4); flex-shrink: 0; }
    .ris-msr-row-val   { font-size: 11.5px; font-weight: 700; color: #dde4f0; text-align: right; }
    .ris-msr-row-val.big {
      font-size: 15px; letter-spacing: -0.01em;
    }

    /* ── Confidence pill ─────────────────────────────────────────── */
    .ris-msr-conf {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 3px 8px; border-radius: 6px;
      font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
    }
    .ris-msr-conf.high   { background: rgba(74,222,128,0.10); color: #4ade80; border: 1px solid rgba(74,222,128,0.22); }
    .ris-msr-conf.medium { background: rgba(251,191,36,0.10); color: #fbbf24; border: 1px solid rgba(251,191,36,0.22); }
    .ris-msr-conf.low    { background: rgba(248,113,113,0.10); color: #f87171; border: 1px solid rgba(248,113,113,0.22); }

    /* ── Center canvas ───────────────────────────────────────────── */
    .ris-msr-canvas {
      position: relative; overflow: hidden; background: #060a0f;
    }
    .ris-msr-map {
      position: absolute; inset: 0; width: 100%; height: 100%;
    }
    /* Loading state lives in the canvas */
    .ris-msr-canvas-loading {
      position: absolute; inset: 0; z-index: 6;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 16px;
      background: #060a0f;
    }

    /* "⚠ Visual Preview" floating badge on the map */
    .ris-msr-preview-badge {
      position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
      z-index: 20; pointer-events: none;
      display: flex; align-items: center; gap: 6px;
      padding: 5px 13px; border-radius: 20px;
      background: rgba(7,11,17,0.82);
      border: 1px solid rgba(251,191,36,0.32);
      backdrop-filter: blur(14px);
      font-size: 9.5px; font-weight: 700;
      letter-spacing: 0.09em; text-transform: uppercase; color: #fbbf24;
      white-space: nowrap;
      animation: ris-chip-in 0.4s ease 1.2s both; opacity: 0;
    }

    /* Floating chip row at top of canvas */
    .ris-msr-canvas-chips {
      position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
      z-index: 20; pointer-events: none;
      display: flex; gap: 6px;
    }
    .ris-msr-canvas-chip {
      display: flex; align-items: center; gap: 5px;
      padding: 4px 10px; border-radius: 14px;
      background: rgba(7,11,17,0.76);
      border: 1px solid rgba(0,217,245,0.22);
      backdrop-filter: blur(10px);
      font-size: 9.5px; font-weight: 700;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: rgba(0,217,245,0.82); white-space: nowrap;
    }
    .ris-msr-canvas-chip.amber { border-color: rgba(245,158,11,0.25); color: rgba(245,158,11,0.82); }

    /* ── Right panel — measurement rows ─────────────────────────── */
    .ris-msr-meas {
      display: flex; justify-content: space-between; align-items: center;
      padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.045); gap: 8px;
    }
    .ris-msr-meas:last-child { border-bottom: none; }
    .ris-msr-meas-left { display: flex; align-items: center; gap: 7px; }
    .ris-msr-meas-stripe {
      width: 10px; height: 3px; border-radius: 2px; flex-shrink: 0;
    }
    .ris-msr-meas-name { font-size: 11px; color: rgba(255,255,255,0.45); }
    .ris-msr-meas-val  { font-size: 12.5px; font-weight: 700; color: #dde4f0; font-variant-numeric: tabular-nums; }
    .ris-msr-meas-unit { font-size: 10px; color: rgba(255,255,255,0.3); margin-left: 2px; }

    /* ── Estimate block (right panel) ────────────────────────────── */
    .ris-msr-est-block {
      background: rgba(255,106,26,0.05);
      border: 1px solid rgba(255,106,26,0.14);
      border-radius: 11px; padding: 13px; margin-top: 2px;
    }
    .ris-msr-est-range {
      font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: #fff;
      margin-bottom: 3px;
    }
    .ris-msr-est-label {
      font-size: 9.5px; color: rgba(255,255,255,0.35);
      letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 8px;
    }

    /* ── Footer ──────────────────────────────────────────────────── */
    .ris-msr-footer {
      height: 64px; flex-shrink: 0;
      display: flex; align-items: center; gap: 18px;
      padding: 0 22px;
      background: #0d1117; border-top: 1px solid rgba(255,255,255,0.07);
      z-index: 10;
    }
    .ris-msr-footer-msg {
      flex: 1; display: flex; align-items: center; gap: 8px;
      font-size: 11.5px; color: rgba(255,255,255,0.42); line-height: 1.45;
    }
    .ris-msr-footer-icon { color: #fbbf24; flex-shrink: 0; font-style: normal; font-size: 14px; }
    .ris-msr-confirm-msg {
      font-size: 12px; color: #4ade80; display: none;
      padding: 6px 12px; border-radius: 8px;
      background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.18);
    }
    .ris-msr-btn-close {
      background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.11);
      color: rgba(255,255,255,0.52); border-radius: 9px;
      padding: 9px 17px; font-size: 12px; font-weight: 600;
      cursor: pointer; flex-shrink: 0;
      transition: background 0.15s, color 0.15s;
    }
    .ris-msr-btn-close:hover { background: rgba(255,255,255,0.07); color: #fff; }
    .ris-msr-btn-confirm {
      background: #FF6A1A; color: #fff; border: 0; border-radius: 9px;
      padding: 10px 20px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.03em;
      cursor: pointer; flex-shrink: 0; white-space: nowrap;
      box-shadow: 0 8px 22px rgba(255,106,26,0.26);
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .ris-msr-btn-confirm:hover {
      transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,106,26,0.36);
    }
    .ris-msr-btn-confirm:disabled {
      opacity: 0.45; cursor: not-allowed; transform: none;
    }

    /* ── Historical compare button (footer) ─────────────────────── */
    .ris-msr-btn-hist {
      background: rgba(0,191,255,0.07);
      border: 1px solid rgba(0,191,255,0.25);
      color: #00BFFF; border-radius: 9px;
      padding: 9px 16px; font-size: 11.5px; font-weight: 700;
      cursor: pointer; flex-shrink: 0; white-space: nowrap;
      letter-spacing: 0.03em;
      transition: background 0.15s, border-color 0.15s;
    }
    .ris-msr-btn-hist:hover {
      background: rgba(0,191,255,0.13); border-color: rgba(0,191,255,0.45);
    }

    /* ── Zoom / Reset tool buttons ───────────────────────────────── */
    .ris-msr-tool-sep {
      width: 1px; height: 18px; background: rgba(255,255,255,0.10);
      margin: 0 4px; flex-shrink: 0;
    }

    /* ── Confidence badge (floating on map, top-center) ─────────── */
    .ris-msr-conf-badge {
      position: absolute; top: 48px; left: 50%; transform: translateX(-50%);
      z-index: 21; pointer-events: none;
      padding: 8px 16px; border-radius: 10px;
      background: rgba(5,8,14,0.84);
      border: 1px solid rgba(0,191,255,0.30);
      backdrop-filter: blur(12px);
      text-align: center;
      animation: ris-chip-in 0.5s ease 1.0s both; opacity: 0;
      white-space: nowrap;
    }
    .ris-msr-conf-badge-title {
      font-size: 9px; font-weight: 800; letter-spacing: 0.13em;
      text-transform: uppercase; color: #fbbf24; margin-bottom: 3px;
    }
    .ris-msr-conf-badge-row {
      font-size: 9.5px; color: rgba(255,255,255,0.52); line-height: 1.5;
    }
    .ris-msr-conf-badge-row strong { color: #a8d8ea; font-weight: 700; }

    /* ── Map legend (bottom-left of canvas) ─────────────────────── */
    .ris-msr-map-legend {
      position: absolute; bottom: 44px; left: 12px; z-index: 21;
      pointer-events: none;
      padding: 9px 12px; border-radius: 9px;
      background: rgba(5,8,14,0.80);
      border: 1px solid rgba(255,255,255,0.09);
      backdrop-filter: blur(10px);
      min-width: 140px;
      animation: ris-chip-in 0.4s ease 1.3s both; opacity: 0;
    }
    .ris-msr-legend-title {
      font-size: 8px; font-weight: 800; letter-spacing: 0.13em;
      text-transform: uppercase; color: rgba(255,255,255,0.3);
      margin-bottom: 7px;
    }
    .ris-msr-legend-item {
      display: flex; align-items: center; gap: 7px;
      font-size: 10px; color: rgba(255,255,255,0.55); padding: 2px 0;
    }
    .ris-msr-legend-swatch {
      width: 14px; height: 8px; border-radius: 2px; flex-shrink: 0;
    }

    /* ── Per-plane list (right panel) ────────────────────────────── */
    .ris-msr-plane-list {
      margin-top: 4px; margin-bottom: 2px;
    }
    .ris-msr-plane-item {
      display: flex; align-items: center; gap: 5px;
      padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
      font-size: 10.5px;
    }
    .ris-msr-plane-item:last-child { border-bottom: none; }
    .ris-msr-plane-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: #00BFFF; flex-shrink: 0; opacity: 0.7;
    }
    .ris-msr-plane-dir {
      color: rgba(255,255,255,0.55); min-width: 56px; flex-shrink: 0; font-size: 10px;
    }
    .ris-msr-plane-pitch {
      color: #00BFFF; font-weight: 700; min-width: 46px; flex-shrink: 0; font-size: 10px;
    }
    .ris-msr-plane-area {
      color: #dde4f0; font-size: 10px; font-variant-numeric: tabular-nums;
      text-align: right; flex: 1;
    }

    /* ── Plane detail popup (Google Maps InfoWindow override) ─────── */
    .ris-plane-popup {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      min-width: 200px; color: #1a1a2e;
    }
    .ris-plane-popup-title {
      font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
      text-transform: uppercase; color: #00BFFF;
      margin-bottom: 8px; padding-bottom: 6px;
      border-bottom: 1px solid rgba(0,191,255,0.25);
    }
    .ris-plane-popup-table {
      width: 100%; border-collapse: collapse; font-size: 11.5px;
    }
    .ris-plane-popup-table td {
      padding: 3px 0; color: #333;
    }
    .ris-plane-popup-table td:first-child {
      color: #666; width: 80px; font-size: 10.5px;
    }
    .ris-plane-popup-table td:last-child { font-weight: 600; }

    /* Draw mode overlay hint */
    .ris-draw-hint {
      position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
      z-index: 22;
      padding: 7px 16px; border-radius: 20px;
      background: rgba(0,191,255,0.12);
      border: 1px solid rgba(0,191,255,0.4);
      color: #00BFFF; font-size: 11px; font-weight: 600;
      letter-spacing: 0.04em; white-space: nowrap;
      animation: ris-fade-in 0.3s ease both;
    }

    /* ── Responsive ──────────────────────────────────────────────── */
    @media (max-width: 1100px) {
      .ris-msr-body { grid-template-columns: 220px 1fr 220px; }
    }
    @media (max-width: 820px) {
      .ris-msr-body { grid-template-columns: 1fr; grid-template-rows: auto 360px auto; overflow-y: auto; }
      .ris-msr-left, .ris-msr-right { border: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 12px 14px; }
      .ris-msr-canvas { min-height: 360px; }
      .ris-msr-tools { display: none; }
      .ris-msr-footer { height: auto; padding: 12px 16px; flex-direction: column; align-items: stretch; gap: 8px; }
      .ris-msr-btn-confirm, .ris-msr-btn-close { width: 100%; text-align: center; }
      .ris-msr-btn-hist { width: 100%; text-align: center; }
      .ris-msr-conf-badge { top: 12px; }
    }

    /* ── Lead gate card (left panel, post-analysis teaser) ───────── */
    .ris-lead-gate-card {
      padding: 20px 12px 16px;
      display: flex; flex-direction: column; align-items: center;
      gap: 10px; text-align: center;
    }
    .ris-lead-gate-check {
      width: 44px; height: 44px; border-radius: 50%;
      background: rgba(0,191,255,0.12); border: 2px solid rgba(0,191,255,0.45);
      color: #3FD3FF; font-size: 22px; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
    }
    .ris-lead-gate-title {
      color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -0.2px;
    }
    .ris-lead-gate-sub {
      color: rgba(255,255,255,0.50); font-size: 11px; line-height: 1.55;
    }
    .ris-lead-gate-sub strong { color: rgba(255,255,255,0.80); font-weight: 600; }

    /* ── Inline lead-gate form ────────────────────────────────────── */
    .ris-gate-form {
      padding: 14px 12px 10px;
      display: flex; flex-direction: column; gap: 10px;
    }
    .ris-gate-form-title {
      color: #fff; font-size: 13px; font-weight: 700;
    }
    .ris-gate-form-sub {
      color: rgba(255,255,255,0.45); font-size: 10.5px; line-height: 1.5;
      margin-top: -4px;
    }
    .ris-gate-form-row { display: flex; flex-direction: column; gap: 3px; }
    .ris-gate-form-lbl {
      color: rgba(255,255,255,0.40); font-size: 9.5px;
      font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    }
    .ris-gate-form-input {
      background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
      border-radius: 6px; padding: 7px 10px;
      color: #fff; font-size: 12px; outline: none; width: 100%; box-sizing: border-box;
      transition: border-color 0.18s;
    }
    .ris-gate-form-input:focus { border-color: rgba(0,191,255,0.50); }
    .ris-gate-form-consent {
      display: flex; align-items: flex-start; gap: 7px;
      color: rgba(255,255,255,0.38); font-size: 9.5px; line-height: 1.45;
    }
    .ris-gate-form-consent input[type=checkbox] { margin-top: 1px; flex-shrink: 0; }
    .ris-gate-form-submit {
      background: #3FD3FF; color: #05080e;
      border: none; border-radius: 8px;
      padding: 9px 14px; font-size: 12px; font-weight: 700;
      cursor: pointer; text-align: center; transition: background 0.18s;
    }
    .ris-gate-form-submit:hover:not(:disabled) { background: #7de3ff; }
    .ris-gate-form-submit:disabled { opacity: 0.55; cursor: not-allowed; }
    .ris-gate-form-msg {
      color: #fbbf24; font-size: 10.5px; min-height: 14px;
    }

/* ═══════════════════════════════════════════════════════════════
   ROOFING PROJECTS GALLERY
   ═══════════════════════════════════════════════════════════════ */

/* ── Secondary CTA button ────────────────────────────────────── */
.cta-button.projects-cta {
  margin-top: 10px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.75);
  display: flex; align-items: center; justify-content: center; gap: 9px;
  backdrop-filter: blur(8px);
  transition: all 0.22s ease;
  font-size: 14.5px;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.cta-button.projects-cta:hover {
  border-color: rgba(0,217,245,0.38);
  color: #ffffff;
  background: rgba(0,217,245,0.06);
  box-shadow: 0 0 28px rgba(0,217,245,0.12), 0 6px 20px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}
.cta-button.projects-cta:active { transform: none; }
.cta-button.projects-cta svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.65; }
.cta-button.projects-cta:hover svg { opacity: 1; color: #00d9f5; }

/* ── Gallery modal overlay ───────────────────────────────────── */
.ris-gallery-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.ris-gallery-modal.is-open { display: flex; }

.ris-gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Dialog ──────────────────────────────────────────────────── */
.ris-gallery-dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 980px;
  height: 90vh; max-height: 90vh;
  display: flex; flex-direction: column;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.03);
}
.ris-gallery-modal.is-open .ris-gallery-dialog {
  animation: ris-gallery-in 0.2s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes ris-gallery-in {
  from { opacity: 0; transform: scale(0.975) translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ── Header ──────────────────────────────────────────────────── */
.ris-gallery-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 22px 28px 16px; gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.ris-gallery-header-left { flex: 1; }
.ris-gallery-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: #00d9f5; margin-bottom: 8px;
}
.ris-gallery-dot { width: 6px; height: 6px; border-radius: 50%; background: #00d9f5; flex-shrink: 0; }
.ris-gallery-title {
  font-size: 21px; font-weight: 800; color: #ffffff;
  margin: 0 0 4px; letter-spacing: -0.015em;
}
.ris-gallery-sub { font-size: 13px; color: rgba(255,255,255,0.38); margin: 0; line-height: 1.5; }
.ris-gallery-close {
  background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%; width: 34px; height: 34px; cursor: pointer;
  color: rgba(255,255,255,0.55); font-size: 15px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s ease; line-height: 1;
}
.ris-gallery-close:hover {
  background: rgba(255,60,60,0.1); border-color: rgba(255,60,60,0.28);
  color: #ff7b7b; transform: scale(1.08);
}

/* ── Filters ─────────────────────────────────────────────────── */
.ris-gallery-filters-wrap {
  padding: 12px 28px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow-x: auto; flex-shrink: 0;
  scrollbar-width: none;
}
.ris-gallery-filters-wrap::-webkit-scrollbar { display: none; }
.ris-gallery-filters { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

.ris-gallery-filter {
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.48);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.14s ease; white-space: nowrap;
}
.ris-gallery-filter:hover { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.78); }
.ris-gallery-filter.is-active {
  background: rgba(0,217,245,0.08); border-color: rgba(0,217,245,0.32); color: #00d9f5;
}
.ris-filter-sep {
  width: 1px; height: 18px; background: rgba(255,255,255,0.1);
  margin: 0 4px; flex-shrink: 0;
}

/* ── Project grid ────────────────────────────────────────────── */
#ris-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 20px;
  padding: 20px;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}
#ris-gallery-grid::-webkit-scrollbar { width: 6px; }
#ris-gallery-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
#ris-gallery-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.ris-gallery-loading, .ris-gallery-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 52px 0; color: rgba(255,255,255,0.28); font-size: 13px;
}
.ris-gallery-loading::before { content: ''; display: block; margin: 0 auto 14px; }

/* ── Project card ────────────────────────────────────────────── */
.ris-project-card {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; overflow: hidden;
  transition: all 0.18s ease;
  min-width: 0;
  height: auto;
  display: flex; flex-direction: column;
}
.ris-project-card:hover {
  border-color: rgba(0,217,245,0.22);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.32);
}
.ris-project-img-wrap {
  width: 100%; height: 200px;
  flex-shrink: 0;
  overflow: hidden; position: relative; background: #0a1220;
}
.ris-project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.ris-project-title { word-wrap: break-word; overflow-wrap: break-word; }
.ris-project-img-wrap.ris-img-missing .ris-project-img { display: none; }
.ris-project-img-wrap.ris-img-missing .ris-project-placeholder { display: flex; }
.ris-project-placeholder {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; position: absolute; inset: 0;
  background: linear-gradient(135deg, #0d1525 0%, #0a1a2e 100%);
}
.ris-ph-icon { font-size: 26px; color: rgba(0,217,245,0.22); line-height: 1; }
.ris-ph-text { font-size: 10px; color: rgba(255,255,255,0.18); letter-spacing: 0.06em; }

.ris-project-body { padding: 13px 14px 12px; }
.ris-project-meta { font-size: 10.5px; color: rgba(255,255,255,0.3); margin-bottom: 5px; }
.ris-project-title {
  font-size: 13px; font-weight: 700; color: #dde4f0;
  margin-bottom: 4px; line-height: 1.35;
}
.ris-project-type { font-size: 11px; color: rgba(255,255,255,0.38); margin-bottom: 9px; }
.ris-project-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 9px; }

.ris-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 10px;
}
.ris-badge-real  { background: rgba(255,106,26,0.1); border: 1px solid rgba(255,106,26,0.22); color: #FF6A1A; }
.ris-badge-drone { background: rgba(0,217,245,0.07); border: 1px solid rgba(0,217,245,0.18); color: #00d9f5; }
.ris-badge-ba    { background: rgba(139,92,246,0.09); border: 1px solid rgba(139,92,246,0.2); color: #a78bfa; }

.ris-project-ba-btn {
  font-size: 11px; font-weight: 600; color: #00d9f5;
  background: rgba(0,217,245,0.05); border: 1px solid rgba(0,217,245,0.14);
  border-radius: 8px; padding: 6px 12px; cursor: pointer;
  transition: all 0.14s ease; width: 100%; text-align: center; display: block;
}
.ris-project-ba-btn:hover { background: rgba(0,217,245,0.1); border-color: rgba(0,217,245,0.28); }

/* ── Before / After panel (full dialog overlay) ──────────────── */
.ris-gallery-ba-panel {
  position: absolute; inset: 0; z-index: 10;
  background: #0d1117; border-radius: 22px; overflow: hidden;
  flex-direction: column;
}
.ris-ba-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px 14px; border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.ris-ba-header h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 0; }
.ris-ba-close {
  font-size: 13px; color: rgba(255,255,255,0.45); background: none; border: none;
  cursor: pointer; padding: 6px 10px; transition: color 0.15s; font-weight: 600;
}
.ris-ba-close:hover { color: #fff; }
.ris-ba-images {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; padding: 20px 28px; overflow-y: auto;
}
.ris-ba-col { display: flex; flex-direction: column; gap: 8px; }
.ris-ba-label {
  font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}
.ris-ba-img {
  width: 100%; border-radius: 12px; object-fit: cover;
  border: 1px solid rgba(255,255,255,0.07);
}

/* ── Footer CTA ──────────────────────────────────────────────── */
.ris-gallery-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px; border-top: 1px solid rgba(255,255,255,0.055);
  flex-shrink: 0; background: rgba(0,0,0,0.15);
}
.ris-gallery-footer-text { font-size: 13px; color: rgba(255,255,255,0.4); margin: 0; }
.ris-gallery-footer .cta-button { width: auto; height: 40px; padding: 0 22px; font-size: 13.5px; margin: 0; }

/* ── Mobile responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .ris-gallery-modal { padding: 8px; }
  .ris-gallery-dialog { height: 96vh; max-height: 96vh; border-radius: 18px; }
  .ris-gallery-grid { grid-template-columns: 1fr; padding: 14px; }
  .ris-gallery-header { padding: 16px 18px 12px; }
  .ris-gallery-filters-wrap { padding: 10px 14px 8px; }
  .ris-gallery-footer { flex-direction: column; align-items: stretch; text-align: center; padding: 12px 18px; }
  .ris-gallery-footer .cta-button { width: 100%; }
  .ris-ba-images { grid-template-columns: 1fr; }
  .ris-ba-header { padding: 14px 18px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .ris-gallery-dialog { height: 92vh; max-height: 92vh; }
  .ris-gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Gallery card additions (new JSON schema) ────────────────── */
.ris-badge-featured { background: rgba(250,204,21,0.12); border: 1px solid rgba(250,204,21,0.28); color: #fbbf24; }
.ris-badge-cat      { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.5); }
.ris-project-tags   { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.ris-project-tags span {
  font-size: 9px; color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px; padding: 1px 6px;
}

