:root {
  color-scheme: light;
  --ink: #111e30;
  --navy: #0b1628;
  --steel: #4d5a6c;
  --paper: #f7f8f9;
  --copper: #faac72;
  --line: #d8dee6;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 1.5rem; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid #2987c3; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; z-index: 9; left: 12px; top: 12px; transform: translateY(-160%); background: white; padding: .75rem; }
.skip:focus { transform: none; }
.top { color: #f6f8fb; background: var(--navy); border-bottom: 1px solid #2a3547; }
.nav, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.45rem; font-weight: 750; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--copper); font-size: .72em; letter-spacing: -.025em; margin-left: -.2rem; }
nav { display: flex; align-items: center; gap: clamp(.65rem, 3vw, 2.2rem); }
nav > a { text-decoration: none; font-size: .94rem; }
nav > a:hover, footer a:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .68rem 1.15rem; border: 1px solid transparent; border-radius: 5px; background: var(--copper); color: #121b27; font: inherit; font-weight: 700; font-size: .94rem; text-decoration: none; cursor: pointer; }
.button:hover { background: #ffc498; }
.button.small { min-height: 40px; padding: .43rem .86rem; }
.button.outline { background: transparent; border-color: #6c7e96; color: #f8fafc; }
.button.outline:hover { background: #24334a; }
.hero { color: #f6f8fb; background: var(--navy); }
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: stretch; min-height: 540px; }
.hero-copy { padding: clamp(3rem, 6vw, 5.4rem) 1.5rem clamp(3rem, 5.5vw, 4.5rem) 0; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: .62rem; color: var(--copper); font-size: .88rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow span { height: 2px; width: 24px; background: currentColor; }
h1 { font-size: clamp(3.15rem, 5.45vw, 5.3rem); font-weight: 740; letter-spacing: -.075em; line-height: .98; margin: 1.1rem 0 1.3rem; }
h1 em { font-style: normal; color: var(--copper); }
.intro { color: #d5deea; max-width: 37ch; font-size: clamp(1.05rem, 1.55vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.hero-image { background: linear-gradient(90deg, #0b1628 0%, #0b16281a 20%, transparent 55%), linear-gradient(0deg, #0b16284d, transparent 45%), url("substation.webp") center 54% / cover, #203449; }
.index { color: #eff4f9; background: #14233a; border-top: 1px solid #32425a; }
.index-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.index a { display: grid; padding: 1.5rem 1rem 1.5rem 1.5rem; text-decoration: none; border-left: 1px solid #34445a; }
.index a:last-child { border-right: 1px solid #34445a; }
.index a:hover { background: #1b304b; }
.index span { color: #fbb785; font-size: .9rem; }
.index strong { font-size: 1.07rem; margin-top: .2rem; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-intro { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .65rem 2rem; margin-bottom: 1.75rem; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.06; letter-spacing: -.05em; text-wrap: balance; }
.section p, .product li { color: var(--steel); }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product { --product-padding: clamp(1.15rem, 2.4vw, 2rem); display: flex; flex-direction: column; padding: var(--product-padding); border: 1px solid var(--line); border-top: 3px solid #c67745; border-radius: 6px; background: white; }
.product-photo {
  display: block;
  width: calc(100% + 2 * var(--product-padding));
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: calc(-1 * var(--product-padding)) calc(-1 * var(--product-padding)) 1.1rem;
  border-radius: 3px 3px 0 0;
  background: #e9edf0;
}
.product-top { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: 1.1rem; }
.category { color: #824824; font-size: .9rem; font-weight: 700; }
.product-icon { position: relative; width: 36px; height: 36px; flex: none; border-radius: 5px; background: #f8eee7; color: #824824; }
.product-icon::before, .product-icon::after { position: absolute; content: ""; border: 2px solid currentColor; border-radius: 2px; }
.conduit::before { width: 20px; height: 8px; top: 14px; left: 8px; transform: rotate(-35deg); }
.conduit::after { width: 6px; height: 8px; top: 10px; left: 21px; transform: rotate(-35deg); }
.joint::before { width: 23px; height: 4px; top: 16px; left: 7px; }
.joint::after { width: 12px; height: 11px; top: 12px; left: 12px; background: #f8eee7; }
.ethernet::before { width: 16px; height: 14px; top: 8px; left: 10px; }
.ethernet::after { width: 5px; height: 10px; top: 20px; left: 16px; }
.terminal::before { width: 7px; height: 23px; top: 6px; left: 15px; }
.terminal::after { width: 15px; height: 5px; top: 14px; left: 11px; }
h3 { font-size: 1.42rem; line-height: 1.16; letter-spacing: -.03em; margin-bottom: .6rem; }
.product ul { border-top: 1px solid #e2e6ed; margin: 1.15rem 0; padding: 1rem 0 0 1.2rem; }
.product li + li { margin-top: .3rem; }
.product .product-options { list-style: none; margin-bottom: 0; padding-left: 0; }
.product-options strong { color: var(--ink); }
.product-options li > span { display: block; }
.product-options li + li { border-top: 1px solid #e2e6ed; margin-top: .75rem; padding-top: .75rem; }
.about { background: #101f34; color: #f4f7fc; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 6vw, 6rem); }
.about-grid { padding-block: clamp(3rem, 6vw, 5rem); align-items: end; }
.about .eyebrow { margin-bottom: 1rem; }
.about-grid > div + div { color: #d8e1ed; }
.directory { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.directory .section-intro { margin-bottom: 1rem; }
.directory h3 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.directory-nav { flex-wrap: wrap; gap: .5rem; margin-bottom: 1.65rem; }
.directory-nav a { padding: .42rem .68rem; border: 1px solid var(--line); border-radius: 4px; background: white; font-weight: 650; }
.directory-nav a:hover { background: #f8eee7; }
.directory-grid { display: grid; gap: 2rem; }
.directory-group h4 { margin: 0 0 .8rem; color: #824824; font-size: 1.2rem; }
.directory-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; list-style: none; margin: 0; padding: 0; }
.directory-card { display: grid; grid-template-columns: 36% minmax(0, 1fr); align-items: center; overflow: hidden; min-height: 105px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.directory-card img { display: block; width: 100%; height: 100%; min-height: 105px; object-fit: cover; background: #e9edf0; }
.directory-copy { padding: .8rem .9rem; }
.directory-copy h5 { margin: 0; line-height: 1.25; font-size: 1rem; }
.directory-copy p { margin-top: .22rem; font-size: .9rem; line-height: 1.35; }
.contact { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.contact p { margin-top: .75rem; }
footer { background: var(--navy); color: #dbe4ef; }
.footer-row { min-height: 95px; flex-wrap: wrap; }
@media (max-width: 1050px) {
  .products, .index-grid, .directory-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index a:nth-child(even) { border-right: 1px solid #34445a; }
  .index a:nth-child(n+3) { border-top: 1px solid #34445a; }
}
@media (max-width: 890px) {
  .wrap { width: calc(100% - 48px); }
  .hero-grid { min-height: 460px; }
}
@media (max-width: 730px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-right: 0; padding-bottom: 2rem; }
  .hero-image { min-height: 235px; margin-inline: -24px; background-position: center, center, center 54%; }
  .products { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 36px); }
  .nav { min-height: 66px; gap: .35rem; }
  .nav .brand { font-size: clamp(1rem, 4.3vw, 1.3rem); gap: .46rem; }
  .nav .brand img { width: 28px; height: 28px; }
  nav { gap: .55rem; }
  .nav nav > a:not(.button) { display: none; }
  .hero-image { margin-inline: -18px; }
  .index-grid, .directory-cards { grid-template-columns: 1fr; }
  .index a, .index a:last-child, .index a:nth-child(even), .index a:nth-child(n+3) { border: 0; padding: .65rem 0; }
  .index a + a, .index a:nth-child(n+3) { border-top: 1px solid #34445a; }
  .footer-row { padding-block: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
