:root {
  --home-navy: #09244b;
  --home-deep: #071a35;
  --home-yellow: #fdbb30;
  --home-ink: #4d5662;
  --home-gray: #f5f8fb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.home-page { margin: 0; background: #fff; color: var(--home-ink); font-family: Roboto, Arial, sans-serif; }
.home-page h1, .home-page h2, .home-page h3 { font-family: Teko, sans-serif; font-weight: 500; }
.site-header { position: relative; z-index: 10; height: 96px; background: #fff; }
.header-inner, .footer-inner { width: min(1180px, 100%); height: 100%; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand img { display: block; width: 188px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 36px; }
.site-header nav a { color: var(--home-navy); font-size: 15px; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { color: #d69200; }
.service-menu { position: relative; display: inline-flex; align-items: center; gap: 7px; line-height: 1; }
.service-menu > a, .service-menu-toggle { display: inline-flex; align-items: center; line-height: 1; }
.service-menu-toggle { width: 20px; height: 20px; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--home-navy); cursor: pointer; font-size: 14px; }
.service-submenu { position: absolute; z-index: 20; top: 100%; left: -18px; display: none; width: 280px; padding: 10px 0; border-top: 3px solid var(--home-yellow); background: #fff; box-shadow: 0 14px 30px rgb(9 36 75 / 18%); }
.service-menu:hover .service-submenu, .service-menu:focus-within .service-submenu, .service-menu.is-open .service-submenu { display: block; }
.service-submenu a { display: block; padding: 10px 18px; font-size: 14px !important; font-weight: 500 !important; }
.service-submenu a:hover, .service-submenu a:focus { background: var(--home-gray); color: #b77b00 !important; }
.home-welcome { padding: 70px 24px 80px; }
.welcome-inner, .solutions-inner, .automation-inner, .testimonials-inner { width: min(1140px, 100%); margin: 0 auto; }
.welcome-inner { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 72px; }
.welcome-photo { min-height: 460px; border: 10px solid var(--home-yellow); box-shadow: 16px 16px 0 var(--home-navy); }
.welcome-photo img { display: block; width: 100%; height: 460px; object-fit: cover; }
.eyebrow { margin: 0 0 12px; color: #b77b00; font-size: 13px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow span { margin-right: 7px; color: var(--home-yellow); font-size: 10px; }
.welcome-copy h1 { max-width: 600px; margin: 0 0 18px; color: var(--home-navy); font-size: clamp(48px, 5vw, 66px); line-height: .96; text-transform: uppercase; }
.welcome-copy h1 span { color: var(--home-yellow); }
.welcome-lead, .solutions-lead { margin: 0; font-size: 16px; line-height: 1.75; }
.welcome-services { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 24px 0 28px; padding: 0; list-style: none; }
.welcome-services li { display: flex; align-items: flex-start; gap: 9px; color: var(--home-navy); font-size: 14px; line-height: 1.45; }
.welcome-services li span { flex: 0 0 auto; color: var(--home-yellow); font-weight: 700; }
.button-primary { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 13px; padding: 12px 22px; background: var(--home-yellow); color: var(--home-navy); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: background .18s ease, color .18s ease; }
.button-primary:hover { background: var(--home-navy); color: #fff; }
.solutions-section { padding: 76px 24px 88px; background: var(--home-gray); }
.solutions-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 68px; }
.solutions-visual { position: relative; min-height: 470px; padding-bottom: 40px; }
.solutions-visual > img { display: block; width: 100%; height: 400px; object-fit: cover; }
.visual-caption { position: absolute; right: -20px; bottom: 0; width: 82%; padding: 23px 26px; background: var(--home-navy); color: #fff; }
.visual-caption h2 { margin: 0 0 5px; color: var(--home-yellow); font-size: 32px; line-height: 1; }
.visual-caption p { margin: 0; font-size: 14px; line-height: 1.55; }
.solutions-copy h2, .section-heading h2, .testimonials-intro h2 { margin: 0 0 16px; color: var(--home-navy); font-size: clamp(40px, 4vw, 54px); line-height: .98; text-transform: uppercase; }
.solutions-lead { margin-bottom: 25px; }
.solution-cards { display: grid; gap: 13px; }
.solution-card { display: grid; grid-template-columns: 48px 1fr; gap: 15px; padding: 18px 18px; background: #fff; }
.solution-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--home-gray); color: var(--home-yellow); font-size: 25px; }
.solution-card h3 { margin: 0 0 5px; color: var(--home-navy); font-family: Roboto, Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.solution-card p { margin: 0; font-size: 13px; line-height: 1.6; }
.automation-section { padding: 78px 24px 88px; }
.section-heading { margin: 0 auto 35px; text-align: center; }
.section-heading h2 { margin-bottom: 0; }
.automation-content { display: grid; grid-template-columns: minmax(250px, .42fr) minmax(0, 1fr); align-items: end; gap: 34px; }
.engineer-photo { display: block; width: 100%; height: 480px; object-fit: contain; object-position: center bottom; background: transparent; }
.automation-right { display: grid; grid-template-rows: auto auto; align-content: end; gap: 28px; min-width: 0; }
.automation-photo { display: block; width: 100%; height: auto; aspect-ratio: 750 / 465; object-fit: cover; object-position: center; background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.stat { padding: 14px 8px; text-align: center; border-right: 1px solid #dce2e9; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--home-yellow); font-family: Teko, sans-serif; font-size: 50px; font-weight: 500; line-height: .95; }
.stat span { color: var(--home-navy); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.projects-section { padding: 68px 24px 72px; background: var(--home-navy); color: #fff; text-align: center; }
.projects-section .section-heading { width: min(800px, 100%); margin-bottom: 20px; }
.projects-section .section-heading h2 { color: #fff; }
.projects-section .eyebrow { color: var(--home-yellow); }
.projects-button { margin-top: 24px; background: var(--home-yellow); }
.testimonials-section { padding: 78px 24px 84px; background: var(--home-gray); }
.testimonials-inner { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 60px; }
.testimonials-intro { position: sticky; top: 30px; }
.testimonials-intro h2 { margin-bottom: 13px; }
.testimonials-intro > p:not(.eyebrow) { margin: 0 0 24px; font-size: 16px; line-height: 1.65; }
.testimonial-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.testimonial-card { display: grid; grid-template-columns: 58px 1fr; align-content: start; gap: 13px; min-height: 205px; padding: 20px; background: #fff; box-shadow: 0 8px 22px rgb(9 36 75 / 6%); }
.testimonial-card > img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.testimonial-card blockquote { margin: 0 0 15px; color: #596575; font-size: 13px; line-height: 1.65; }
.testimonial-card p { display: grid; gap: 3px; margin: 0; }
.testimonial-card p strong { color: var(--home-navy); font-size: 13px; }
.testimonial-card p span { color: #b77b00; font-size: 11px; }
.site-footer { padding: 28px 0; background: var(--home-deep); color: #fff; }
.footer-inner { min-height: 56px; gap: 24px; }
.footer-brand img { display: block; width: 145px; filter: brightness(0) invert(1); }
.footer-inner p { margin: 0; font-size: 14px; line-height: 1.7; }
.footer-inner p a { color: var(--home-yellow); text-decoration: none; }
.footer-inner p a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) {
  .site-header { height: auto; }
  .header-inner { min-height: 86px; flex-wrap: wrap; gap: 15px; padding: 17px 22px; }
  .site-header nav { gap: 22px; }
  .welcome-inner, .solutions-inner { gap: 36px; }
  .welcome-photo, .welcome-photo img { height: 420px; min-height: 420px; }
  .welcome-services { grid-template-columns: 1fr; gap: 9px; }
  .solutions-visual { min-height: 400px; }
  .solutions-visual > img { height: 340px; }
  .testimonials-inner { gap: 32px; }
  .testimonial-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { justify-content: center; }
  .brand img { width: 155px; }
  .site-header nav { justify-content: center; gap: 16px; }
  .site-header nav > a, .service-menu > a { font-size: 13px; }
  .service-menu { position: static; }
  .service-submenu { top: 100%; left: 18px; width: min(280px, calc(100vw - 36px)); }
  .home-welcome { padding: 44px 19px 55px; }
  .welcome-inner, .solutions-inner, .automation-content, .testimonials-inner { grid-template-columns: 1fr; }
  .welcome-inner { gap: 38px; }
  .welcome-photo { min-height: 300px; border-width: 7px; box-shadow: 10px 10px 0 var(--home-navy); }
  .welcome-photo img { height: 300px; min-height: 300px; }
  .welcome-copy h1 { font-size: 48px; }
  .welcome-lead { font-size: 15px; }
  .welcome-services { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .welcome-services li { font-size: 12px; }
  .solutions-section, .automation-section, .testimonials-section { padding: 52px 19px 58px; }
  .solutions-inner { gap: 38px; }
  .solutions-visual { min-height: 345px; padding-bottom: 32px; }
  .solutions-visual > img { height: 300px; }
  .visual-caption { right: -7px; width: 88%; padding: 17px; }
  .visual-caption h2 { font-size: 28px; }
  .solutions-copy h2, .section-heading h2, .testimonials-intro h2 { font-size: 43px; }
  .solution-card { grid-template-columns: 40px 1fr; gap: 11px; padding: 15px 12px; }
  .solution-icon { width: 36px; height: 36px; }
  .automation-content { grid-template-columns: minmax(150px, .4fr) minmax(0, 1fr); align-items: end; gap: 16px; }
  .engineer-photo { height: 340px; max-height: none; object-fit: contain; }
  .automation-right { gap: 16px; }
  .automation-photo { height: auto; max-height: none; aspect-ratio: 750 / 465; object-fit: cover; }
  .stats-grid { gap: 4px; }
  .stat strong { font-size: 43px; }
  .stat span { font-size: 10px; }
  .projects-section { padding: 50px 19px; }
  .testimonials-inner { gap: 34px; }
  .testimonials-intro { position: static; }
  .testimonial-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 420px) {
  .automation-content { grid-template-columns: 1fr; }
  .engineer-photo { width: min(70%, 240px); height: 300px; margin: 0 auto; }
  .automation-photo { aspect-ratio: 750 / 465; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
