/* Softech Engineering: dark, high-contrast direction with Softech orange accents.
   Fonts: Barlow and Barlow Condensed (SIL Open Font License 1.1, see fonts/LICENSE.txt). */
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #090b0a;        /* page */
  --bg-2: #1b1f1d;      /* alternate band, clearly lighter than the page */
  --panel: #272c29;     /* sequence strip and form, a step above the band */
  --line: #353c38;      /* hairlines */
  --field-line: #7a837d;/* input borders, 3:1 or better against the panel */
  --text: #f3f5f2;
  --soft: #c6ccc7;      /* body copy on dark */
  --muted: #9aa39d;     /* labels */
  --orange: #f7941d;
  --orange-hi: #ffad4d;
  --width: 1216px;
  --g: clamp(20px, 5vw, 64px);
  --body: "Barlow", Arial, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--soft); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--text); margin: 0; }
p { margin: 0; }
.page-width { width: min(100%, var(--width)); margin-inline: auto; padding-inline: var(--g); }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; z-index: 20; left: 10px; top: 10px; width: auto; height: auto; margin: 0; padding: 10px 14px; background: var(--orange); color: #111; clip: auto; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: #111; }

/* Shared type */
.eyebrow, .section-label, .sequence-label, .brand-caption {
  font: 600 13px/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.section-label { margin: 0 0 18px; }
.section-label span { margin-right: 10px; color: var(--orange); }
h2 { font: 700 clamp(40px, 5.2vw, 68px)/.95 var(--cond); letter-spacing: -.005em; text-transform: uppercase; max-width: 14ch; }
.section { padding-block: clamp(64px, 8vw, 112px); }

/* Buttons and links */
.action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  background: var(--orange); border: 0; color: #111; text-decoration: none; cursor: pointer;
  font: 600 15px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; transition: background-color .15s;
}
.action:hover { background: var(--orange-hi); }
.action[disabled] { opacity: .6; cursor: progress; }
.phone-link { color: var(--text); font: 600 18px/1 var(--body); text-underline-offset: 6px; text-decoration-color: var(--orange); }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 10; background: rgba(9, 11, 10, .96); border-bottom: 1px solid var(--line); }
.masthead-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 150px; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav a { color: var(--soft); text-decoration: none; font: 600 15px/1 var(--body); letter-spacing: .04em; }
.nav a:hover { color: var(--orange); }
.call-button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; background: var(--orange); color: #111 !important; border-radius: 2px; font: 700 16px/1 var(--body); letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: background-color .15s; }
.call-button:hover { background: var(--orange-hi); color: #111 !important; }
.call-button svg { flex: none; }
.masthead-call, .call-word { display: none; }
.menu-toggle { display: none; }

/* Hero */
.hero { background: var(--bg); padding-block: clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--soft); }
.eyebrow i { width: 36px; height: 3px; background: var(--orange); }
.hero h1 { max-width: 10ch; font: 700 clamp(56px, 7.4vw, 108px)/.88 var(--cond); letter-spacing: -.02em; text-transform: uppercase; }
.hero-subtitle { margin-top: 18px; color: var(--orange); font: 700 clamp(24px, 2.6vw, 34px)/1.1 var(--cond); letter-spacing: .01em; text-transform: uppercase; }
.hero-description { max-width: 36ch; margin-top: 18px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.hero-figure { margin: 0; min-width: 0; }
.hero-figure img { width: 100%; aspect-ratio: 1.3; object-fit: cover; filter: saturate(.85) contrast(1.06); border-top: 3px solid var(--orange); }
.hero-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* Who we are */
.company { background: var(--bg-2); border-top: 1px solid var(--line); }
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.company-copy p + p { margin-top: 16px; }
.company-copy p { max-width: 38em; font-size: 18px; }
.company-copy .tagline { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--orange); font: 700 20px/1.2 var(--cond); letter-spacing: .06em; text-transform: uppercase; }

/* Project sequence */
.sequence { background: var(--panel); border-block: 1px solid var(--line); }
.sequence-inner { display: grid; grid-template-columns: minmax(140px, .3fr) 1fr; gap: 32px; align-items: center; padding-block: 28px; }
.sequence-label { color: var(--orange); }
.sequence ol { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sequence ol::before { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; height: 1px; background: var(--field-line); }
.sequence li { position: relative; display: flex; flex-direction: column; gap: 10px; color: var(--text); font: 700 20px/1.1 var(--cond); letter-spacing: .03em; text-transform: uppercase; }
.sequence li span { display: grid; place-items: center; width: 29px; height: 29px; border: 1.5px solid var(--orange); border-radius: 50%; background: var(--panel); color: var(--orange); font: 600 12px/1 var(--body); letter-spacing: 0; }

/* What we do */
.capabilities { background: var(--bg); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: end; margin-bottom: 44px; }
.section-intro { max-width: 36ch; font-size: 18px; }
.service-list { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.service-no { color: var(--orange); font: 600 14px/1 var(--body); letter-spacing: .1em; }
.service h3 { font: 700 26px/1.05 var(--cond); letter-spacing: .02em; text-transform: uppercase; }
.service p { max-width: 44ch; }

/* Photos */
.field-record { background: var(--bg-2); padding-block: clamp(40px, 5vw, 64px); border-block: 1px solid var(--line); }
.record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.record-grid figure { margin: 0; }
.record-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.9) contrast(1.05); border-top: 3px solid var(--orange); }
.record-grid .panel-photo img { object-position: 50% 10%; }
.record-grid figcaption { margin-top: 10px; color: var(--soft); font-size: 14px; letter-spacing: .04em; }

/* Industries and platforms */
.systems { background: var(--bg); }

.section-head + .brand-row { margin-top: 0; }

/* Industries we serve: section 04, a connected four-column index */
.industries { background: var(--bg); border-top: 1px solid var(--line); }
.industry-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.industry-index li { padding: 26px 24px 30px; border-left: 1px solid var(--line); color: var(--text); font: 700 clamp(26px, 2.5vw, 34px)/1 var(--cond); letter-spacing: .02em; text-transform: uppercase; }
.industry-index li:first-child { padding-left: 0; border-left: 0; }
.industry-index li span { display: block; margin-bottom: 18px; color: var(--orange); font: 600 14px/1 var(--body); letter-spacing: .12em; }

/* Technologies we work with: four tap-to-open groups under What we do */
.tech { margin-top: 56px; }
.tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-bottom: 1px solid var(--line); }
.tech-group { border-top: 1px solid var(--line); }
.tech-group summary { display: flex; align-items: center; gap: 14px; padding: 20px 0; cursor: pointer; list-style: none; color: var(--text); font: 700 24px/1.1 var(--cond); letter-spacing: .03em; text-transform: uppercase; }
.tech-group summary::-webkit-details-marker { display: none; }
.tech-group summary small { color: var(--muted); font: 600 13px/1 var(--body); letter-spacing: .1em; }
/* Plus/minus drawn as two centered strokes in a fixed 32px square (no font glyph, so it can't sit off-center) */
.tech-group summary::after {
  content: ""; flex: none; margin-left: auto; box-sizing: border-box; width: 32px; height: 32px; border: 2px solid var(--orange);
  background: linear-gradient(var(--orange), var(--orange)) center / 14px 2px no-repeat, linear-gradient(var(--orange), var(--orange)) center / 2px 14px no-repeat;
}
.tech-group[open] summary::after { background: linear-gradient(#111, #111) center / 14px 2px no-repeat, var(--orange); }
.tech-group summary:hover { color: var(--orange); }
.tech-group ul { columns: 2; column-gap: 24px; margin: 0; padding: 0 0 22px; list-style: none; }
.tech-group li { break-inside: avoid; padding: 6px 0; color: var(--soft); font-size: 16px; line-height: 1.4; }
.tech-group li::before { content: "/"; margin-right: 10px; color: var(--orange); }
.project-strip { margin-top: 56px; padding: clamp(20px, 3vw, 36px); background: var(--bg-2); border-top: 3px solid var(--orange); }
.project-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-bottom: 28px; }
.project-head .client-badge { margin-top: 0; }
.project-strip .record-grid img { border-top: 0; }
.record-grid .tiers-photo img { object-position: 50% 40%; }
.record-grid .hvac-photo img { object-position: 50% 55%; }
.project-copy .section-label span { margin-right: 12px; }
.project-copy h3 { font: 700 clamp(30px, 3vw, 40px)/1 var(--cond); letter-spacing: .01em; text-transform: uppercase; }
.industry-note { margin-top: 20px; padding-left: 14px; border-left: 3px solid var(--orange); color: var(--text); }
.client-badge { display: inline-flex; align-items: center; gap: 16px; margin-top: 22px; padding: 10px 20px 10px 10px; background: #1c2526; border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.client-badge:hover { border-color: var(--orange); }
.client-badge img { width: 84px; height: auto; }
.client-badge span { display: grid; gap: 2px; color: var(--text); font: 700 22px/1.1 var(--cond); letter-spacing: .03em; text-transform: uppercase; }
.client-badge small { color: var(--muted); font: 600 12px/1.3 var(--body); letter-spacing: .14em; }
.brand-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 24px 28px; align-items: center; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.brand-caption { grid-column: 1 / -1; }
.brand-row img { width: auto; max-width: 100%; max-height: 30px; margin: auto; filter: grayscale(1) brightness(0) invert(1); opacity: .8; }
.brand-row img.logo-boxed { filter: grayscale(1) invert(1) contrast(1.2); mix-blend-mode: screen; opacity: .85; } /* logo with a built-in white box */

/* Contact */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact h2 { max-width: 12ch; }
.contact-intro { margin: 18px 0 32px; font-size: 18px; }
.contact-copy dl { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 0; }
.contact-copy dt { margin-bottom: 4px; color: var(--muted); font: 600 13px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.contact-copy dd { margin: 0; color: var(--text); font-size: 18px; line-height: 1.45; }
.contact-copy dd a { text-underline-offset: 4px; text-decoration-color: var(--orange); }
.contact form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); background: var(--panel); border-top: 3px solid var(--orange); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 6px; color: var(--text); font: 600 15px/1.2 var(--body); }
.field input, .field textarea { width: 100%; border: 1px solid var(--field-line); border-radius: 0; background: var(--bg); color: var(--text); padding: 12px; font: 400 17px/1.4 var(--body); }
.field input { height: 48px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { color: var(--text); font-size: 15px; }
.form-status.ok { color: var(--orange-hi); }
.form-status.err { color: #ff9f8f; }
.privacy { color: var(--muted); font-size: 14px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

/* Footer */
.footer { background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 24px; font-size: 14px; }
.footer img { width: 120px; }

/* Tablet */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 12ch; }
  .hero-figure img { aspect-ratio: 1.6; }
  .company-grid, .section-head, .contact-grid { grid-template-columns: 1fr; }
  .company-grid { gap: 24px; }
  .section-head { gap: 18px; margin-bottom: 32px; }
  .service { grid-template-columns: 40px minmax(0, 1fr); }
  .service p { grid-column: 2; }
  .sequence-inner { grid-template-columns: 1fr; gap: 18px; }
  .brand-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .industry-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-index li:nth-child(3) { padding-left: 0; border-left: 0; }
  .industry-index li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .project-head { grid-template-columns: 1fr; align-items: start; }
}
/* Phone */
@media (max-width: 680px) {
  html { scroll-padding-top: 70px; }
  body { font-size: 16px; }
  .masthead-inner { height: 66px; }
  .brand img { width: 128px; }
  .menu-toggle { display: flex; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--text); }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--g) 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .masthead-call { display: inline-flex; margin-left: auto; margin-right: 8px; padding: 10px 12px; font-size: 15px; }
  .nav .nav-call { justify-content: center; margin-top: 14px; padding: 14px 16px; border-bottom: 0; }
  .eyebrow { flex-wrap: wrap; font-size: 12px; letter-spacing: .14em; }
  .hero h1 { font-size: clamp(50px, 15vw, 72px); }
  .hero-subtitle { font-size: 24px; }
  .hero-description, .company-copy p, .section-intro, .contact-intro { font-size: 17px; }
  .hero-figure img { aspect-ratio: 1.35; }
  h2 { font-size: clamp(38px, 11vw, 52px); }
  .sequence ol { gap: 6px; }
  .sequence ol::before { left: 12px; right: 12px; top: 12px; }
  .sequence li { font-size: 15px; }
  .sequence li span { width: 25px; height: 25px; font-size: 11px; }
  .service { grid-template-columns: 34px minmax(0, 1fr); padding: 20px 0; }
  .service h3 { font-size: 23px; }
  .record-grid { grid-template-columns: 1fr; gap: 24px; }
  .record-grid img { aspect-ratio: 4 / 3; }
  .record-grid .panel-photo img { object-position: 50% 8%; }
  .tech-grid { grid-template-columns: 1fr; }
  .tech-group summary { font-size: 21px; padding: 18px 0; }
  .brand-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .brand-caption { grid-column: 1 / -1; }
  .contact-copy dl { grid-template-columns: 1fr; gap: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 520px) {
  .tech-group ul { columns: 1; }
  .industry-index { grid-template-columns: 1fr; }
  .industry-index li, .industry-index li:nth-child(3) { display: flex; align-items: baseline; gap: 18px; padding: 20px 0; border-left: 0; font-size: 28px; }
  .industry-index li + li { border-top: 1px solid var(--line); }
  .industry-index li span { margin: 0; flex: none; width: 28px; }
}
@media (max-width: 380px) {
  .masthead-call .call-num { display: none; }
  .masthead-call .call-word { display: inline; }
}
@media (max-width: 360px) {
  .sequence li { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

