/* ============================================================
   Atom Mechanical — atommechanical.com
   Palette sampled from the brand mark:
   ink #231F20 · heat #CF202A · cool #0890F7 · steel #6D6E71
   Type: system font stack
   Signature: the "thermal seam" (heat→cool hairline)
   ============================================================ */

:root {
  --ink: #231F20;
  --ink-2: #2C2829;
  --ink-3: #1A1718;
  --paper: #FFFFFF;
  --frost: #F2F6F9;
  --line: #E3E8ED;
  --heat: #CF202A;
  --heat-deep: #A81922;
  --cool: #0890F7;
  --cool-soft: #5FB8FA;
  --steel: #6D6E71;
  --body-ink: #3C3A3B;
  --thermo: linear-gradient(90deg, var(--heat), var(--cool));
  --radius: 18px;
  --shadow: 0 10px 30px rgba(35, 31, 32, 0.10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body-ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
::selection { background: var(--heat); color: #fff; }

:focus-visible {
  outline: 3px solid var(--cool);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1120px, 92vw); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  z-index: 200; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Type voices ---------- */
h1, h2 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 0.55em;
}
p { margin: 0 0 1em; }

.kicker {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.9em;
}
.lead { font-size: 1.1rem; color: var(--steel); max-width: 62ch; }
.lede { font-size: 1.15rem; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}
.chip-light {
  border-color: var(--line);
  background: var(--frost);
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8em 1.5em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-lg { padding: 1em 1.8em; font-size: 1rem; }
.btn-heat {
  background: var(--heat);
  color: #fff;
}
.btn-heat:hover {
  background: var(--heat-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(207, 32, 42, 0.35);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(35, 31, 32, 0.09); }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand img { height: 60px; width: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.site-nav a:not(.btn) {
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--heat); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: clamp(72px, 10vw, 128px) 0 56px;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  top: -260px; left: -180px;
  background: radial-gradient(circle, rgba(207, 32, 42, 0.28), transparent 65%);
}
.hero::after {
  bottom: -300px; right: -140px;
  background: radial-gradient(circle, rgba(8, 144, 247, 0.24), transparent 65%);
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .seam,
.quoteband .seam {
  font-style: normal;
  padding-bottom: 0.08em;
  background-image: var(--thermo);
  background-repeat: no-repeat;
  background-size: 100% 5px;
  background-position: 0 100%;
}
.hero .lede { color: rgba(255, 255, 255, 0.78); max-width: 52ch; }
.hero-inner { position: relative; z-index: 1; }
.chip-area { margin-bottom: 1.6em; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 2em 0 1.6em;
}
.hero-micro {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}
.hero-micro .ic { width: 17px; height: 17px; stroke: var(--cool-soft); flex: none; }

.ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Orbit line-art (from the mark) */
.orbits {
  position: absolute;
  top: 50%;
  right: max(-190px, -14vw);
  width: min(730px, 74vw);
  transform: translateY(-54%);
  z-index: 0;
  pointer-events: none;
}
.orbits ellipse {
  fill: none;
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1.6;
}
.orbits .electron.heat { fill: var(--heat); }
.orbits .electron.cool { fill: var(--cool); }
.orbit {
  transform-box: view-box;
  transform-origin: 300px 300px;
}
.orbit-a { animation: spin-a 90s linear infinite; }
.orbit-b { animation: spin-b 70s linear infinite; }
@keyframes spin-a { from { transform: rotate(58deg); }  to { transform: rotate(418deg); } }
@keyframes spin-b { from { transform: rotate(-58deg); } to { transform: rotate(-418deg); } }

.trustbar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-frost { background: var(--frost); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { max-width: 24ch; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--thermo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card:hover::after { transform: scaleX(1); }
.card-ic {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--frost);
  border-radius: 13px;
  margin-bottom: 18px;
  color: var(--ink);
  transition: color .22s ease;
}
.card-ic svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card:hover .card-ic { color: var(--heat); }
.card ul { list-style: none; }
.card li {
  position: relative;
  padding-left: 1.05em;
  margin-bottom: 0.45em;
  font-size: 0.96rem;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: var(--steel);
}

/* ---------- Quote band ---------- */
.quoteband {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: clamp(48px, 7vw, 72px) 0;
}
.quoteband::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--thermo);
}
.quoteband .statement {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 750;
  line-height: 1.15;
  margin: 0;
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  counter-reset: step;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--paper), var(--paper)) padding-box,
              var(--thermo) border-box;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 18px;
}
.step p { margin: 0; font-size: 0.98rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(36px, 5vw, 60px);
  align-items: start;
}
.about-story p { max-width: 58ch; }
.signature { margin: 30px 0 20px; }
.sig-name {
  font-size: 1.45rem;
  font-weight: 750;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 0.15em;
}
.sig-certs {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0;
}
.stat-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.cred-card {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 32px 30px;
  position: sticky;
  top: 96px;
}
.cred-card h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 750;
  margin-bottom: 1em;
}
.checklist { list-style: none; }
.checklist li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}
.checklist li:last-child { margin-bottom: 0; }
.checklist .ic {
  width: 20px;
  height: 20px;
  stroke: var(--cool-soft);
  stroke-width: 2.4;
  margin-top: 2px;
}
.checklist strong { color: #fff; font-weight: 700; }

/* ---------- Service area ---------- */
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.chip-city {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  padding: 0.75em 1.3em;
}
.chip-home {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip-home .ic { width: 15px; height: 15px; stroke: var(--heat); }
.chip-home small {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}
.area-note { max-width: 54ch; color: var(--steel); margin: 0; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: clamp(72px, 10vw, 112px) 0;
  text-align: center;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--thermo);
}
.contact h2 { color: #fff; margin-inline: auto; }
.contact .lead { color: rgba(255, 255, 255, 0.72); margin: 0 auto 2em; }
.kicker-dark { color: rgba(255, 255, 255, 0.5); }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.email-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
}
.copy-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.6em 1.15em;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.copy-btn:hover { background: var(--cool-soft); color: var(--ink); }
.copy-btn.copied { background: var(--cool); color: #fff; }
.contact-micro {
  margin: 26px 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-3);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand img { height: 56px; width: auto; margin-bottom: 16px; }
.footer-brand p, .footer-meta p { font-size: 0.9rem; line-height: 1.7; margin: 0 0 8px; }
.footer-meta { text-align: right; }
.footer-certs {
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.footer-meta a {
  color: var(--cool-soft);
  text-decoration: none;
}
.footer-meta a:hover { text-decoration: underline; }
.footer-fine { color: rgba(255, 255, 255, 0.4); font-size: 0.82rem !important; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4) { transition-delay: .08s; }
.cards .reveal:nth-child(5) { transition-delay: .16s; }
.cards .reveal:nth-child(6) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .about-grid { grid-template-columns: 1fr; }
  .cred-card { position: static; }
  .steps { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 820px) {
  .brand img { height: 50px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(35, 31, 32, 0.12);
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 4vw 20px;
  }
  .site-nav li { border-bottom: 1px solid var(--frost); }
  .site-nav li.nav-cta { border-bottom: 0; padding-top: 16px; }
  .site-nav a:not(.btn) { display: block; padding: 14px 2px; }
  .site-nav .btn { width: 100%; }
  .orbits { opacity: 0.55; width: 520px; right: -240px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .contact-actions { flex-direction: column; }
  .email-pill { width: 100%; justify-content: space-between; }
  .chip { white-space: normal; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit-a { animation: none; transform: rotate(58deg); }
  .orbit-b { animation: none; transform: rotate(-58deg); }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .card::after { transition: none; }
}
