/* ---------- Option A: light. Colors sampled from the new logo ---------- */
:root {
  --charcoal: #0A1424;    /* near-black navy: text, dark bands */
  --muted: #55606F;
  --line: #E2E6EC;
  --panel: #F2F5F9;
  --paper: #FFFFFF;

  --orange: #FA9D0A;      /* Electric: fills with black text */
  --orange-dark: #E08A00;
  --orange-ink: #B4410A;  /* orange text on white */
  --orange-deep: #EA5E08; /* large type only */
  --blue: #1068C2;        /* Technologies: fills with white text, text on white */
  --blue-dark: #0B4F96;
  --blue-bright: #06A5F4; /* accents on dark */

  --radius: 0;            /* square corners */
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Orbitron", "Instrument Sans", system-ui, sans-serif; /* headings: Orbitron Black */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.2; margin: 0 0 16px; letter-spacing: .01em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.875rem); }
h3 { font-size: 1.0625rem; margin-bottom: 6px; }
p { margin: 0 0 16px; }
a { color: var(--blue); text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.text-electric { color: var(--orange-deep); }
.text-tech { color: var(--blue); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--charcoal); color: #fff; padding: 12px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Dotted label: echoes the dot rings in the logo */
.trace {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.trace::before {
  content: ""; flex: none; width: 44px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 8'%3E%3Ccircle cx='4' cy='4' r='3' fill='%23FA9D0A'/%3E%3Ccircle cx='14' cy='4' r='3' fill='%23FA9D0A'/%3E%3Ccircle cx='24' cy='4' r='3' fill='%231068C2'/%3E%3Cpath d='M30 4h14' stroke='%231068C2' stroke-width='2'/%3E%3C/svg%3E") no-repeat;
}
.trace-light { color: #C2CCDA; }
.trace-light::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 8'%3E%3Ccircle cx='4' cy='4' r='3' fill='%23FA9D0A'/%3E%3Ccircle cx='14' cy='4' r='3' fill='%23FA9D0A'/%3E%3Ccircle cx='24' cy='4' r='3' fill='%2306A5F4'/%3E%3Cpath d='M30 4h14' stroke='%2306A5F4' stroke-width='2'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: 44px; padding: 0 18px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--charcoal); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-electric { background: var(--orange); color: var(--charcoal); }
.btn-electric:hover { background: var(--orange-dark); }
.btn-tech { background: var(--blue); color: #fff; }
.btn-tech:hover { background: var(--blue-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 12px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--charcoal); }
.brand img { width: 44px; height: 44px; }
.wordmark { font-family: var(--font-display); font-size: 1.125rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.wordmark span { color: var(--blue); }
.nav-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--charcoal); text-decoration: none; font-weight: 600;
}
.nav-list a:not(.btn):hover { color: var(--blue); }

/* ---------- Photo frames ---------- */
/* Shows a branded panel until a photo exists at the img's src. */
.photo {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 3 / 4;
  background-color: var(--panel);
  background-image:
    var(--photo-icon),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px, 32px 32px, 32px 32px;
  background-position: center, -1px -1px, -1px -1px;
  background-repeat: no-repeat, repeat, repeat;
}
.photo { --photo-icon: url("assets/brand/mark-160.png"); }
.photo-electric { --accent: var(--orange); }
.photo-tech { --accent: var(--blue); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Viewfinder corners */
.photo::before, .photo::after {
  content: ""; position: absolute; z-index: 2;
  width: 20px; height: 20px; pointer-events: none;
}
.photo::before { top: 12px; left: 12px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.photo::after { bottom: 12px; right: 12px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

.photo-tag {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  padding: 10px 16px; color: #fff;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.tag-electric { background: var(--orange); color: var(--charcoal); }
.tag-tech { background: var(--blue); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.15; margin-bottom: 24px; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-contact { color: var(--muted); margin: 0; }
.hero-contact a { color: var(--charcoal); font-weight: 600; }

.hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.hero-photos .photo-tech { margin-top: 48px; }

/* ---------- Division sections ---------- */
.division { padding: 96px 0; border-top: 1px solid var(--line); }
.division-alt { background: var(--panel); }
.division-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.division-grid-flip .division-photo, .division-grid-flip .division-media { order: 2; }
.division-photo { aspect-ratio: 4 / 5; position: sticky; top: 104px; }
.division-media { position: sticky; top: 104px; }

/* ---------- Carousel (Recent builds) ---------- */
.carousel-frame { aspect-ratio: 4 / 5; }
.carousel-track {
  display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; }
.carousel-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 16px;
}
.carousel-title {
  margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal);
}
.carousel-count { margin-left: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.carousel-buttons { display: flex; gap: 8px; }
.carousel-btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; cursor: pointer;
  background: #fff; color: var(--charcoal); border: 1px solid #C3CAD3; border-radius: var(--radius);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.carousel-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.carousel-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: square; }

.division-label {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
}
.division-label::before { content: ""; width: 14px; height: 14px; background: var(--accent); }
.label-electric { --accent: var(--orange); }
.label-electric span { color: var(--orange-ink); }
.label-tech { --accent: var(--blue); }
.label-tech span { color: var(--blue); }
.division-body h2 { max-width: 560px; margin-bottom: 32px; }

.services { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line); }
.division-alt .services { border-color: #D7DCE3; }
.service {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.division-alt .service { border-color: #D7DCE3; }
.service p { color: var(--muted); }
.service p:last-child, .service ul:last-child { margin-bottom: 0; }
.service-sub { font-weight: 600; margin-bottom: 8px; }
.service .service-sub { color: var(--charcoal); }

.service-icon {
  width: 48px; height: 48px; padding: 11px;
  fill: none; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter;
  border: 2px solid currentColor;
}
.icon-electric { color: var(--orange); stroke: var(--orange-ink); }
.icon-tech { color: var(--blue); stroke: var(--blue); }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 24px; margin-bottom: 6px; color: var(--charcoal); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 8px; height: 8px; background: var(--blue);
}

.footnote { font-size: .875rem; color: var(--muted); }

/* ---------- About ---------- */
.about { background: var(--charcoal); color: #E9EDF2; padding: 96px 0; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.about p:not(.trace) { color: #C5CCD5; font-size: 1.0625rem; line-height: 1.65; }

/* ---------- Quote ---------- */
.quote { padding: 96px 0; }
.quote-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.quote-intro p:not(.trace) { color: var(--muted); }

.contact-list { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-list dt {
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.contact-list dd { margin: 4px 0 16px; font-size: 1.125rem; font-weight: 600; }
.contact-list a { color: var(--charcoal); }

.quote-form { background: var(--panel); padding: 32px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: .875rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; color: var(--charcoal);
  background: #fff; border: 1px solid #C3CAD3; border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; border-color: var(--blue); }
textarea { resize: vertical; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 14px 16px; margin-bottom: 20px; font-weight: 600; }
.form-status.is-success { background: #E8F1FB; color: var(--blue-dark); border: 1px solid #A9C8EC; }
.form-status.is-error { background: #FDECEC; color: #8A1C1C; border: 1px solid #F2B5B5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); padding: 56px 0; font-size: .9375rem; color: #AEB9C8; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.brand-footer img { width: 56px; height: 56px; }
.brand-footer .wordmark span { color: var(--blue-bright); }
.footer-inner p { margin: 0; }
.footer-divisions { font-weight: 700; letter-spacing: .04em; }
.footer-divisions .text-electric { color: var(--orange); }
.footer-divisions .text-tech { color: var(--blue-bright); }
.footer-divisions span[aria-hidden] { color: #56637A; margin: 0 6px; }
.site-footer a { color: #fff; }
.copyright { margin-top: 8px !important; color: #7D8AA0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .division-grid, .quote-grid { grid-template-columns: 1fr; gap: 40px; }
  .division-grid-flip .division-photo, .division-grid-flip .division-media { order: 0; }
  .division-photo { position: relative; top: auto; aspect-ratio: 16 / 10; }
  .division-media { position: static; }
  .carousel-frame { aspect-ratio: 1 / 1; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .header-inner { justify-content: center; }
  .nav-list { justify-content: center; }
  .hero { padding: 40px 0 72px; }
  .hero-photos .photo-tech { margin-top: 24px; }
  .division, .about, .quote { padding: 64px 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .quote-form { padding: 20px; }
  .photo-tag { padding: 8px 12px; font-size: .6875rem; }
  .btn-row .btn, .division-body > .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html, .carousel-track { scroll-behavior: auto; }
  * { transition: none !important; }
}
