:root {
  --navy-950: #061a2e;
  --navy-900: #0b2b4b;
  --navy-800: #123b61;
  --blue-600: #1e6995;
  --blue-100: #dceaf2;
  --orange: #59b8c4;
  --orange-dark: #0b7285;
  --paper: #f5f7f8;
  --white: #ffffff;
  --ink: #15283a;
  --muted: #5c6c78;
  --line: #d5dde2;
  --shell: min(1180px, calc(100% - 40px));
  --heading: "Roboto Slab", Georgia, serif;
  --sans: "Libre Franklin", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 1rem; line-height: 1.65; }
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 999; padding: 10px 14px; color: var(--navy-950); background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.contact-bar { color: #d7e4ec; background: var(--navy-950); font-size: .76rem; }
.contact-bar-inner { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact-bar a { color: var(--white); font-weight: 600; text-decoration: none; }
.contact-bar a::before { content: "✉"; margin-right: 8px; color: var(--orange); }

.site-header { position: relative; z-index: 20; color: var(--navy-900); background: var(--white); border-bottom: 1px solid var(--line); }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy-900); text-decoration: none; }
.brand-mark { position: relative; width: 46px; height: 46px; display: grid; place-items: center; color: var(--navy-900); border: 2px solid var(--navy-900); font-weight: 800; }
.brand-mark span { margin-left: -9px; font-size: 1.08rem; }
.brand-mark i { position: absolute; right: 7px; color: var(--orange-dark); font-style: normal; font-size: .68rem; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-family: var(--heading); font-size: 1.25rem; letter-spacing: -.03em; }
.brand-copy small { margin-top: 6px; color: #687885; font-size: .57rem; font-weight: 700; letter-spacing: .28em; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .84rem; font-weight: 700; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.nav-cta):hover { color: var(--orange-dark); }
.nav-cta { min-height: 46px; display: inline-flex; align-items: center; padding: 0 18px; color: var(--navy-950); background: var(--orange); }
.nav-cta:hover { background: #72c8d1; }
.menu-button { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--navy-900); }

.hero { position: relative; min-height: 640px; overflow: hidden; color: var(--white); background: linear-gradient(110deg, var(--navy-950) 0%, #0a2a48 52%, #123d61 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,26,46,.98) 0%, rgba(6,26,46,.88) 47%, rgba(6,26,46,.2) 100%), url("hero-engineering.webp") center right / cover no-repeat; }
.hero-grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.55), transparent); }
.hero-layout { position: relative; z-index: 1; min-height: 640px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; padding: 72px 0; }
.hero-copy { max-width: 700px; }
.eyebrow, .section-kicker { margin: 0 0 17px; color: var(--blue-600); font-size: .73rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow { color: #8ed8dc; }
.hero h1 { margin: 0; font-family: var(--heading); font-size: clamp(2.9rem, 5vw, 5rem); line-height: 1.05; letter-spacing: -.035em; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-lede { max-width: 650px; margin: 27px 0 0; color: #cedbe4; font-size: 1.1rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 31px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 22px; border: 1px solid transparent; font-size: .84rem; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy-950); background: var(--orange); }
.button-primary:hover { background: #72c8d1; }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.62); background: rgba(6,26,46,.2); }
.button-ghost:hover { color: var(--navy-950); background: var(--white); }
.service-area { max-width: 640px; margin: 27px 0 0; padding-left: 18px; color: #adbfcc; border-left: 3px solid var(--orange); font-size: .79rem; line-height: 1.55; }
.hero-visual { position: relative; min-height: 420px; }
.drawing-stamp { position: absolute; display: grid; gap: 3px; min-width: 150px; padding: 13px 15px; color: var(--white); background: rgba(6,26,46,.83); border: 1px solid rgba(255,255,255,.4); box-shadow: 0 12px 30px rgba(0,0,0,.23); }
.drawing-stamp span { color: #a8bfce; font-size: .56rem; letter-spacing: .17em; }
.drawing-stamp strong { font-size: .69rem; letter-spacing: .07em; }
.drawing-stamp-top { top: 38px; right: 0; }
.drawing-stamp-bottom { right: 33px; bottom: 35px; border-color: var(--orange); }

.trust-bar { color: var(--white); background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.13); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid div { min-height: 105px; display: flex; align-items: center; gap: 14px; padding: 20px 25px; border-right: 1px solid rgba(255,255,255,.15); }
.trust-grid div:first-child { border-left: 1px solid rgba(255,255,255,.15); }
.trust-grid strong { color: var(--orange); font-family: var(--heading); font-size: 1.45rem; }
.trust-grid span { color: #c3d0da; font-size: .73rem; font-weight: 600; line-height: 1.35; text-transform: uppercase; letter-spacing: .04em; }

.section { padding: 104px 0; }
.section-short { padding: 76px 0; }
.intro { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: .55fr 1.7fr; gap: 74px; align-items: start; }
.intro h2, .section h2, .experience-band h2 { margin: 0; color: var(--navy-900); font-family: var(--heading); font-size: clamp(2.15rem, 4vw, 3.5rem); line-height: 1.13; letter-spacing: -.03em; }
.intro p:last-child { max-width: 800px; margin: 23px 0 0; color: var(--muted); font-size: 1.04rem; }
.section-heading { margin-bottom: 46px; }
.section-heading.centered { max-width: 810px; margin-inline: auto; text-align: center; }
.section-heading.centered > p:last-child { max-width: 680px; margin: 18px auto 0; color: var(--muted); }
.section-heading.compact { margin-bottom: 50px; }
.section-heading.split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 90px; align-items: end; }
.section-heading.split h2 { color: var(--white); }
.section-heading.split > p { margin: 0; color: #aebfcb; }

.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 410px; padding: 34px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 26px rgba(9,40,67,.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--blue-600); }
.service-card.featured::after { background: var(--orange); }
.service-card:hover { transform: translateY(-5px); border-color: #aabac4; box-shadow: 0 19px 42px rgba(9,40,67,.1); }
.service-number { position: absolute; top: 25px; right: 27px; color: #94a2ad; font-size: .67rem; letter-spacing: .13em; }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 29px; color: var(--navy-900); background: var(--blue-100); border: 1px solid #acc8d8; font-family: var(--heading); font-weight: 700; }
.featured .service-icon { background: #e4f4f6; border-color: #9ddbe0; }
.service-card h3 { margin: 0 0 13px; color: var(--navy-900); font-family: var(--heading); font-size: 1.36rem; line-height: 1.25; }
.service-card p { margin: 0; color: var(--muted); font-size: .91rem; }
.service-card ul { margin: 22px 0 0; padding: 0; list-style: none; }
.service-card li { position: relative; margin-top: 8px; padding-left: 16px; color: #3d5669; font-size: .76rem; font-weight: 600; }
.service-card li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 2px; background: var(--orange-dark); }

.clients { color: var(--white); background: var(--navy-900); }
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.client-grid article { min-height: 260px; padding: 30px 27px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.client-grid span { color: var(--orange); font-size: .66rem; letter-spacing: .16em; }
.client-grid h3 { margin: 42px 0 13px; font-family: var(--heading); font-size: 1.25rem; }
.client-grid p { margin: 0; color: #adc0cd; font-size: .84rem; }

.process { background: var(--white); }
.process-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; counter-reset: process; }
.process-grid li { position: relative; min-height: 250px; padding: 0 27px 25px; border-left: 1px solid var(--line); }
.process-grid li:last-child { border-right: 1px solid var(--line); }
.process-grid li::before { content: ""; position: absolute; top: 28px; left: 56px; right: -1px; height: 1px; background: var(--line); }
.process-grid li:last-child::before { display: none; }
.process-grid > li > span { position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; color: var(--navy-950); background: var(--orange); border-radius: 50%; font-family: var(--heading); font-weight: 700; }
.process-grid h3 { margin: 27px 0 10px; color: var(--navy-900); font-family: var(--heading); font-size: 1.15rem; }
.process-grid p { margin: 0; color: var(--muted); font-size: .84rem; }

.experience-band { padding: 90px 0; color: var(--white); background: linear-gradient(115deg, #0d3557, #071e35); }
.experience-band h2 { color: var(--white); }
.experience-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 85px; align-items: start; }
.sector-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.sector-grid div { display: grid; gap: 7px; min-height: 120px; padding: 24px 20px 24px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.sector-grid div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.18); }
.sector-grid div:nth-child(even) { padding-left: 24px; }
.sector-grid strong { color: var(--orange); font-family: var(--heading); font-size: 1.18rem; }
.sector-grid span { color: #afc0cd; font-size: .82rem; }

.about { background: #eef2f4; }
.about-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: center; }
.principal-card { min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; padding: 38px; color: var(--white); background: linear-gradient(145deg, var(--navy-900), var(--navy-950)); border-top: 6px solid var(--orange); box-shadow: 0 22px 55px rgba(8,36,61,.16); }
.principal-monogram { width: 134px; height: 134px; display: grid; place-items: center; margin-bottom: 80px; border: 1px solid rgba(255,255,255,.45); font-family: var(--heading); font-size: 2.8rem; }
.principal-card p { margin: 0 0 5px; color: #aabeca; font-size: .69rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.principal-card strong { font-family: var(--heading); font-size: 1.35rem; line-height: 1.35; }
.about-copy > p:not(.section-kicker) { margin: 20px 0 0; color: var(--muted); }
.credential-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 31px; }
.credential-cards div { min-height: 78px; display: grid; align-content: center; padding: 13px; background: var(--white); border: 1px solid var(--line); }
.credential-cards strong { color: var(--navy-900); font-family: var(--heading); font-size: .95rem; }
.credential-cards span { color: var(--muted); font-size: .68rem; text-transform: uppercase; }

.faq { background: var(--white); }
.faq-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: 80px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 44px 24px 0; color: var(--navy-900); cursor: pointer; font-family: var(--heading); font-size: 1.07rem; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 19px; right: 8px; color: var(--orange-dark); font-family: var(--sans); font-size: 1.5rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 720px; margin: -4px 0 25px; color: var(--muted); font-size: .89rem; }

.contact { background: var(--paper); }
.contact-card { display: grid; grid-template-columns: 1.05fr .95fr; gap: 75px; padding: 62px; color: var(--white); background: linear-gradient(120deg, var(--navy-900), #154a70); border-left: 7px solid var(--orange); box-shadow: 0 22px 55px rgba(9,40,67,.16); }
.contact-card h2 { color: var(--white); }
.section-kicker.light { color: #8ed8dc; }
.contact-action p { margin: 5px 0 24px; color: #c2d0da; }
.contact-action .button { overflow-wrap: anywhere; }

.site-footer { color: #a8b9c5; background: var(--navy-950); }
.footer-main { display: grid; grid-template-columns: 1.5fr .6fr .6fr; gap: 80px; padding: 60px 0 45px; }
.footer-brand { color: var(--white); }
.footer-brand .brand-mark { color: var(--white); border-color: rgba(255,255,255,.5); }
.footer-brand .brand-copy small { color: #9eb1be; }
.footer-main > div:first-child p { max-width: 390px; margin: 20px 0 0; font-size: .82rem; }
.footer-main > div:not(:first-child) { display: grid; align-content: start; gap: 8px; }
.footer-main > div:not(:first-child) strong { margin-bottom: 8px; color: var(--white); font-family: var(--heading); font-size: .88rem; }
.footer-main a:not(.brand) { font-size: .75rem; text-decoration: none; }
.footer-main a:not(.brand):hover { color: var(--orange); }
.footer-legal { min-height: 76px; display: flex; justify-content: space-between; gap: 40px; align-items: center; border-top: 1px solid rgba(255,255,255,.13); font-size: .67rem; }
.footer-legal p { margin: 0; }
.footer-legal p:last-child { max-width: 620px; text-align: right; }

@media (max-width: 1000px) {
  .site-nav { gap: 18px; }
  .hero-layout { grid-template-columns: 1fr .52fr; gap: 30px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .process-grid li:nth-child(2)::before, .process-grid li:last-child::before { display: none; }
  .process-grid li:nth-child(2) { border-right: 1px solid var(--line); }
  .about-layout, .experience-layout { gap: 50px; }
}

@media (max-width: 790px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .contact-bar-inner { justify-content: flex-end; }
  .contact-bar span { display: none; }
  .nav-wrap { min-height: 74px; }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 74px; left: 0; right: 0; display: none; align-items: stretch; gap: 0; padding: 10px 14px 17px; color: var(--navy-900); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 16px 30px rgba(8,36,61,.13); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 13px; }
  .nav-cta { margin-top: 6px; justify-content: center; }
  .hero { min-height: auto; }
  .hero::before { background: linear-gradient(90deg, rgba(6,26,46,.97), rgba(6,26,46,.86)), url("hero-engineering.webp") center / cover no-repeat; }
  .hero-layout { min-height: 660px; grid-template-columns: 1fr; padding: 68px 0; }
  .hero-visual { display: none; }
  .hero h1 { font-size: clamp(2.55rem, 10.8vw, 4.2rem); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid div:nth-child(3) { border-left: 1px solid rgba(255,255,255,.15); border-top: 1px solid rgba(255,255,255,.15); }
  .trust-grid div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.15); }
  .section { padding: 76px 0; }
  .section-short { padding: 61px 0; }
  .intro-grid, .section-heading.split, .experience-layout, .about-layout, .faq-layout, .contact-card, .footer-main { grid-template-columns: 1fr; }
  .intro-grid, .section-heading.split, .experience-layout, .about-layout, .faq-layout, .contact-card { gap: 38px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .client-grid { grid-template-columns: 1fr; }
  .client-grid article { min-height: 220px; }
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-grid li, .process-grid li:nth-child(2), .process-grid li:last-child { min-height: auto; padding: 0 0 33px 78px; border: 0; }
  .process-grid li::before { display: block !important; top: 56px; bottom: 0; left: 28px; right: auto; width: 1px; height: auto; }
  .process-grid li:last-child::before { display: none !important; }
  .process-grid > li > span { position: absolute; left: 0; top: 0; }
  .process-grid h3 { margin-top: 0; }
  .principal-card { min-height: 340px; }
  .principal-monogram { margin-bottom: 52px; }
  .contact-card { width: 100%; padding: 43px 27px; }
  .footer-main { gap: 36px; }
  .footer-legal { padding: 22px 0; align-items: flex-start; flex-direction: column; gap: 10px; }
  .footer-legal p:last-child { text-align: left; }
}

@media (max-width: 480px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; text-align: center; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid div, .trust-grid div:nth-child(3) { min-height: 86px; border-left: 1px solid rgba(255,255,255,.15); border-top: 1px solid rgba(255,255,255,.15); }
  .trust-grid div:first-child { border-top: 0; }
  .sector-grid, .credential-cards { grid-template-columns: repeat(2, 1fr); }
  .sector-grid div:nth-child(even) { padding-left: 16px; }
  .sector-grid div { padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
