/* Wire Haus, LLC: wire-haus.com draft (website-v2)
   World inherited from clients/wirehaus/website/: gray ground, navy bands, electric blue.
   Structure follows the Holmes Electric page set, paraphrased. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #01152d;
  --navy-2: #0a2240;
  --navy-3: #12305a;
  --charcoal: #5d5e62;
  --blue: #017bff;
  --blue-ink: #0055b8;          /* blue for text on light and alt grounds, AA on #d9dce0 */
  --blue-fill: #0062d1;         /* filled controls under white text, 5.1:1 */
  --blue-fill-hover: #0052b0;
  --blue-light: #6fb3ff;        /* blue for text on navy */
  --amber: #f2b33d;

  --bg: #e4e6e9;
  --bg-alt: #d9dce0;
  --surface: #f3f4f6;
  --ink: #01152d;
  --ink-soft: #3f4550;
  --line: rgba(1, 21, 45, 0.10);
  --line-strong: rgba(1, 21, 45, 0.22);

  --on-navy: #ffffff;
  --on-navy-soft: #c3ccd7;
  --on-navy-line: rgba(255, 255, 255, 0.14);

  --font-sans: 'Instrument Sans', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --band: clamp(88px, 11vw, 144px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  caret-color: var(--blue);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--blue-fill); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--navy-3) var(--bg-alt); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--navy-3); border: 3px solid var(--bg-alt); border-radius: 8px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.4vw, 6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.12; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
p { color: var(--ink-soft); max-width: 68ch; }
p + p { margin-top: 1em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; }
.navy p, .on-navy p { color: var(--on-navy-soft); }

/* Confirm marks: facts still to verify with Jerry, Wade or Case */
.tbc {
  text-decoration: underline dashed var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  cursor: help;
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 0.95rem/1 var(--font-sans);
  padding: 17px 28px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none;
  transition: transform .35s var(--ease), background-color .25s, box-shadow .35s var(--ease);
}
.btn-primary { background: var(--blue-fill); color: #fff; box-shadow: 0 10px 22px -12px rgba(1, 21, 45, .55); }
.btn-primary:hover { background: var(--blue-fill-hover); transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(1, 21, 45, .6); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link {
  font-weight: 600; color: var(--blue-ink);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px;
  text-decoration-color: rgba(0, 85, 184, .35);
  transition: text-decoration-color .25s;
}
.link:hover { text-decoration-color: currentColor; }
.navy .link, .on-navy .link { color: var(--blue-light); text-decoration-color: rgba(111, 179, 255, .4); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav .has-menu > button {
  font: 500 0.95rem/1 var(--font-sans); color: var(--ink);
  padding: 12px 14px; border-radius: 8px; text-decoration: none;
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav .has-menu > button:hover { background: var(--bg); }
.nav a[aria-current="page"], .nav .has-menu.current > button { color: var(--blue-ink); }
.nav .has-menu { position: relative; }
.nav .menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 40px -20px rgba(1, 21, 45, .35);
  padding: 8px; display: none;
}
.nav .has-menu:hover .menu, .nav .has-menu:focus-within .menu, .nav .has-menu.open .menu { display: block; }
.nav .menu a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; font-size: .95rem; }
.nav .menu a:hover { background: var(--bg); }
.nav .chev { width: 10px; height: 10px; }
.header-cta { padding: 13px 22px; font-size: .9rem; }
.nav .mobile-only { display: none; }
.nav > a.btn-primary, .nav > a.btn-primary:hover { background: var(--blue-fill); color: #fff; padding: 16px 24px; border-radius: 999px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .3s var(--ease), opacity .2s; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 900px);
  display: grid; align-items: end;
  color: #fff; overflow: hidden; background: var(--navy);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: drift 24s var(--ease) both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(1, 21, 45, .94) 0%, rgba(1, 21, 45, .78) 42%, rgba(1, 21, 45, .35) 100%),
    linear-gradient(0deg, rgba(1, 21, 45, .85) 0%, rgba(1, 21, 45, 0) 45%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: 150px; }
.hero h1 { max-width: 11ch; }
.tag {
  display: inline-block; margin-top: 26px;
  background: var(--blue-fill); color: #fff;
  font: 600 1rem/1 var(--font-sans); letter-spacing: .01em;
  padding: 12px 18px; border-radius: 4px;
}
.tag .tbc { text-decoration-color: var(--amber); }
.hero .lead { color: #dfe6ef; margin-top: 26px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; margin-top: 38px; }
.hero-actions .link { color: #fff; text-decoration-color: rgba(255,255,255,.45); }

.request-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: var(--navy-2); border-top: 1px solid var(--on-navy-line);
}
.request-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 34px; padding-top: 18px; padding-bottom: 18px; }
.request-bar strong { font-weight: 600; color: #fff; }
.request-bar a { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(111, 179, 255, .6); }
.request-bar a:hover { text-decoration-color: #fff; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; color: #fff; background: var(--navy); overflow: hidden;
  min-height: clamp(340px, 46vh, 460px); display: grid; align-items: end;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-hero.mono img { filter: grayscale(1) contrast(1.05); opacity: .4; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1,21,45,.92), rgba(1,21,45,.35)); }
.page-hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 110px; padding-bottom: 64px; }
.page-hero h1 { font-size: clamp(2.8rem, 6.2vw, 5.2rem); max-width: 16ch; }
.page-hero .lead { color: #dfe6ef; margin-top: 18px; max-width: 54ch; }

/* ---------- Bands ---------- */
.band { padding: var(--band) 0; }
.grid-bg {
  background-color: var(--bg);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
}
.alt { background: var(--bg-alt); }
.navy { background: var(--navy); color: #fff; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 { margin-bottom: 26px; }
.split .actions { margin-top: 30px; }
.frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.tall { aspect-ratio: 4 / 5; }
.frame.wide { aspect-ratio: 3 / 2; }
.frame.map { background: var(--surface); }
.frame.map img { height: auto; object-fit: contain; }
.frame.photo img { height: auto; display: block; }
.frame.mono img { filter: grayscale(1) sepia(.12) contrast(1.06); }
.frame figcaption, .caption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  font-size: .82rem; color: #fff; background: rgba(1, 21, 45, .78); padding: 8px 12px; border-radius: 6px;
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-bottom: 18px; }

/* ---------- Home: markets ---------- */
.markets { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 250px; gap: 14px; }
.market { position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; background: var(--navy-2); }
.market img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.market::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1,21,45,.9) 0%, rgba(1,21,45,.15) 60%); }
.market:hover img { transform: scale(1.05); }
.market span { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; }
.market b { display: block; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.market small { display: block; margin-top: 4px; font-size: .92rem; color: var(--on-navy-soft); }
.market:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.market:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.market:nth-child(3), .market:nth-child(4), .market:nth-child(5) { grid-column: span 2; }
.markets-foot { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }

/* ---------- Home: featured work (pending state) ---------- */
.pending {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px); background: rgba(243, 244, 246, .6);
}
.pending h3 { margin-bottom: 12px; }
.navy .pending { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.work-feature { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.work-feature .frame { min-height: 420px; }
.work-feature .frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1,21,45,.82), rgba(1,21,45,.05) 60%); }
.work-feature .frame .over { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 26px; color: #fff; }
.work-feature .frame .over h3 { margin-bottom: 6px; }
.work-feature .frame .over p { color: var(--on-navy-soft); }

/* ---------- Motto band ---------- */
.motto { text-align: left; }
.motto blockquote {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1.02; letter-spacing: -0.015em; color: #fff; max-width: 15ch;
}
.motto p { margin-top: 28px; max-width: 58ch; }

/* ---------- Values ---------- */
.values { border-top: 1px solid var(--line-strong); }
.value { display: grid; grid-template-columns: minmax(220px, 1fr) 1.4fr; gap: clamp(20px, 5vw, 80px); padding: clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--line-strong); align-items: baseline; }
.value h3 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -0.035em; line-height: 1; }
.value h3 .serif { color: var(--blue-ink); }
.value p { font-size: 1.12rem; }
.home-values .value { padding: 26px 0; }
.home-values .value h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }

/* ---------- Mission ---------- */
.statements { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.statement { padding-top: 26px; border-top: 2px solid var(--navy); }
.statement h2 { font-size: clamp(1.1rem, 1.4vw, 1.25rem); letter-spacing: 0; font-weight: 600; margin-bottom: 16px; color: var(--blue-ink); }
.statement p { font-size: clamp(1.3rem, 2.1vw, 1.7rem); line-height: 1.4; color: var(--ink); max-width: none; }
.statement.has-photo { padding-top: 0; border-top: 0; }
.statement.has-photo .frame { aspect-ratio: 3 / 2; margin: 0 0 18px; }
.statement.has-photo h2 { padding-top: 18px; border-top: 2px solid var(--navy); }
.values-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.values-head .section-head { margin-bottom: 0; }
.values-head .frame { aspect-ratio: 3 / 2; }
.draft-note { margin-top: 18px; font-size: .9rem; color: var(--ink-soft); }
.navy .draft-note { color: var(--on-navy-soft); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 40px); border-top: 1px solid var(--line-strong); }
.person { padding: 30px 0; border-bottom: 1px solid var(--line-strong); }
.person h3 { margin-bottom: 4px; }
.person .role { font-weight: 600; color: var(--blue-ink); margin-bottom: 12px; display: block; }
.person .frame { margin-bottom: 22px; }
/* Jerry leads the team: full row, photo beside the text; the crew sits three across below */
.person-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.person-lead .frame { margin-bottom: 0; }
.person .frame.headshot { width: 140px; aspect-ratio: 4 / 5; }

/* ---------- Customer names (work) ---------- */
.client-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 40px); border-top: 1px solid var(--line-strong); }
.client-list li { padding: 18px 0; border-bottom: 1px solid var(--line-strong); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .client-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .client-list { grid-template-columns: 1fr; } }

/* ---------- Timeline (history) and process: the current ---------- */
.timeline-band { overflow: hidden; }
.timeline { position: relative; margin-top: 10px; }
/* Every milestone shows at once: a grid that wraps, each card carrying its own length of wire
   (it runs on across the gap to the next card; the last card in a row stops at its own edge). */
.timeline-track {
  display: grid; grid-template-columns: repeat(4, 1fr);
  column-gap: 22px; row-gap: 70px; padding: 0 0 48px;
}
.milestone { position: relative; }
.milestone::before, .milestone::after {
  content: ''; position: absolute; left: 0; right: -22px; bottom: -23px; height: 2px; pointer-events: none;
}
.milestone::before { background: var(--on-navy-line); }
.milestone::after {
  background: linear-gradient(90deg, rgba(1,123,255,.25), var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease);
}
.milestone.lit::after { transform: scaleX(1); }
.milestone:nth-child(4n)::before, .milestone:nth-child(4n)::after,
.milestone:last-child::before, .milestone:last-child::after { right: 0; }
.milestone .card { height: 100%; background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 28px 26px 30px; min-height: 250px; box-shadow: 0 22px 40px -28px rgba(0,0,0,.6); }
.milestone .year { font-size: 2.4rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin-bottom: 14px; }
.milestone .card p { font-size: 1rem; color: var(--ink-soft); }
.milestone .node {
  position: absolute; z-index: 1; left: 26px; bottom: -29px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--on-navy-soft); transition: background .4s, border-color .4s, box-shadow .6s var(--ease);
}
.milestone.lit .node { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 7px rgba(1, 123, 255, .22); }
.wire { position: absolute; left: 0; right: 0; bottom: 47px; height: 2px; background: var(--on-navy-line); pointer-events: none; }
.wire i { position: absolute; left: 0; top: 0; height: 100%; width: var(--lit, 0%); background: linear-gradient(90deg, rgba(1,123,255,.2), var(--blue)); transition: width 1.1s var(--ease); }
.wire i::after { content: ''; position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #bfe0ff; box-shadow: 0 0 14px 4px rgba(1, 123, 255, .8); }
.timeline-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }

.process { position: relative; padding-left: clamp(46px, 7vw, 92px); }
.process .rail { position: absolute; left: clamp(14px, 2.4vw, 30px); top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.process .rail i { position: absolute; left: 0; top: 0; width: 100%; height: var(--lit, 0%); background: linear-gradient(180deg, rgba(1,123,255,.25), var(--blue)); transition: height .2s linear; }
.process .rail i::after { content: ''; position: absolute; left: -4px; bottom: -5px; width: 10px; height: 10px; border-radius: 50%; background: #bfe0ff; box-shadow: 0 0 14px 4px rgba(1, 123, 255, .7); }
.step { position: relative; padding: 0 0 clamp(44px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 12px clamp(24px, 5vw, 72px); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ''; position: absolute; left: calc(-1 * clamp(46px, 7vw, 92px) + clamp(14px, 2.4vw, 30px) - 7px); top: 6px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); transition: background .4s, border-color .4s, box-shadow .6s var(--ease);
}
.step.lit::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 7px rgba(1, 123, 255, .16); }
.step .n { font-size: .95rem; font-weight: 600; color: var(--blue-ink); display: block; margin-bottom: 6px; }
.step h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.step .gc { font-size: .98rem; background: var(--surface); border-radius: 10px; padding: 16px 18px; align-self: start; }
.step .gc b { color: var(--ink); }

/* ---------- Services ---------- */
.services { display: grid; gap: clamp(60px, 8vw, 110px); }
.service .frame { aspect-ratio: 5 / 4; }
.service ul { margin-top: 22px; display: grid; gap: 10px; }
.service li { padding-left: 22px; position: relative; color: var(--ink-soft); }
.service li::before { content: ''; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--blue); }

/* ---------- Safety ---------- */
.commitments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px clamp(20px, 3vw, 44px); }
.commitment { padding-top: 28px; border-top: 2px solid #fff; }
.commitment h3 { color: #fff; margin-bottom: 14px; }
.record { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.record div { background: var(--surface); border-radius: 10px; padding: 22px; }
.record b { display: block; font-size: 1rem; }
.record span { display: block; margin-top: 8px; font-size: 1.6rem; font-weight: 600; color: var(--ink-soft); letter-spacing: -0.02em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact-grid h2 { margin-bottom: 18px; }
/* Contact: one centered column, heading over the form, details in a row beneath */
.contact-center { max-width: 880px; margin-inline: auto; }
.contact-head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.contact-head h2 { margin-bottom: 16px; }
.contact-head .lead { max-width: 40ch; margin-inline: auto; }
.details-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(32px, 4vw, 48px); text-align: center; }
.details-row dt { margin-top: 0; }
.details dt { font-weight: 600; margin-top: 22px; }
.details dd { color: var(--ink-soft); }
.form { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 44px); box-shadow: 0 30px 60px -40px rgba(1, 21, 45, .45); }
.form fieldset { border: 0; margin-bottom: 22px; }
.form legend { font-weight: 600; margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer; }
.choices input { accent-color: var(--blue); }
.choices label:has(input:checked) { border-color: var(--blue); background: rgba(1, 123, 255, .08); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6b717c; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(1, 123, 255, .15); }
.field input:user-invalid { border-color: #c2332b; }
.form .submit-row { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: .95rem; color: var(--ink-soft); }
.form-status.err { color: #b02a22; }

/* ---------- CTA band ---------- */
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; }
.cta-band h2 { max-width: 18ch; }
.cta-band .split { flex: 1 1 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-soft); padding: 80px 0 120px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 50px; border-bottom: 1px solid var(--on-navy-line); }
.footer-top img { height: 34px; width: auto; margin-bottom: 18px; }
.footer-top .tagline { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; color: #fff; line-height: 1.25; max-width: 18ch; }
.footer-top h4 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.footer-top li + li { margin-top: 8px; }
.footer-top a { color: var(--on-navy-soft); text-decoration: none; }
.footer-top a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .timeline-track { grid-template-columns: repeat(2, 1fr); }
  .milestone:nth-child(2n)::before, .milestone:nth-child(2n)::after,
  .milestone:last-child::before, .milestone:last-child::after { right: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .markets { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
  .market:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .market:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; }
  .hero .wrap { padding-top: 120px; padding-bottom: 64px; }
  .request-bar { position: relative; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 76px; left: 0; right: 0; background: var(--surface);
    padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(1,21,45,.35);
  }
  .site-header.open .nav .menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .site-header.open .nav .mobile-only { display: inline-flex; justify-content: center; margin-top: 12px; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .split, .split.flip, .contact-grid, .statements, .work-feature, .values-head { grid-template-columns: 1fr; }
  .details-row { grid-template-columns: repeat(2, 1fr); }
  .split.flip > :first-child { order: 0; }
  .team, .commitments, .person-lead { grid-template-columns: 1fr; }
  .value { grid-template-columns: 1fr; gap: 10px; }
  .step { grid-template-columns: 1fr; }
  .commitments { row-gap: 34px; }
}
@media (max-width: 640px) {
  .markets { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .market:nth-child(1) { grid-column: span 1; }
  .fields { grid-template-columns: 1fr; }
  .record { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .timeline-track { grid-template-columns: 1fr; row-gap: 60px; }
  .milestone::before, .milestone::after, .milestone:nth-child(n)::before, .milestone:nth-child(n)::after { right: 0; }
  .milestone .card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Lists of claims (about, work) ---------- */
.service-list { display: grid; gap: 14px; margin-top: 24px; }
.service-list b { color: var(--ink); font-weight: 600; }
.pending h2 { margin-bottom: 16px; }
.step .how { margin-top: 8px; font-size: 1.02rem; color: var(--ink-soft); }

/* ---------- Sectors: one tall frame, the list set as type (replaces the photo mosaic) ---------- */
.sectors { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: stretch; }
.sector-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-2); min-height: 520px; }
.sector-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), transform 1.4s var(--ease); transform: scale(1.04); }
.sector-media img.on { opacity: 1; transform: scale(1); }
.sector-list { border-top: 1px solid var(--on-navy-line); align-self: center; }
.sector-list li { border-bottom: 1px solid var(--on-navy-line); }
.sector-list a { position: relative; display: block; padding: 24px 0 24px 0; text-decoration: none; color: #fff; }
.sector-list b { display: block; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; color: var(--on-navy-soft); transition: color .3s; }
.sector-list span { display: block; margin-top: 6px; color: var(--on-navy-soft); font-size: 1rem; }
.sector-list a::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, rgba(1,123,255,.2), var(--blue)); transition: width .8s var(--ease); }
.sector-list a.on b, .sector-list a:hover b, .sector-list a:focus-visible b { color: #fff; }
.sector-list a.on::after { width: 100%; }

/* ---------- Motto band: the statement owns the width, the current runs under it ---------- */
.motto blockquote { font-family: var(--font-sans); font-style: normal; font-weight: 600; letter-spacing: -0.035em; font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: 1; max-width: none; }
.motto blockquote .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.motto .wire.run { position: relative; left: auto; right: auto; bottom: auto; margin-top: 40px; height: 2px; }
.motto .wire.run i { width: 0; transition: width 1.8s var(--ease); }
.motto .wire.run.lit i { width: 100%; }

/* ---------- Process: three tiers ---------- */
.step h3 .num { color: var(--blue-ink); margin-right: .45em; }
.step .gc { background: none; padding: 0; margin-top: 12px; border-radius: 0; }

/* ---------- Footer tagline: sans, the serif stays on the two signature lines ---------- */
.footer-top .tagline { font-family: var(--font-sans); font-style: normal; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }

/* ---------- Mobile menu covers the page ---------- */
@media (max-width: 900px) {
  .site-header.open .nav { position: fixed; top: 76px; bottom: 0; overflow-y: auto; box-shadow: none; }
  body.menu-open { overflow: hidden; }
  .sectors { grid-template-columns: 1fr; }
  .sector-media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* Contact form honeypot: off screen for people, filled by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Process: rotating banner of the software behind the process */
.tools-band .section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.logo-marquee {
  position: relative; overflow: hidden; padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track { display: flex; width: max-content; animation: logo-run 36s linear infinite; }
.logo-marquee::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .05); pointer-events: none; }
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
.logo-set { display: flex; align-items: center; gap: clamp(48px, 6vw, 88px); padding-right: clamp(48px, 6vw, 88px); margin: 0; list-style: none; }
.logo-set li { flex: none; display: flex; align-items: center; }
.logo-set img { height: 34px; width: auto; }
.logo-set .logo-demeter img { height: 54px; }
@keyframes logo-run { to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .logo-set img { height: 26px; }
  .logo-set .logo-demeter img { height: 41px; }
  .logo-track { animation-duration: 26s; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-track { animation: none; width: auto; justify-content: center; }
  .logo-set { flex-wrap: wrap; justify-content: center; row-gap: 32px; padding: 0 20px; }
  .logo-set[aria-hidden="true"] { display: none; }
}

/* About: TDLR license card */
.tdlr-card { background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 22px; }
.tdlr-card img { width: 100%; max-width: 440px; height: auto; display: block; }
.tdlr-card p { margin: 0; color: #3b4651; font-size: .95rem; line-height: 1.55; }
.license-record { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid #d5dce4; }
.tdlr-card .license-record img { width: 100%; max-width: none; height: auto; display: block; }
.license-portrait { display: flex; align-items: center; gap: 20px; margin: 32px 0 0; }
.license-portrait img { width: 140px; height: auto; display: block; border-radius: var(--radius); border: 3px solid rgba(255,255,255,.18); }
.license-portrait figcaption { color: #fff; font-weight: 600; font-size: 1.05rem; display: flex; flex-direction: column; gap: 4px; }
.license-portrait figcaption span { font-weight: 400; font-size: .92rem; opacity: .75; }

/* v3: "Where we work" is text beside the fleet photo (map removed with Wade's 2026-10-31 redlines) */

/* Wide photos in a 5:4 service frame: keep the right side (the electrician) in view */
.frame img.pos-right { object-position: 100% 50%; }
/* Wide photos in the tall sector frame: keep the left side (the electrician at the gear) in view */
.sector-media img.pos-left { object-position: 12% 50%; }

/* ---------- Motion (ported from the October one-page draft) ----------
   Home only: .hero, .request-bar, .home-cta. Home and Work: the .markets photo grid.
   Every page: [data-reveal] scroll reveals and the .page-hero entrance. */

/* Hero: current running along circuit traces from the right edge */
.hero-circuit { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero-circuit path { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-circuit .trace { stroke: rgba(111, 179, 255, .24); }
.hero-circuit .current { stroke: var(--blue-light); stroke-width: 2; stroke-dasharray: 90 1400; animation: current 6s linear infinite; filter: drop-shadow(0 0 6px var(--blue)); }
.hero-circuit .current.c2 { animation-duration: 7.5s; animation-delay: -2s; }
.hero-circuit .current.c3 { animation-duration: 9s; animation-delay: -4s; }
.hero-circuit circle { fill: var(--blue-light); filter: drop-shadow(0 0 6px var(--blue)); animation: node-glow 2.4s var(--ease) infinite; }
@keyframes current { from { stroke-dashoffset: 1490; } to { stroke-dashoffset: 0; } }
@keyframes node-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Hero: headline rises in line by line, then the tag, lead and buttons follow */
.hero .reveal-lines > span { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero .reveal-lines > span > i { display: block; font-style: normal; animation: line-up 1.05s var(--ease) both .15s; }
.hero .reveal-lines > span > i.serif { font-style: italic; }
.hero .reveal-lines > span:nth-child(2) > i { animation-delay: .3s; }
@keyframes line-up { from { transform: translateY(110%); } to { transform: none; } }
.hero .rise { animation: rise .9s var(--ease) both .55s; }
.hero .rise.r2 { animation-delay: .7s; }
.hero .rise.r3 { animation-delay: .85s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Hero: scroll cue above the request bar */
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 92px; transform: translateX(-50%); padding: 8px; }
.scroll-cue .mouse { display: block; width: 22px; height: 36px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content: ''; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; background: var(--blue-light); border-radius: 2px; transform: translateX(-50%); animation: scroll-dot 1.7s var(--ease) infinite; }
.scroll-cue:hover .mouse { border-color: #fff; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translate(-50%, 0); } 35% { opacity: 1; } 75% { opacity: 0; transform: translate(-50%, 13px); } 100% { opacity: 0; } }

/* Request bar: a live dot before "Working with us:" */
.request-bar strong { display: inline-flex; align-items: center; gap: 10px; }
.request-bar strong::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(1, 123, 255, .55); } 70% { box-shadow: 0 0 0 10px rgba(1, 123, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(1, 123, 255, 0); } }

/* Light sweeping across the Home primary buttons */
.hero .btn-primary, .home-cta .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.hero .btn-primary::after, .home-cta .btn-primary::after {
  content: ''; position: absolute; z-index: -1; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-20deg); animation: sheen 4.5s var(--ease) infinite; pointer-events: none;
}
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* Sectors as a photo grid: every sector photo shows at once, zooms on hover, lights its edge */
.markets .market { outline: 1.5px solid transparent; outline-offset: -1.5px; transition: outline-color .45s var(--ease); }
.markets .market:hover, .markets .market:focus-visible { outline-color: var(--blue); }
.markets .market img.pos-left { object-position: 12% 50%; }
.markets .market b { line-height: 1.15; }
.markets .market small { line-height: 1.4; }
.markets .market b { transition: color .3s; }
.markets .market:hover b { color: var(--blue-light); }

/* Scroll reveals: hidden only when scripting runs, so a page without script shows everything */
@media (scripting: enabled) {
  [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  [data-reveal="zoom"] { transform: scale(.95); }
  [data-reveal].in { opacity: 1; transform: none; }
  [data-reveal-delay="1"] { transition-delay: .12s; }
  [data-reveal-delay="2"] { transition-delay: .24s; }
}
.markets .market[data-reveal].in { transition: opacity .9s var(--ease), transform .9s var(--ease), outline-color .45s var(--ease); }

/* Inner page heroes: title and lead rise in on load */
.page-hero h1 { animation: rise .9s var(--ease) both .1s; }
.page-hero .lead { animation: rise .9s var(--ease) both .25s; }

@media (max-width: 900px) { .scroll-cue { display: none; } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-circuit .current { display: none; }
}
