:root {
  color-scheme: dark;
  --bg: #111816;
  --surface: #19221e;
  --ink: #f2f3ec;
  --muted: #b3beb6;
  --accent: #b8e7a4;
  --line: #35423a;
  --font-heading: "Space Grotesk", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body, button { font-family: "Inter", system-ui, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
figure, p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-heading); font-weight: 500; line-height: 1.12; }
h2 { font-size: clamp(32px, 3.4vw, 46px); letter-spacing: -1.6px; }
h3 { font-size: 23px; letter-spacing: -.65px; }
a, button, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
[tabindex="-1"]:focus { outline: none; }
::selection { color: var(--bg); background: var(--accent); }
.container { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 20px; background: var(--accent); color: var(--bg); transform: translateY(-180%); z-index: 100; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(17, 24, 22, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.brand { flex-shrink: 0; }
.brand img { width: 184px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.desktop-nav > a:not(.button) { padding-block: 12px; color: var(--muted); }
.desktop-nav > a:not(.button):hover { color: var(--ink); }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-height: 52px;
  padding: 13px 21px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: background .18s ease, border-color .18s ease;
}
.button:hover { color: var(--bg); background: #d2f2c4; border-color: #d2f2c4; }
.button span { font-size: 20px; line-height: 1; }
.button-small { min-height: 44px; padding: 10px 16px; gap: 22px; }
.mobile-menu { display: none; }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 14px; font-weight: 500; }
.text-link:hover { color: var(--accent); }
.text-link span[aria-hidden] { font-size: 20px; }
.eyebrow { margin-bottom: 22px; font-size: 11px; font-weight: 500; letter-spacing: 1.8px; line-height: 1.5; text-transform: uppercase; color: var(--accent); }

.hero { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 56px; padding-block: 56px 64px; }
.hero-copy { padding-block: 12px; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.status-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.hero h1 { font-size: clamp(36px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -2px; }
.hero h1 > span { color: var(--accent); }
.hero-intro { margin-top: 25px; color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 440px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; }
.hero-figure { min-width: 0; background: #fff; border-radius: 6px; overflow: hidden; color: #17221a; }
.hero-image { display: block; position: relative; aspect-ratio: 1.25; overflow: hidden; background: #fff; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.image-label { position: absolute; top: 22px; left: 24px; z-index: 1; color: #516057; font-family: monospace; font-size: 11px; letter-spacing: .7px; text-transform: uppercase; }
.hero-figure figcaption { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; gap: 12px; background: #e7ece3; border-top: 1px solid #d9dfd5; }
.hero-figure figcaption strong { display: block; font-size: 15px; font-weight: 600; }
.hero-figure figcaption span span { display: block; margin-top: 3px; font-size: 12px; color: #536050; }
.hero-figure figcaption > a { display: grid; place-items: center; width: 44px; height: 44px; font-size: 28px; }
.hero-figure figcaption > a:focus-visible { outline-color: #267b50; }

.work-section { padding-block: 48px 88px; background: var(--surface); border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading > p { color: var(--muted); font-size: 14px; max-width: 330px; padding-bottom: 3px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.work-item { min-width: 0; }
.work-image { display: block; position: relative; aspect-ratio: 1.5; background: #fff; border-radius: 5px; overflow: hidden; }
.work-image img { width: 100%; height: 100%; object-fit: cover; }
.controller-image img { object-position: 54% center; }
.sensor-image img { object-fit: cover; object-position: center; }
.battery-image img { object-position: 72% center; }
.software-image { background: #efe9df; }
.software-image img { width: 156%; max-width: none; height: 100%; object-fit: cover; object-position: left top; }
.work-copy { padding-top: 22px; }
.project-type { color: var(--accent); font-family: monospace; font-size: 11px; letter-spacing: .3px; margin-bottom: 10px; }
.work-copy h3 { font-size: clamp(21px, 2vw, 26px); }
.work-copy > p:not(.project-type) { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 12px; max-width: 500px; }
summary::-webkit-details-marker { display: none; }
.project-link { margin-top: 12px; color: var(--accent); }

.services-section { padding-block: 80px; background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); }
.services-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 88px; }
.services-section .eyebrow { color: var(--accent); }
.services-intro > p:not(.eyebrow) { color: var(--muted); font-size: 15px; max-width: 460px; margin-top: 24px; }
.services-intro .text-link { margin-top: 24px; border-bottom: 1px solid var(--line); }
.services-section .text-link:hover { color: var(--accent); }
.services-section a:focus-visible { outline-color: var(--accent); }
.service-industries { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.service-industries h3 { font-size: 21px; }
.service-industries p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.service-industries .industry-list { color: var(--accent); font-size: 12px; }
.service { padding-block: 28px; border-top: 1px solid var(--line); }
.service:first-child { padding-top: 0; border-top: 0; }
.service:last-child { padding-bottom: 0; }
.service h3 { font-size: 25px; margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.service .service-specifics { margin-top: 12px; color: var(--accent); font-size: 12px; }
.service-capabilities { display: grid; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.service-capabilities strong { color: var(--ink); font-weight: 600; }
.service .service-context { margin-top: 16px; font-size: 14px; }

.process-section { padding-block: 88px; background: var(--surface); border-top: 1px solid var(--line); }
.process-context { max-width: 900px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 44px 0 0; gap: 28px; }
.process-list li { border-top: 1px solid var(--line); padding-top: 20px; }
.process-number { display: block; font-family: monospace; font-size: 12px; color: var(--accent); margin-bottom: 28px; }
.process-list h3 { font-size: 20px; margin-bottom: 12px; }
.process-list p { color: var(--muted); font-size: 14px; max-width: 245px; }

.contact-section { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 76px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact-section .eyebrow { margin-bottom: 20px; }
.contact-section h2 { font-size: clamp(44px, 5vw, 64px); line-height: 1.04; letter-spacing: -2.5px; }
.contact-layout > div > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 15px; }
.contact-email { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 8px 12px; padding-block: 20px; border-bottom: 1px solid #5c705f; }
.contact-email > span:first-child { font-size: 12px; color: var(--muted); }
.contact-email strong { grid-column: 1; font-family: var(--font-heading); color: var(--accent); font-size: clamp(23px, 2.5vw, 32px); font-weight: 500; letter-spacing: -.7px; }
.contact-email .contact-arrow { grid-column: 2; grid-row: 1 / 3; font-size: 34px; color: var(--accent); }
.contact-email:hover strong { color: #d2f2c4; }
.quote-option { padding-top: 20px; }
.quote-option p { color: var(--muted); font-size: 13px; }
.quote-option .button { margin-top: 14px; }

.site-footer { padding-block: 36px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 24px 32px; }
.footer-brand { font-family: var(--font-heading); font-size: 18px; font-weight: 500; }
.footer-inner > div p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; }
.footer-inner nav a { padding-block: 8px; }
.footer-inner nav a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }

@media (min-width: 1500px) {
  .hero { gap: 72px; padding-block: 72px; }
  .hero h1 { font-size: 54px; }
}
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .desktop-nav { gap: 22px; }
  .brand img { width: 160px; }
  .hero { gap: 32px; }
  .hero h1 { font-size: clamp(34px, 4vw, 44px); letter-spacing: -1.5px; }
  .hero-intro { font-size: 15px; }
  .hero-actions { gap: 10px 20px; }
  .hero-image { aspect-ratio: 1; }
  .services-layout { gap: 48px; grid-template-columns: .9fr 1.1fr; }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 48px); }
  .header-inner { min-height: 72px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu > summary { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 8px 0 8px 16px; list-style: none; cursor: pointer; font-size: 13px; }
  .menu-symbol { position: relative; width: 14px; height: 14px; }
  .menu-symbol::before, .menu-symbol::after { content: ""; position: absolute; background: var(--accent); top: 6px; left: 0; width: 14px; height: 1px; }
  .menu-symbol::after { transform: rotate(90deg); }
  .mobile-menu[open] .menu-symbol::after { transform: none; }
  .mobile-menu nav { position: absolute; left: 0; right: 0; top: 100%; padding: 12px 24px 20px; display: grid; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 32px rgba(0,0,0,.2); }
  .mobile-menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--line); }
  .mobile-menu nav a:last-child { border: 0; color: var(--accent); }
  .hero { gap: 24px; padding-block: 36px 48px; }
  .hero h1 { font-size: 34px; }
  .hero-copy .eyebrow { font-size: 9px; letter-spacing: 1.3px; gap: 7px; }
  .hero-figure figcaption { padding: 16px; }
  .hero-figure figcaption strong { font-size: 13px; }
  .hero-figure figcaption span span { font-size: 11px; }
  .hero-figure figcaption > a { width: 28px; flex-shrink: 0; }
  .image-label { top: 16px; left: 16px; font-size: 9px; }
  .hero-image { aspect-ratio: 1.2; }
  .hero-image img { object-fit: cover; }
  .hero-intro { margin-top: 20px; }
  .hero-actions { margin-top: 22px; gap: 6px 20px; }
  .work-section { padding-block: 40px 64px; }
  .section-heading { align-items: start; gap: 24px; }
  .section-heading > p { max-width: 240px; font-size: 13px; }
  .work-grid { gap: 36px 24px; }
  .work-image { aspect-ratio: 1.2; }
  .work-copy h3 { line-height: 1.2; }
  .project-type { font-size: 10px; }
  .services-section { padding-block: 60px; }
  .services-layout { grid-template-columns: 1fr; gap: 36px; }
  .service:first-child { border-top: 1px solid var(--line); padding-top: 28px; }
  .process-section { padding-block: 64px; }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .process-number { margin-bottom: 16px; }
  .contact-layout { gap: 32px; }
  .contact-email { grid-template-columns: minmax(0, 1fr) 26px; gap: 8px; }
  .contact-email .contact-arrow { font-size: 26px; }
  .contact-email strong { font-size: 23px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 92px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 28px 40px; }
  .hero-copy { padding: 0; }
  .hero-copy .eyebrow { font-size: 10px; letter-spacing: 1.4px; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(34px, 8.5vw, 46px); letter-spacing: -1.3px; line-height: 1.08; }
  .hero-intro { max-width: 350px; font-size: 14px; margin-top: 19px; }
  .hero-actions { gap: 10px 22px; margin-top: 21px; }
  .hero-actions .button, .quote-option .button { padding: 12px 15px; min-height: 48px; gap: 14px; font-size: 12px; }
  .hero-actions .text-link { font-size: 12px; gap: 10px; }
  .hero-image { aspect-ratio: 1.3; }
  .hero-image img { object-fit: cover; }
  .hero-figure figcaption { padding: 14px 18px; }
  .hero-figure figcaption strong { font-size: 14px; }
  .hero-figure figcaption span span { font-size: 11px; }
  .hero-figure figcaption > a { width: 40px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading > p { margin-top: 18px; max-width: 330px; }
  .section-heading > p br { display: none; }
  h2 { font-size: 34px; letter-spacing: -1.1px; }
  .eyebrow { font-size: 10px; }
  .work-grid { grid-template-columns: 1fr; gap: 36px; }
  .work-image { aspect-ratio: 1.3; }
  .work-copy { padding-top: 18px; }
  .work-copy h3 { font-size: 23px; }
  .work-copy > p:not(.project-type) { margin-top: 10px; }
  .service h3 { font-size: 22px; }
  .service p { font-size: 14px; }
  .process-list { margin-top: 28px; gap: 24px 20px; }
  .process-list h3 { font-size: 18px; line-height: 1.2; }
  .process-list p { font-size: 13px; }
  .contact-section { padding-block: 52px; }
  .contact-layout { grid-template-columns: 1fr; gap: 20px; }
  .contact-section h2 { font-size: 52px; }
  .contact-layout > div > p:not(.eyebrow) { font-size: 14px; }
  .contact-email strong { font-size: 27px; }
  .contact-email { grid-template-columns: minmax(0, 1fr) 32px; }
  .contact-email .contact-arrow { font-size: 32px; }
  .footer-inner nav { gap: 4px 20px; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 32px); }
  .brand img { width: 144px; }
  .hero-actions { gap: 8px 16px; }
  .hero-actions .button, .quote-option .button { padding-inline: 12px; gap: 10px; }
  .hero-copy .eyebrow { font-size: 9px; }
  .contact-email strong { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
