/* TL Mechanical Inc, LLC — tlmechanical.net */

:root {
  --bg:        #0a0e17;
  --bg-2:      #0e1420;
  --panel:     #121a28;
  --line:      #1e2a3d;
  --line-2:    #2a3a52;
  --ink:       #f1f5f9;
  --ink-2:     #aebacb;
  --muted:     #7a8ba3;
  --accent:    #f97316;
  --accent-in: #16202e;
  --todo-bg:   #3a2a07;
  --todo-ink:  #fbbf24;
  --todo-line: #b45309;
  --maxw:      1180px;
  --display:   "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body:      Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--accent); color: var(--accent-in); padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }

h1 { margin: 0 0 20px; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; }
h2 { margin: 0 0 14px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; }
h3 { margin: 0 0 10px; font-size: 20px; }

.kicker {
  margin: 0 0 10px; font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.section-lede { margin: 0 0 36px; color: var(--muted); max-width: 54ch; }
.muted { color: var(--muted); font-size: 14.5px; }
code { font-size: .9em; background: var(--panel); padding: 2px 6px; border-radius: 4px; color: var(--ink-2); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 14, 23, .86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; line-height: 0; }
.brand img { width: 112px; height: auto; display: block; }

.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav a {
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2);
  letter-spacing: .02em;
}
.site-header nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent); color: var(--accent-in) !important;
  padding: 10px 18px; border-radius: 4px; font-weight: 700 !important;
  white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.08); }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }

.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148,163,184,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 70% at 60% 35%, #000 35%, transparent 78%);
}

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: center; padding: 84px 20px 92px;
}

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 20px; font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.tick { width: 26px; height: 2px; background: var(--accent); display: inline-block; }

.lede { margin: 0; max-width: 54ch; font-size: 18px; color: var(--ink-2); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 4px;
  text-decoration: none; font-weight: 700; font-size: 15.5px;
  letter-spacing: .02em; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-in); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art .dim {
  font-family: var(--body); font-size: 13px; font-weight: 600;
  fill: #f97316; letter-spacing: .08em;
}
.hero-art .note {
  font-family: var(--body); font-size: 10.5px; font-weight: 600;
  fill: #8296ad; letter-spacing: .14em; text-transform: uppercase;
}
.hero-art .dim2 { fill: #5a6b82; }
.fan { transform-origin: 376px 216px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden; border-bottom: 1px solid var(--line);
  background: var(--bg-2); padding: 14px 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 22px; width: max-content;
  animation: slide 46s linear infinite;
}
.marquee span {
  font-family: var(--display); font-size: 13px; text-transform: uppercase;
  letter-spacing: .14em; color: #55657c; white-space: nowrap;
}
.marquee i { width: 5px; height: 5px; background: var(--accent); flex: 0 0 auto; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

.section { padding: 84px 0; }
section[id] { scroll-margin-top: 92px; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---------- capability cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }

.card {
  position: relative; padding: 30px 26px 28px;
  background: var(--panel); border: 1px solid var(--line);
  border-top: 3px solid var(--accent); border-radius: 6px;
}
.num {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--display); font-size: 34px; color: #1c2738; line-height: 1;
}
.card p { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }
.card ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 14.5px; }
.card li { margin-bottom: 7px; }

/* ---------- coverage ---------- */

.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.coverage-grid p:not(.kicker) { color: var(--ink-2); max-width: 52ch; }

.states { display: grid; gap: 12px; }
.state {
  display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 18px;
  padding: 20px 24px; background: var(--panel);
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px;
}
.abbr { font-family: var(--display); font-size: 38px; line-height: 1; color: var(--ink); }
.nm { font-weight: 600; font-size: 16px; }
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 3px;
}

/* ---------- clients ---------- */

.client-groups { display: grid; gap: 38px; margin-top: 38px; }

.cgroup h3 {
  font-family: var(--body); font-size: 11.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}

.clients {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 2px;
}
.clients li {
  padding: 16px; background: var(--panel);
  border-left: 2px solid var(--line-2);
  display: flex; align-items: center; min-height: 62px;
}
.clients li:hover { border-left-color: var(--accent); }
.cl-name { font-family: var(--display); font-size: 15.5px; line-height: 1.22; color: var(--ink); }

/* ---------- work plates ---------- */

.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plate {
  margin: 0; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); position: relative;
}
.plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plate.empty {
  border-style: dashed; border-color: var(--line-2);
  display: grid; place-items: center;
}
.plate.empty .xh {
  width: 46px; height: 46px; opacity: .5;
  background:
    linear-gradient(var(--muted), var(--muted)) center/100% 1px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center/1px 100% no-repeat;
}
.plate.empty figcaption {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.plate-note { margin-top: 18px; }

/* ---------- company / title block ---------- */

.company-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.company-grid p:not(.kicker) { color: var(--ink-2); max-width: 56ch; }

.titleblock { background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; }
.tb-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; border-bottom: 1px solid var(--line-2); background: #0d1522;
}
.tb-head img { width: 54px; height: auto; }
.tb-head strong { display: block; font-size: 15px; }
.tb-head span { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.kv { margin: 0; padding: 6px 22px 18px; }
.kv > div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt {
  color: var(--muted); font-size: 11px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: 4px;
}
.kv dd { margin: 0; font-size: 15px; font-weight: 600; }

.todo {
  display: inline-block; background: var(--todo-bg); color: var(--todo-ink);
  border: 1px dashed var(--todo-line); border-radius: 4px;
  padding: 3px 9px; font-size: 13.5px; font-weight: 700;
}
.todo::before { content: "⚑ "; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.contact-card {
  display: block; text-decoration: none;
  padding: 26px 24px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px;
  transition: border-color .15s ease, transform .15s ease;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cc-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.cc-value { display: block; font-family: var(--display); font-size: 21px; margin-bottom: 8px; word-break: break-word; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-2); }
.footer-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-inner img { width: 84px; height: auto; opacity: .85; }
.footer-inner p { margin: 0 0 3px; font-size: 14px; color: var(--ink-2); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 20px 70px; }
  .hero-art { max-width: 520px; }
  .cards, .contact-grid, .plates { grid-template-columns: 1fr; }
  .coverage-grid, .company-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 60px 0; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 0; padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .brand img { width: 104px; }
  .site-header nav { gap: 16px; width: 100%; justify-content: space-between; }
  .site-header nav a { font-size: 13px; }
  .nav-cta { padding: 8px 14px; }
  .btn { flex: 1 1 auto; text-align: center; }
  .state { grid-template-columns: 64px 1fr; gap: 12px; padding: 16px 18px; }
  .state .tag { grid-column: 2; justify-self: start; }
  .abbr { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fan, .marquee-track { animation: none; }
}
