<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 1000" role="img" aria-label="Lightning protection on a South Texas tank battery — air terminals, down conductors, and a grounding ring guiding a strike safely to earth at an oilfield lease site">
<defs>
  <linearGradient id="oSky" x1="0" y1="0" x2="0" y2="1">
    <stop offset="0" stop-color="#0A1320"/>
    <stop offset=".45" stop-color="#0E1726"/>
    <stop offset="1" stop-color="#10202F"/>
  </linearGradient>
  <radialGradient id="oFlash" cx="50%" cy="12%" r="60%">
    <stop offset="0" stop-color="#9fe0ff" stop-opacity=".55"/>
    <stop offset=".3" stop-color="#5BC3F0" stop-opacity=".18"/>
    <stop offset="1" stop-color="#5BC3F0" stop-opacity="0"/>
  </radialGradient>
  <linearGradient id="oGround" x1="0" y1="0" x2="0" y2="1">
    <stop offset="0" stop-color="#13233A"/>
    <stop offset="1" stop-color="#0A1422"/>
  </linearGradient>
  <linearGradient id="oTank" x1="0" y1="0" x2="1" y2="0">
    <stop offset="0" stop-color="#1A2B42"/>
    <stop offset=".5" stop-color="#243A57"/>
    <stop offset="1" stop-color="#16243A"/>
  </linearGradient>
  <linearGradient id="oBolt" x1="0" y1="0" x2="0" y2="1">
    <stop offset="0" stop-color="#eaf7ff"/>
    <stop offset="1" stop-color="#5BC3F0"/>
  </linearGradient>
  <pattern id="oGrid" width="40" height="40" patternUnits="userSpaceOnUse">
    <path d="M40 0H0V40" fill="none" stroke="#2FA8E0" stroke-opacity=".06"/>
  </pattern>
  <filter id="oGlow" x="-60%" y="-60%" width="220%" height="220%">
    <feGaussianBlur stdDeviation="6" result="b"/>
    <feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge>
  </filter>
  <filter id="oSoft" x="-40%" y="-40%" width="180%" height="180%">
    <feGaussianBlur stdDeviation="2.2"/>
  </filter>
</defs>

<rect width="800" height="1000" fill="url(#oSky)"/>
<rect width="800" height="1000" fill="url(#oGrid)"/>
<rect width="800" height="640" fill="url(#oFlash)"/>

<!-- distant pumpjack silhouette -->
<g opacity=".5" stroke="#1A2C44" stroke-width="6" fill="none" stroke-linecap="round">
  <path d="M60 560 L60 470"/>
  <path d="M40 470 L100 410"/>
  <path d="M30 410 L120 410"/>
  <path d="M120 410 L150 440"/>
  <path d="M28 560 L92 560"/>
</g>

<!-- the strike: jagged bolt arriving at the air terminal -->
<g filter="url(#oGlow)">
  <path d="M470 20 L432 210 L470 200 L412 360 L452 350 L408 388"
        fill="none" stroke="url(#oBolt)" stroke-width="7" stroke-linejoin="round" stroke-linecap="round"/>
  <path d="M470 20 L432 210 L470 200 L412 360 L452 350 L408 388"
        fill="none" stroke="#ffffff" stroke-width="2.4" stroke-linejoin="round" stroke-linecap="round" opacity=".9"/>
  <path d="M448 250 L500 300 M430 330 L388 300" stroke="#bfeaff" stroke-width="3" fill="none" opacity=".7"/>
</g>

<!-- GROUND -->
<rect y="640" width="800" height="360" fill="url(#oGround)"/>
<path d="M0 640 Q400 612 800 640 L800 680 Q400 654 0 680 Z" fill="#16263E" opacity=".7"/>

<!-- TANK BATTERY: three storage tanks -->
<g>
  <!-- tank 1 (strike target) -->
  <rect x="290" y="478" width="236" height="200" rx="6" fill="url(#oTank)" stroke="#34506F" stroke-width="2"/>
  <ellipse cx="408" cy="478" rx="118" ry="26" fill="#2E486B" stroke="#3C5C80" stroke-width="2"/>
  <path d="M290 540 H526 M290 600 H526" stroke="#101D2E" stroke-width="3" opacity=".6"/>
  <rect x="300" y="500" width="34" height="20" rx="3" fill="#101D2E" opacity=".5"/>
  <!-- catwalk rail -->
  <path d="M290 470 H526" stroke="#46688C" stroke-width="3"/>

  <!-- tank 2 -->
  <rect x="540" y="520" width="170" height="158" rx="6" fill="url(#oTank)" stroke="#34506F" stroke-width="2"/>
  <ellipse cx="625" cy="520" rx="85" ry="20" fill="#2A4364" stroke="#3C5C80" stroke-width="2"/>
  <path d="M540 575 H710 M540 625 H710" stroke="#101D2E" stroke-width="2.5" opacity=".5"/>

  <!-- tank 3 (left, partial) -->
  <rect x="120" y="540" width="150" height="138" rx="6" fill="url(#oTank)" stroke="#34506F" stroke-width="2"/>
  <ellipse cx="195" cy="540" rx="75" ry="18" fill="#2A4364" stroke="#3C5C80" stroke-width="2"/>
  <path d="M120 592 H270" stroke="#101D2E" stroke-width="2.5" opacity=".5"/>
</g>

<!-- AIR TERMINALS (lightning rods) on each tank -->
<g stroke="#9FB4CC" stroke-width="4" stroke-linecap="round">
  <line x1="408" y1="452" x2="408" y2="392"/>
  <line x1="625" y1="500" x2="625" y2="452"/>
  <line x1="195" y1="522" x2="195" y2="476"/>
</g>
<g fill="#F2B705">
  <circle cx="408" cy="388" r="7"/>
  <circle cx="625" cy="448" r="6"/>
  <circle cx="195" cy="472" r="6"/>
</g>
<!-- terminal tips spark -->
<circle cx="408" cy="388" r="14" fill="#F2B705" opacity=".25" filter="url(#oSoft)"/>

<!-- DOWN CONDUCTORS (bonding cable) running down each tank to the ring -->
<g stroke="#F2B705" stroke-width="3.4" fill="none" stroke-linecap="round" opacity=".95">
  <path d="M408 388 Q396 470 372 478 L372 678 Q372 700 360 712"/>
  <path d="M625 448 Q636 520 660 526 L660 678 Q660 698 672 710"/>
  <path d="M195 472 Q184 540 162 546 L162 678 Q162 698 150 710"/>
</g>

<!-- GROUNDING RING / counterpoise across the pad -->
<path d="M120 740 Q400 720 712 740" fill="none" stroke="#F2B705" stroke-width="4" stroke-linecap="round"/>
<g stroke="#F2B705" stroke-width="3" stroke-dasharray="2 9" opacity=".8">
  <path d="M120 740 Q400 720 712 740"/>
</g>
<!-- ground electrodes / rods into earth -->
<g stroke="#C99405" stroke-width="5" stroke-linecap="round">
  <line x1="160" y1="742" x2="160" y2="820"/>
  <line x1="360" y1="730" x2="360" y2="812"/>
  <line x1="560" y1="730" x2="560" y2="812"/>
  <line x1="700" y1="742" x2="700" y2="820"/>
</g>
<!-- current dissipating into earth -->
<g stroke="#F2B705" stroke-width="2" fill="none" opacity=".5">
  <path d="M360 812 q-22 26 -40 40 M360 812 q22 26 40 42 M360 812 q-4 30 -6 50"/>
  <path d="M560 812 q-20 26 -36 40 M560 812 q20 26 38 42"/>
</g>

<!-- bonded equipment box on pad -->
<rect x="430" y="690" width="70" height="50" rx="4" fill="#16243A" stroke="#34506F" stroke-width="2"/>
<rect x="438" y="700" width="54" height="6" rx="3" fill="#2FA8E0" opacity=".7"/>
<rect x="438" y="714" width="40" height="6" rx="3" fill="#2FA8E0" opacity=".4"/>
<path d="M465 740 L465 736" stroke="#F2B705" stroke-width="3"/>

<!-- label chips -->
<g font-family="'JetBrains Mono',monospace" font-size="15" font-weight="600">
  <g>
    <rect x="486" y="356" width="150" height="30" rx="6" fill="#0A1320" stroke="#2FA8E0" stroke-opacity=".5"/>
    <text x="500" y="376" fill="#9fe0ff">AIR TERMINAL</text>
  </g>
  <g>
    <rect x="690" y="560" width="92" height="30" rx="6" fill="#0A1320" stroke="#F2B705" stroke-opacity=".5"/>
    <text x="702" y="580" fill="#F2B705">DOWN</text>
  </g>
  <g>
    <rect x="300" y="846" width="190" height="30" rx="6" fill="#0A1320" stroke="#F2B705" stroke-opacity=".5"/>
    <text x="314" y="866" fill="#F2B705">GROUNDING RING</text>
  </g>
</g>
</svg>
