:root {
  --navy: #103d57;
  --navy-2: #0a2f45;
  --navy-3: #08283a;
  --teal: #27a5a8;
  --teal-dark: #15878c;
  --ink: #17384b;
  --muted: #637681;
  --line: #dce6e9;
  --soft: #f4f8f9;
  --soft-2: #eef5f6;
  --white: #ffffff;
  --max: 1240px;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(14, 55, 78, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.section { padding: 104px 0; }
.eyebrow {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 14px;
}
.eyebrow-light { color: #68d4d4; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 9999;
  background: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(16,61,87,.08);
  backdrop-filter: blur(16px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 34px rgba(10,47,69,.08);
}
.nav-wrap {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand img {
  width: 190px;
  max-height: 58px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 700;
}
.main-nav a {
  position: relative;
  color: #1c4054;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }
.nav-cta {
  border: 1px solid rgba(39,165,168,.75);
  color: var(--teal-dark) !important;
  border-radius: 999px;
  padding: 10px 17px;
}
.nav-cta:hover { background: var(--teal); color: white !important; }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  transition: .2s ease;
}

.hero {
  padding: 92px 0 88px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  margin: 0;
  max-width: 720px;
  color: var(--navy);
  font-size: clamp(54px, 6.4vw, 88px);
  line-height: .96;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--teal); }
.hero-lead {
  max-width: 680px;
  margin: 28px 0 10px;
  color: #294b5c;
  font-size: clamp(18px, 1.6vw, 22px);
}
.hero-proof {
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 15px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 12px 28px rgba(39,165,168,.2);
}
.btn-primary:hover { box-shadow: 0 16px 32px rgba(39,165,168,.28); }
.btn-secondary {
  background: white;
  color: var(--navy);
  border-color: #b9cdd2;
}
.btn-secondary:hover { border-color: var(--teal); }
.btn-secondary span, .btn-light span { margin-left: 8px; }

.hero-visual {
  position: relative;
  min-height: 500px;
}
.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(39,165,168,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39,165,168,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 90%, transparent);
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -90px;
  top: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,165,168,.10), transparent 67%);
}
.hero-visual svg {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: visible;
}
.trace path,
.machine path,
.machine rect,
.machine line,
.machine circle {
  fill: none;
  stroke: #315f73;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.trace path {
  stroke: url(#tealLine);
  stroke-width: 2.5;
}
.trace circle {
  fill: white;
  stroke: var(--teal);
  stroke-width: 2;
}
.machine {
  opacity: .86;
}
.node circle { fill: var(--teal); }
.node path { stroke: var(--teal); stroke-width: 1.5; }
.node text {
  fill: #486979;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.visual-caption {
  position: absolute;
  left: 8%;
  right: 0;
  bottom: 20px;
  display: flex;
  gap: 26px;
  color: #6f8995;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.visual-caption span::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--teal);
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.services { background: #fbfdfd; border-top: 1px solid #edf2f3; }
.section-heading { max-width: 820px; margin-bottom: 48px; }
.section-heading.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading h2,
.about h2,
.contact h2,
.automotive h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.section-heading p {
  color: var(--muted);
  font-size: 17px;
  margin: 16px 0 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  min-height: 385px;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(16,61,87,.03);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(39,165,168,.55);
  box-shadow: var(--shadow);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
}
.service-number {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
}
.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--soft-2);
  font-size: 20px;
  font-weight: 800;
}
.service-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.service-card p { color: var(--muted); margin: 0 0 18px; }
.service-card ul {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  color: #35596a;
  font-size: 13px;
  font-weight: 700;
}
.service-card li { padding: 5px 0; }
.service-card li::before {
  content: "→";
  color: var(--teal);
  margin-right: 8px;
}

.lifecycle { background: white; }
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 64px;
}
.timeline-track {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 28px;
  height: 2px;
  background: linear-gradient(90deg, rgba(39,165,168,.15), var(--teal), rgba(39,165,168,.15));
}
.timeline-step {
  position: relative;
  text-align: center;
  z-index: 1;
}
.timeline-dot {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border: 2px solid var(--teal);
  background: white;
  color: var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  box-shadow: 0 0 0 8px white;
}
.timeline-step strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
}
.timeline-step span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.principles {
  background:
    linear-gradient(180deg, rgba(244,248,249,.82), rgba(238,245,246,.82)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(39,165,168,.04) 80px);
}
.statement {
  max-width: 970px;
  margin: 0 auto 64px;
  text-align: center;
}
.quote-mark {
  display: block;
  height: 42px;
  color: rgba(39,165,168,.5);
  font-size: 78px;
  line-height: 1;
}
.statement h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #ccdfe2;
}
.principle {
  padding: 34px 26px 0;
  border-right: 1px solid #ccdfe2;
}
.principle:last-child { border-right: 0; }
.principle-mark {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  margin-bottom: 22px;
}
.principle h3 { margin: 0 0 10px; color: var(--navy); }
.principle p { color: var(--muted); margin: 0; }

.automotive {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 92% 18%, rgba(39,165,168,.20), transparent 32%),
    linear-gradient(120deg, var(--navy-3), var(--navy));
}
.automotive-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .85fr 1.35fr;
  gap: 80px;
  align-items: end;
}
.automotive h2 { color: white; }
.automotive-copy p {
  color: #cfe0e6;
  max-width: 580px;
  margin: 20px 0 0;
  font-size: 17px;
}
.automotive-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,.18);
}
.fact {
  min-height: 150px;
  padding: 0 22px;
  border-right: 1px solid rgba(255,255,255,.18);
}
.fact span {
  display: block;
  color: #6bd3d4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .17em;
  margin-bottom: 22px;
}
.fact strong {
  font-size: 17px;
  line-height: 1.25;
}
.automotive-circuit {
  position: absolute;
  right: -30px;
  bottom: -20px;
  width: 390px;
  height: 230px;
  opacity: .06;
  background-image:
    linear-gradient(30deg, white 12%, transparent 12.5%, transparent 87%, white 87.5%),
    linear-gradient(150deg, white 12%, transparent 12.5%, transparent 87%, white 87.5%);
  background-size: 42px 74px;
}

.training { background: white; }
.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.training-card {
  padding: 34px;
  border-top: 4px solid var(--teal);
  background: var(--soft);
}
.training-kicker {
  color: var(--teal-dark);
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 900;
}
.training-card h3 {
  color: var(--navy);
  margin: 18px 0 12px;
  font-size: 23px;
  line-height: 1.2;
}
.training-card p { color: var(--muted); margin: 0; }

.about { background: #f8fbfb; border-top: 1px solid #e8f0f1; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 90px;
  align-items: center;
}
.about-copy p {
  max-width: 730px;
  color: var(--muted);
  font-size: 17px;
}
.about-panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.about-panel-label {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  margin-bottom: 22px;
}
.about-panel-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.about-panel-line:last-child { border-bottom: 0; }
.about-panel-line strong { color: var(--navy); }
.about-panel-line span { color: var(--muted); text-align: right; }

.contact {
  background:
    radial-gradient(circle at 10% 10%, rgba(39,165,168,.15), transparent 28%),
    linear-gradient(120deg, #092d41, #123f58);
  color: white;
}
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 90px;
  align-items: start;
}
.contact h2 { color: white; }
.contact-copy p {
  max-width: 580px;
  color: #c9dbe2;
  font-size: 17px;
}
.contact-email {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
}
.contact-email span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #6bd3d4;
}
.contact-form {
  padding: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: block;
  margin-bottom: 16px;
}
.contact-form label span {
  display: block;
  color: #d3e2e7;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: white;
  outline: none;
  border-radius: 8px;
  padding: 13px 14px;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #69d2d4;
  background: rgba(255,255,255,.11);
}
.contact-form textarea { resize: vertical; }
.btn-light {
  width: 100%;
  color: var(--navy);
  background: white;
}
.form-note {
  margin: 12px 0 0;
  color: #9fb8c4;
  font-size: 11px;
}

.site-footer {
  background: #061f2d;
  color: #bed1d8;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-grid {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
}

.footer-brand img {
  width: 168px;
  filter: brightness(0) invert(1);
  opacity: .96;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  color: #a9c0ca;
  font-size: 11px;
  letter-spacing: .02em;
}

.footer-copy strong {
  color: #ffffff;
  font-size: 12px;
  letter-spacing: .08em;
}

.footer-copy span + span::before {
  content: "•";
  margin-right: 18px;
  color: rgba(255,255,255,.26);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; margin-top: -20px; }
  .hero-visual svg { min-height: 420px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 36px 16px; }
  .timeline-track { display: none; }
  .automotive-grid { grid-template-columns: 1fr; }
  .automotive-facts { border-left: 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 820px) {
  .section { padding: 78px 0; }
  .container { width: min(var(--max), calc(100% - 32px)); }
  .nav-wrap { height: 76px; }
  .brand img { width: 158px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 24px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    box-shadow: 0 20px 35px rgba(16,61,87,.1);
    border-top: 1px solid #edf2f3;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .hero { padding-top: 72px; }
  .hero-grid { gap: 24px; }
  .hero-visual { min-height: 330px; }
  .hero-visual svg { min-height: 330px; }
  .visual-caption { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .principle { border-bottom: 1px solid #ccdfe2; }
  .principle:nth-child(2) { border-right: 0; }
  .automotive-facts { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 24px; border-bottom: 1px solid rgba(255,255,255,.18); }
  .training-grid { grid-template-columns: 1fr; }
  .footer-grid { padding: 28px 0; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 51px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-visual { min-height: 270px; margin: -15px -12px 0; }
  .hero-visual svg { min-height: 270px; }
  .timeline { grid-template-columns: 1fr; gap: 16px; }
  .timeline-step {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 0 14px;
    text-align: left;
    align-items: center;
  }
  .timeline-dot { grid-row: 1 / span 2; margin: 0; width: 48px; height: 48px; box-shadow: none; }
  .timeline-step span { margin-top: 0; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle { border-right: 0; }
  .automotive-facts { grid-template-columns: 1fr; }
  .fact { min-height: auto; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .about-panel-line { flex-direction: column; gap: 4px; }
  .about-panel-line span { text-align: left; }
  .footer-copy {
    flex-direction: column;
    gap: 4px;
  }
  .footer-copy span + span::before {
    display: none;
  }
}


/* Secure contact form additions */
.contact-response-note {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #d7e7eb;
  font-weight: 700;
  font-size: 14px;
}

.contact-response-note > span {
  color: #6bd3d4;
  font-size: 18px;
}

.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  left: -10000px !important;
  top: auto !important;
}

.turnstile-wrap {
  margin: 4px 0 18px;
  min-height: 65px;
}

.cf-turnstile {
  max-width: 100%;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.form-status {
  min-height: 22px;
  margin: 13px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.form-status.success {
  color: #8ce7cf;
}

.form-status.error {
  color: #ffb9b9;
}
