:root {
  --ink: #102a31;
  --deep: #082c35;
  --deep-2: #0d3b45;
  --water: #2f7781;
  --aqua: #b9d8d5;
  --cream: #f5f0e6;
  --paper: #fffdf8;
  --line: rgba(16, 42, 49, 0.17);
  --orange: #e95f32;
  --orange-dark: #c94720;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(5, 35, 42, 0.12);
  --radius: 3px;
  --section-space: 72px;
  --heading-space: 36px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 125px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", Arial, sans-serif; line-height: 1.6; }
img { display: block; width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.page-shell { width: var(--shell); margin-inline: auto; }
.section { padding: var(--section-space) 0; }
.systems + .fabrication { padding-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 17px 0; color: var(--white); transition: background .25s ease, padding .25s ease, box-shadow .25s ease; }
.site-header.scrolled { padding: 10px 0; background: rgba(8, 44, 53, .96); box-shadow: 0 12px 35px rgba(0, 0, 0, .12); backdrop-filter: blur(12px); }
.nav-shell { width: var(--shell); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.header-brands { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.ace-logo { width: 164px; height: 84px; object-fit: contain; }
.ace-electronics { width: 120px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; color: #f4f7fc; font-family: "Manrope", Arial, sans-serif; font-weight: 800; text-transform: uppercase; line-height: 1; text-shadow: 1px 2px 0 #10171d, -1px -1px 0 #10171d, 0 3px 6px rgba(0,0,0,.35); }
.ace-electronics-name { font-size: 42px; letter-spacing: -.055em; padding-right: .055em; }
.ace-electronics-detail { margin-top: 5px; font-size: 12px; letter-spacing: .1em; padding-left: .1em; }
.ace-electronics::after { content: ""; width: 32px; height: 2px; margin-top: 8px; background: #e32620; }
.brand img { width: 180px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 4px rgba(255,255,255,.9)) drop-shadow(0 3px 6px rgba(0,0,0,.3)); }
.brand span { font-family: "Manrope", Arial, sans-serif; font-size: .87rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 11px 18px; border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius); }
.nav-cta:hover { background: var(--white); color: var(--deep); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 9px; background: transparent; border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius); }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--white); }

.hero { position: relative; min-height: 760px; padding: 130px 0 145px; display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--deep); }
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 54%; transform: scale(1.01); }
.hero-overlay { background: linear-gradient(90deg, rgba(3,28,35,.9) 0%, rgba(3,28,35,.62) 48%, rgba(3,28,35,.1) 78%), linear-gradient(0deg, rgba(3,28,35,.54) 0%, transparent 42%); }
.hero-content { position: relative; z-index: 2; padding-bottom: 35px; container-type: inline-size; }
.eyebrow { margin: 0 0 17px; color: var(--orange-dark); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: #ffd2bd; }
h1, h2, h3 { font-family: "Manrope", Arial, sans-serif; line-height: 1.08; margin-top: 0; }
h1 { max-width: 100%; margin-bottom: 25px; letter-spacing: -.04em; }
.hero-title, .hero-repower, .hero-solar { display: block; }
.hero-title { font-size: clamp(1.5rem, 4.7cqw, 3.5rem); line-height: 1.15; }
.hero-repower { margin-top: .35em; color: #f3a07e; font-size: clamp(1.125rem, 3.6cqw, 2.75rem); line-height: 1.25; letter-spacing: -.025em; }
.hero-solar { margin-top: .65em; color: #f3a07e; font-size: clamp(1rem, 2.5cqw, 1.875rem); line-height: 1.35; letter-spacing: 0; }
.hero-phrase { display: inline-block; }
@container (max-width: 640px) {
  .hero-title { font-size: clamp(1.75rem, 7.5cqw, 2.5rem); }
  .hero-repower { font-size: clamp(1.125rem, 4.8cqw, 1.5rem); }
}
h2 { margin-bottom: 24px; font-size: clamp(2.35rem, 4.4vw, 4.3rem); letter-spacing: -.045em; }
h3 { font-size: 1.35rem; letter-spacing: -.025em; }
.hero-lede { max-width: 670px; margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.84); }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 36px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 54px; padding: 0 24px; border: 0; border-radius: var(--radius); text-decoration: none; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--orange); box-shadow: 0 12px 28px rgba(233,95,50,.22); }
.button-primary:hover { background: var(--orange-dark); }
.text-link { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.light-link { color: var(--white); }
.hero-proof { position: absolute; z-index: 2; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(170px, 220px)); background: var(--paper); color: var(--ink); }
.hero-proof div { padding: 22px 26px; border-left: 1px solid var(--line); }
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { font-family: "Manrope", Arial, sans-serif; font-size: .94rem; }
.hero-proof span { margin-top: 2px; color: #5c6d71; font-size: .78rem; }

.intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.intro h2 { max-width: 540px; margin-bottom: 0; }
.intro-copy { padding-top: 32px; border-top: 1px solid var(--line); font-size: 1.1rem; color: #4d6267; }
.intro-copy p:first-child { margin-top: 0; }

.services { background: var(--cream); }
.section-heading { display: grid; grid-template-columns: 1fr 390px; gap: 60px; align-items: end; margin-bottom: var(--heading-space); }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin: 0 0 8px; color: #5d6c70; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); box-shadow: 0 1px 0 rgba(16,42,49,.06); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.card-image { position: relative; height: 255px; overflow: hidden; background: #dfe4df; }
.card-image img { height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-image .ray-motor-photo { object-position: center 36%; }
.card-image .ray-pontoon-inset { position: absolute; right: 10px; bottom: 10px; width: 34%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border: 5px solid var(--paper); box-shadow: 0 8px 18px rgba(3,28,35,.3); }
.card-image .motor-installation-photo { object-position: center top; }
.card-image .vintage-boat-photo { object-position: center 60%; }
.card-image .throttle-back-photo { object-position: center 48%; }
.card-image .throttle-front-inset { position: absolute; right: -6px; bottom: -4px; width: 58%; height: 100%; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 10px 15px rgba(3,28,35,.45)); }
.service-card:hover .card-image img { transform: scale(1.035); }
.service-card:hover .card-image .throttle-front-inset { transform: none; }
.service-card:hover .card-image .ray-pontoon-inset { transform: none; }
.featured-card .card-image img { object-position: center 58%; }
.card-number { position: absolute; top: 16px; left: 16px; display: grid; place-items: center; width: 38px; height: 38px; color: var(--white); background: rgba(8,44,53,.88); font-size: .76rem; font-weight: 800; }
.card-copy { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.card-copy h3 { margin-bottom: 12px; }
.card-copy p { margin: 0 0 24px; color: #5c6c70; font-size: .94rem; }
.service-tag { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--water); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.project-feature { color: var(--white); background: var(--deep); }
.project-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.project-image-wrap { position: relative; }
.project-image-wrap > .project-main-image { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.project-reference { position: absolute; right: -30px; bottom: -45px; width: min(42%, 250px); margin: 0; padding: 7px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.project-reference img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.project-reference figcaption { padding: 7px 5px 3px; font-size: .72rem; font-weight: 700; }
.project-story > p:not(.eyebrow) { color: rgba(255,255,255,.73); font-size: 1.03rem; }
.project-list { list-style: none; margin: 34px 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); }
.project-list li { display: flex; gap: 20px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.project-list span { color: #f3a07e; font-size: .72rem; font-weight: 800; }

.systems-heading { margin-bottom: var(--heading-space); }
.motor-type-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: var(--heading-space); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.motor-type-grid article { padding: 28px 18px 30px; border-left: 1px solid var(--line); }
.motor-type-grid article:first-child { border-left: 0; }
.motor-type-grid span { color: var(--orange-dark); font-size: .72rem; font-weight: 800; }
.motor-type-grid h3 { margin: 18px 0 9px; }
.motor-type-grid p { margin: 0; color: #5c6c70; font-size: .88rem; }
.controller-showcase { display: grid; grid-template-columns: .82fr 1.18fr; gap: 36px; padding: 40px; color: var(--white); background: var(--deep); }
.controller-copy h2 { margin-bottom: 20px; font-size: clamp(2.2rem, 3.8vw, 3.65rem); }
.controller-copy > p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.76); }
.controller-copy > p:not(.eyebrow) + p { margin-top: 14px; }
.programming-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); }
.programming-list li { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.programming-list strong, .programming-list span { display: block; }
.programming-list strong { color: #f3a07e; font-size: .82rem; }
.programming-list span { margin-top: 3px; color: rgba(255,255,255,.7); font-size: .83rem; }
.controller-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-content: start; }
.controller-grid figure { margin: 0; overflow: hidden; color: var(--ink); background: var(--paper); }
.controller-grid img { aspect-ratio: 1; object-fit: contain; padding: 12px; background: var(--white); }
.controller-grid figcaption { padding: 15px 17px 17px; border-top: 1px solid var(--line); }
.controller-grid strong, .controller-grid span { display: block; }
.controller-grid strong { font-family: "Manrope", Arial, sans-serif; }
.controller-grid span { margin-top: 2px; color: #617176; font-size: .75rem; }
.throttle-types { margin-top: var(--heading-space); }
.throttle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.throttle-grid article { padding: 24px; background: var(--cream); }
.throttle-grid h3 { margin: 0 0 10px; }
.throttle-grid p { margin: 0; color: #5c6c70; font-size: .88rem; }
.throttle-note { margin: 16px 0 0; color: #5c6c70; font-size: .88rem; }

.fabrication { background: var(--paper); }
.fabrication-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.fabrication-card { margin: 0; overflow: hidden; background: var(--cream); }
.fabrication-card > img { height: 380px; object-fit: cover; }
.fabrication-card:first-child > img { object-fit: contain; padding: 18px; background: var(--white); }
.fabrication-card figcaption { min-height: 116px; padding: 20px 22px; border-top: 1px solid var(--line); }
.fabrication-card strong, .fabrication-card span, .fabrication-card a { display: block; }
.fabrication-card strong { font-family: "Manrope", Arial, sans-serif; }
.fabrication-card span { margin-top: 3px; color: #617176; font-size: .78rem; }
.fabrication-card a { margin-top: 8px; color: var(--water); font-size: .7rem; font-weight: 700; }
.electronics-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; color: var(--white); background: var(--deep); }
.electronics-visual > img { height: auto; object-fit: contain; background: #101d2b; }
.electronics-copy { padding: 30px 34px; }
.electronics-visual .fabrication-list { margin: 0; padding: 24px 28px; border: 0; }
.electronics-panel h3 { margin-bottom: 17px; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.electronics-panel p:not(.eyebrow) { color: rgba(255,255,255,.74); }
.retro-throttle-heading { margin: 22px 0 14px; text-align: center; font-family: "Manrope", Arial, sans-serif; font-size: 1rem; line-height: 1.4; }
.retro-throttle-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.retro-throttle-concept { margin: 0; text-align: center; }
.retro-throttle-concept img { width: 100%; height: 180px; object-fit: contain; }
.retro-throttle-concept figcaption { margin-top: 8px; }
.retro-throttle-concept strong { display: block; }
.retro-throttle-concept strong { font-size: .88rem; }
.fabrication-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 25px 0; padding: 23px 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); list-style: none; }
.fabrication-list li { position: relative; padding-left: 15px; font-size: .84rem; }
.fabrication-list li::before { content: ""; position: absolute; top: .7em; left: 0; width: 5px; height: 5px; background: var(--orange); }
.material-note { margin-bottom: 0; font-size: .79rem; }

.gallery { background: #e9efeb; }
.compact-heading { margin-bottom: var(--heading-space); }
.gallery-grid { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 300px 300px; gap: 14px; }
.gallery-item { position: relative; margin: 0; overflow: hidden; background: var(--deep); }
.gallery-item.wide { grid-row: 1 / 3; }
.gallery-item img { height: 100%; object-fit: cover; transition: transform .45s ease, opacity .45s ease; }
.gallery-item:hover img { transform: scale(1.035); opacity: .75; }
.gallery-item figcaption { position: absolute; inset: auto 0 0; padding: 45px 20px 18px; color: var(--white); background: linear-gradient(transparent, rgba(3,28,35,.88)); transform: translateY(22px); transition: transform .25s ease; }
.gallery-item:hover figcaption { transform: translateY(0); }
.gallery-item strong, .gallery-item span { display: block; }
.gallery-item span { color: rgba(255,255,255,.72); font-size: .76rem; }

.service-area { background: var(--cream); }
.operating-base { display: grid; grid-template-columns: 1.15fr .85fr; margin-bottom: 30px; color: var(--white); background: var(--deep); }
.operating-base > img { height: 430px; object-fit: cover; }
.operating-base > div { align-self: center; padding: 46px; }
.operating-base h3 { margin-bottom: 17px; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.operating-base p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.74); }
.operating-base .service-rule-note { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); font-size: .88rem; }
.service-rule-note a { color: var(--white); font-weight: 700; }
.lake-grid { display: grid; gap: 30px; }
.lake-card { display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; background: var(--paper); box-shadow: 0 1px 0 rgba(16,42,49,.08); }
.lake-media { min-width: 0; margin: 0; background: #d9dfda; }
.lake-media img { object-fit: cover; }
.lake-panorama > img { height: calc(100% - 38px); min-height: 460px; }
.lake-media figcaption { min-height: 38px; padding: 9px 14px; color: #68777a; background: #f0eee8; font-size: .66rem; }
.lake-media figcaption a { color: inherit; }
.lake-panorama { height: 100%; margin: 0; }
.lake-media-history { display: grid; grid-template-rows: 1.12fr .88fr; }
.lake-media-history figure { min-width: 0; margin: 0; }
.lake-primary-photo > img { height: 300px; }
.lake-history-row { display: grid; grid-template-columns: 1fr 1fr; }
.lake-history-row figure { border-top: 1px solid var(--paper); }
.lake-history-row figure + figure { border-left: 1px solid var(--paper); }
.lake-history-row img { height: 180px; }
.lake-history-row figcaption { min-height: 52px; }
.lake-copy { align-self: center; padding: 42px 44px 46px; }
.lake-location { margin: 0 0 9px; color: var(--orange-dark); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lake-copy h3 { margin-bottom: 15px; font-size: 1.65rem; }
.lake-copy p:not(.lake-location) { color: #53676c; }
.source-link { display: inline-block; margin-top: 8px; color: var(--water); font-size: .78rem; font-weight: 700; }

.process { background: var(--paper); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-grid article { padding: 32px 27px 34px; border-left: 1px solid var(--line); }
.process-grid article:first-child { border-left: 0; }
.process-grid span { color: var(--orange-dark); font-size: .72rem; font-weight: 800; }
.process-grid h3 { margin: 24px 0 10px; }
.process-grid p { margin: 0; color: #5c6c70; font-size: .91rem; }

.contact { color: var(--white); background: var(--deep-2); }
.contact-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 64px; align-items: start; }
.contact-copy > p:not(.eyebrow) { color: rgba(255,255,255,.74); }
.contact-tip { margin-top: 38px; padding: 20px 0 0 22px; border-top: 1px solid rgba(255,255,255,.2); border-left: 3px solid var(--orange); }
.contact-tip span { color: #f3a07e; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-tip p { margin: 7px 0 0; color: rgba(255,255,255,.7); }
.project-form { padding: 38px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.project-form label { display: block; margin-bottom: 19px; font-size: .82rem; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.project-form input, .project-form textarea, .project-form select { width: 100%; margin-top: 7px; padding: 13px 14px; color: var(--ink); background: #f5f4ef; border: 1px solid transparent; border-radius: 0; outline: none; }
.project-form input:focus, .project-form textarea:focus, .project-form select:focus { border-color: var(--water); box-shadow: 0 0 0 3px rgba(47,119,129,.12); }
.project-form textarea { resize: vertical; }
.full-button { width: 100%; }
.form-note { margin: 12px 0 0; color: #718084; font-size: .74rem; text-align: center; }
.brief-result { margin-top: 24px; padding: 19px; background: #eaf1ed; border-left: 3px solid var(--water); }
.brief-result-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.brief-result-heading button { padding: 6px 10px; color: var(--deep); background: transparent; border: 1px solid var(--water); cursor: pointer; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.brief-result pre { white-space: pre-wrap; font-family: "DM Sans", Arial, sans-serif; font-size: .82rem; line-height: 1.6; }
.brief-result > p { margin-bottom: 0; color: var(--water); font-size: .76rem; font-weight: 700; }

.site-footer { padding: 46px 0 22px; color: rgba(255,255,255,.76); background: #061f26; }
.footer-layout { display: grid; grid-template-columns: auto 1fr auto; gap: 45px; align-items: center; }
.footer-brand { color: var(--white); }
.footer-layout > p { margin: 0; }
.back-top { font-size: .82rem; font-weight: 700; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 35px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .72rem; }

@media (max-width: 1160px) {
  .nav-shell { gap: 16px; }
  .nav-toggle { display: block; flex-shrink: 0; }
  .site-nav { position: absolute; top: 100%; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .nav-cta { margin-top: 8px; color: var(--white); background: var(--deep); text-align: center; }
}

@media (max-width: 1000px) {
  .header-brands { gap: 12px; }
  .header-brands .brand img { width: 140px; }
  .ace-logo { width: 144px; height: 74px; }
  .hero-proof { grid-template-columns: repeat(3, 180px); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .project-layout { gap: 45px; }
  .motor-type-grid { grid-template-columns: repeat(2, 1fr); }
  .motor-type-grid article:nth-child(odd) { border-left: 0; }
  .motor-type-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .motor-type-grid article:last-child { grid-column: 1 / -1; }
  .controller-showcase { grid-template-columns: 1fr; }
  .electronics-panel { grid-template-columns: 1fr 1fr; }
  .electronics-copy { padding: 28px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 330px); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .process-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .contact-layout { gap: 45px; }
}

@media (max-width: 820px) {
  .nav-shell { gap: 16px; }
  .header-brands .brand img { width: 135px; }
  .ace-logo { width: 132px; height: 68px; }
  .ace-electronics { width: 100px; }
  .ace-electronics-name { font-size: 36px; }
  .ace-electronics-detail { font-size: 10px; }
  :root { --shell: min(1180px, calc(100% - 28px)); }
  :root { --section-space: 52px; --heading-space: 28px; }
  .site-header { padding: 10px 0; background: rgba(8,44,53,.93); }
  .brand img { width: 135px; height: 39px; }
  .brand span { font-size: .72rem; }
  .nav-toggle { display: block; }
  .hero { min-height: 0; height: auto; max-height: none; flex-direction: column; align-items: flex-start; padding: 110px 0 0; }
  .hero-content { padding-bottom: 48px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(3,28,35,.89), rgba(3,28,35,.38)), linear-gradient(0deg, rgba(3,28,35,.75), transparent 55%); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 28px; }
  .hero-proof { position: relative; width: 100%; margin-top: auto; grid-template-columns: 1fr; }
  .hero-proof div { display: none; padding: 16px 20px; border-left: 0; }
  .hero-proof div:first-child { display: block; }
  .intro, .section-heading, .project-layout, .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .intro-copy { padding-top: 24px; }
  .section-heading { align-items: start; margin-bottom: var(--heading-space); }
  .service-grid { grid-template-columns: 1fr; }
  .card-image { height: 280px; }
  .project-image-wrap { margin-bottom: 50px; }
  .project-reference { right: 12px; bottom: -50px; width: min(42%, 210px); }
  .controller-showcase { padding: 34px 26px; }
  .fabrication-grid { grid-template-columns: 1fr; }
  .fabrication-card > img { height: 430px; }
  .fabrication-card figcaption { min-height: 0; }
  .electronics-panel { grid-template-columns: 1fr; }
  .electronics-copy { padding: 24px 28px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 330px); }
  .gallery-item.wide { grid-row: auto; }
  .operating-base, .lake-card { grid-template-columns: 1fr; }
  .operating-base > img { height: 360px; }
  .operating-base > div { padding: 34px 28px; }
  .lake-panorama > img { height: 390px; min-height: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { border-left: 0; border-top: 1px solid var(--line); }
  .process-grid article:first-child { border-top: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .project-form { padding: 26px 20px; }
  .footer-layout { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .nav-shell { gap: 12px; }
  .header-brands { gap: 8px; }
  .header-brands .brand img { width: 96px; }
  .ace-logo { width: 112px; height: 58px; }
  .ace-electronics { width: 72px; }
  .ace-electronics-name { font-size: 29px; }
  .ace-electronics-detail { margin-top: 4px; font-size: 8px; letter-spacing: .025em; padding-left: .025em; }
  .ace-electronics::after { width: 24px; margin-top: 6px; }
  .hero { padding-top: 100px; }
  .hero-content { padding-bottom: 48px; }
  h2 { font-size: 2.3rem; }
  .motor-type-grid { grid-template-columns: 1fr; }
  .motor-type-grid article { border-left: 0; border-top: 1px solid var(--line); }
  .motor-type-grid article:first-child { border-top: 0; }
  .controller-grid { grid-template-columns: 1fr; }
  .throttle-grid { grid-template-columns: 1fr; }
  .fabrication-card > img { height: 350px; }
  .fabrication-list { grid-template-columns: 1fr; }
  .operating-base > img { height: 280px; }
  .lake-panorama > img { height: 300px; }
  .lake-primary-photo > img { height: 240px; }
  .lake-history-row { grid-template-columns: 1fr; }
  .lake-history-row figure + figure { border-left: 0; }
  .lake-history-row img { height: 210px; }
  .lake-copy { padding: 28px 24px 32px; }
}

@media (max-width: 380px) {
  .nav-shell { gap: 8px; }
  .header-brands { gap: 6px; }
  .header-brands .brand img { width: 68px; }
  .ace-logo { width: 94px; height: 49px; }
  .ace-electronics { width: 62px; }
  .ace-electronics-name { font-size: 26px; }
  .ace-electronics-detail { font-size: 7px; }
  .nav-toggle { width: 34px; padding: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (hover: none) {
  .gallery-item figcaption { transform: none; }
}
