/* Special Machinery Canada — site styles (light theme) */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-deep: #eef2f7;
  --line: rgba(10, 22, 40, 0.09);
  --line-strong: rgba(10, 22, 40, 0.16);
  --text: #0a1628;
  --muted: #566176;
  --dim: #8a94a6;
  --blue: #1f4fd8;
  --blue-dark: #163da8;
  --blue-soft: rgba(31, 79, 216, 0.08);
  --radius: 18px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --shadow: 0 1px 2px rgba(10, 22, 40, 0.04), 0 12px 32px -12px rgba(10, 22, 40, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  color: var(--text);
}
.h-xl { font-size: clamp(44px, 6.4vw, 96px); }
.h-lg { font-size: clamp(34px, 4.6vw, 68px); }
.lede { font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); max-width: 54ch; }
.accent { color: var(--blue); }
.outline-text { color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px 15px 24px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.4s;
  box-shadow: 0 8px 24px -10px rgba(31, 79, 216, 0.55);
}
.btn:hover { transform: translateY(-2px); background: var(--blue-dark); }
.btn .arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid; place-items: center;
  transition: transform 0.4s var(--ease);
}
.btn:hover .arrow { transform: rotate(-45deg); }
.btn-ghost { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-ghost .arrow { background: var(--bg-deep); }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(10, 22, 40, 0.3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 40px; width: auto; }
.footer .brand-logo { height: 46px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.04em;
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.01em; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.22em; color: var(--blue); margin-top: 3px; }
.nav-links { display: flex; margin: 0 auto; gap: 34px; font-size: 14px; color: var(--muted); font-weight: 500; }
.nav-links a { position: relative; transition: color 0.3s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 10px 12px 10px 18px; font-size: 14px; box-shadow: none; }
.nav .btn .arrow { width: 24px; height: 24px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); margin-right: 22px; transition: color 0.3s; }
.nav-phone svg { color: var(--blue); }
.nav-phone:hover { color: var(--blue); }
.mobile-call { color: var(--blue); }
.visit-phone { margin-top: 6px !important; }
.visit-phone a { color: var(--blue); }
.menu-btn { display: none; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500; cursor: pointer; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: #fff;
  padding: 110px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--display); font-size: 36px; font-weight: 700; letter-spacing: -0.03em; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { color: var(--blue); }

/* Hero */
.hero { position: relative; padding-top: 80px; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 20% 30%, #000 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 20% 30%, #000 0%, transparent 65%);
  opacity: 0.6; pointer-events: none;
}
.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.hero h1 { margin: 24px 0 26px; }
.hero .lede { margin: 0 0 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: 0 40px 80px -40px rgba(10, 22, 40, 0.45); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; animation: heroZoom 24s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero-badge {
  position: absolute; left: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow);
}
.hero-bar {
  position: relative;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-bar > div { padding: 24px 0 28px; display: flex; flex-direction: column; gap: 2px; }
.hero-bar > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.hero-bar strong { font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.hero-bar span { font-size: 13px; color: var(--muted); }

/* Marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: #fff; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 56px; font-family: var(--display); font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: var(--muted); white-space: nowrap; }
.marquee-item::after { content: ""; width: 7px; height: 7px; background: var(--blue); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section { position: relative; }
.section { padding: clamp(88px, 11vw, 160px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(44px, 5.5vw, 80px); }
.section-head h2 { margin-top: 20px; }
.caps { background: var(--bg-alt); }
.light { background: #fff; }

/* Statement + stats */
.statement p.big {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 26px 0 0;
  max-width: 26ch;
}
.statement p.big .fade { color: var(--dim); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 7vw, 100px); border-top: 1px solid var(--line); }
.stat { padding: 34px 28px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-num { font-family: var(--display); font-size: clamp(48px, 5.4vw, 84px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--blue); display: flex; align-items: baseline; }
.stat-num sup { font-size: 0.45em; margin-left: 2px; }
.stat p { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 24ch; }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.cap:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10, 22, 40, 0.3); }
.cap-img { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; }
.cap img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cap:hover img { transform: scale(1.05); }
.cap-idx { position: absolute; top: 16px; left: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; background: #fff; color: var(--blue); padding: 6px 10px; border-radius: 8px; }
.cap-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.cap h3 { font-size: clamp(24px, 2vw, 28px); line-height: 1.08; }
.cap p { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.cap ul { list-style: none; padding: 0; margin: auto 0 0; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.cap li { font-size: 12px; font-family: var(--mono); padding: 6px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }

/* Services list */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.4fr 52px;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.5s var(--ease);
}
.svc::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue-soft), transparent 70%); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.svc:hover::before { opacity: 1; }
.svc:hover { padding-left: 20px; }
.svc-n { font-family: var(--mono); font-size: 13px; color: var(--blue); }
.svc h3 { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.08; }
.svc p { color: var(--muted); margin: 0; }
.svc .go { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text); transition: background 0.4s, color 0.4s, transform 0.5s var(--ease), border-color 0.4s; }
.svc:hover .go { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(-45deg); }

/* Quality / process */
.quality-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; }
.quality-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.12); will-change: transform; }
.quality-media .tag {
  position: absolute; left: 24px; bottom: 24px;
  padding: 14px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: center; font-size: 14px; font-weight: 600;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.process { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 52px; }
.step { padding: 26px 24px 0 0; border-top: 1px solid var(--line-strong); position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--blue); transition: width 1.2s var(--ease); }
.step.in::before { width: 100%; }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--blue); letter-spacing: 0.1em; }
.step h4 { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; max-width: 24ch; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--bg-alt); border-radius: var(--radius); padding: 34px 30px 32px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 320px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s, background 0.4s;
}
.pillar:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 30px 60px -30px rgba(10, 22, 40, 0.25); }
.pillar .icon { width: 50px; height: 50px; border-radius: 14px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.pillar h3 { font-size: 26px; line-height: 1.08; margin-top: auto; padding-top: 44px; }
.pillar p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }

/* CTA + form */
.cta { background: var(--bg-alt); overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.cta-glow { display: none; }
.cta h1, .cta h2 { margin: 22px 0 26px; }
.cta-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.cta-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.cta-points svg { flex: none; margin-top: 3px; color: var(--blue); }
.visit { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.visit p { margin: 12px 0 0; font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.visit a { border-bottom: 2px solid var(--blue-soft); transition: border-color 0.3s, color 0.3s; }
.visit a:hover { color: var(--blue); border-color: var(--blue); }
.form {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 40px 80px -48px rgba(10, 22, 40, 0.35);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23566176' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.form .btn { width: 100%; justify-content: space-between; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--dim); margin: 14px 0 0; }
.form-status { margin-top: 12px; font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #dc2626; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 72px 0 32px; background: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin: 0 0 18px; font-weight: 400; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.footer ul a { line-height: 1.5; }
.footer ul a:hover { color: var(--text); }
.footer-word { font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; font-size: clamp(28px, 8.4vw, 150px); line-height: 0.85; margin-top: 64px; color: var(--bg-deep); white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); flex-wrap: wrap; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.in .split-line > span, .split-line.in > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: 0.08s; }

/* Text pages */
.prose { font-size: 17px; color: var(--muted); }
.prose h3 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.prose p { margin: 0 0 14px; }
.prose a, .form-note a, .footer-bottom a { color: var(--blue); }
.prose .muted { color: var(--dim); font-size: 14px; margin-top: 32px; }

/* Contact page */
.page-hero { padding-top: 160px; }

/* Responsive */
@media (max-width: 1080px) {
  .nav-links, .nav .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-phone { margin-left: auto; margin-right: 12px; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 10; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .cap:last-child { grid-column: span 2; }
  .cap:last-child .cap-img { aspect-ratio: 16 / 7; }
  .process { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .step { padding-bottom: 30px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .cta-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat { padding-bottom: 30px; }
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .nav .brand-logo { height: 34px; }
  .nav-phone { width: 40px; height: 40px; justify-content: center; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 0; gap: 0; }
  .nav-phone svg { width: 17px; height: 17px; }
  .hero-media { aspect-ratio: 4 / 3.2; border-radius: 18px; }
  .hero-bar { grid-template-columns: 1fr 1fr; }
  .hero-bar > div { padding: 16px 0; }
  .hero-bar > div + div { padding-left: 16px; }
  .hero-bar > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap:last-child { grid-column: auto; }
  .cap:last-child .cap-img { aspect-ratio: 4 / 3.4; }
  .svc { grid-template-columns: 1fr 44px; gap: 10px 16px; padding: 26px 0; }
  .svc-n { grid-column: 1 / -1; }
  .svc p { grid-column: 1 / -1; grid-row: 3; }
  .svc .go { width: 44px; height: 44px; grid-column: 2; grid-row: 2; }
  .svc:hover { padding-left: 0; }
  .quality-media { aspect-ratio: 4 / 3; }
  .process { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
}
