:root {
  --navy: #061a36;
  --navy-2: #0a2c5d;
  --steel: #647184;
  --line: #dbe3ed;
  --soft: #f3f6fa;
  --white: #ffffff;
  --orange: #ff6b18;
  --orange-dark: #df5208;
  --shadow: 0 18px 45px rgba(8, 31, 61, .12);
  --content: 1500px;
}

/* Final responsive overrides: keep the next section visible below compact heroes. */
@media (min-width: 761px) and (max-width: 1100px) {
  .site-header { min-height: 64px; padding: 0 22px; }
  .hero { min-height: 430px; padding: 48px 32px; }
  .inner-hero { min-height: 400px; padding: 48px 32px; }
  .hero h1, .inner-hero h1 { font-size: 48px; }
  .hero-subtitle { font-size: 23px; }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: 58px;
    padding: 0 16px;
  }
  .brand { font-size: 22px; }
  .menu-toggle { display: block; justify-self: end; }
  .primary-nav {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    padding: 10px 18px 18px;
    background: #061a36;
  }
  .primary-nav.open { display: flex; }
  .header-actions { display: none; }
  .hero {
    min-height: 370px;
    padding: 34px 20px;
    background-position: 62% center;
  }
  .hero-content { margin: 0; max-width: 100%; }
  .hero h1, .inner-hero h1 { font-size: 36px; line-height: 1.06; }
  .hero-subtitle { margin: 14px 0 9px; font-size: 19px; }
  .hero-copy { margin-bottom: 18px; font-size: 14px; }
  .eyebrow { margin-bottom: 8px; font-size: 11px; }
  .inner-hero { min-height: 350px; padding: 34px 20px; }
  .inner-hero p:not(.eyebrow) { margin-bottom: 18px; font-size: 15px; }
  .hero .button-row, .inner-hero .button-row {
    flex-direction: row;
    align-items: center;
    gap: 9px;
  }
  .hero .btn, .inner-hero .btn { min-height: 40px; padding: 0 14px; font-size: 12px; }
  .trust-strip { margin: 0; padding: 12px 20px; }
  .trust-strip article { min-height: 64px; padding: 10px 0; }
  .trust-icon { width: 46px; height: 46px; }
  .page-band { padding-top: 44px; padding-bottom: 44px; }
  .feature-grid article img, .community-card img { height: 180px; }
  .community-card.featured { grid-column: auto; }
  .community-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .hero { min-height: 350px; }
  .inner-hero { min-height: 330px; }
  .hero h1, .inner-hero h1 { font-size: 32px; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.menu-toggle{display:none;color:#fff;background:transparent;border:1px solid #52627a;border-radius:5px;padding:8px 12px;font-weight:700}
.inner-hero{min-height:460px;display:flex;align-items:center;padding:70px max(5vw,calc((100vw - var(--content))/2));color:#fff;background:linear-gradient(90deg,rgba(3,17,37,.97),rgba(3,17,37,.72) 45%,rgba(3,17,37,.18)),var(--hero,url('assets/hero-machining.png')) center/cover no-repeat}
.inner-hero>div{max-width:720px}.inner-hero h1{margin:0 0 18px;font-size:clamp(42px,5vw,68px);line-height:1.05}.inner-hero p:not(.eyebrow){font-size:19px;max-width:620px;margin:0 0 28px}.catalog-hero{--hero:url('assets/service-sheet-metal.png')}.community-hero{--hero:url('assets/why-equipment.png')}.rfq-hero{--hero:url('assets/hero-machining.png');min-height:380px}
.page-band{padding:80px max(5vw,calc((100vw - var(--content))/2))}.page-band.soft,.soft{background:var(--soft)}.page-band>h2{font-size:38px;margin:0 0 32px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.feature-grid article,.story-grid article,.catalog-card{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:7px;box-shadow:0 10px 30px rgba(8,31,61,.07)}.feature-grid article img{width:100%;height:230px;object-fit:cover}.feature-grid article h3,.feature-grid article p{margin:0;padding:0 24px}.feature-grid article h3{padding-top:22px;font-size:22px}.feature-grid article p{padding-top:9px;padding-bottom:25px;color:var(--steel)}
.metrics{display:grid;grid-template-columns:repeat(5,1fr);max-width:var(--content);margin:0 auto;padding:30px;background:#082b59;color:#fff}.metrics article{text-align:center;border-right:1px solid #31527a}.metrics article:last-child{border:0}.metrics strong,.metrics span{display:block}.metrics strong{font-size:25px;color:#ff8a43}.steps-7{display:grid;grid-template-columns:repeat(7,1fr);gap:12px;margin-top:30px}.steps-7 article{padding:20px;background:#fff;border-left:3px solid var(--orange)}.steps-7 b{display:flex;width:32px;height:32px;align-items:center;justify-content:center;color:#fff;background:var(--navy-2);border-radius:50%}.steps-7 h3{font-size:15px}
.split-band{display:grid;grid-template-columns:1fr 1fr;align-items:stretch;background:#071d3c;color:#fff}.split-band>img{width:100%;height:100%;min-height:480px;object-fit:cover}.split-band>div{padding:70px clamp(35px,6vw,110px)}.split-band h2{font-size:38px}.tag-list{display:flex;flex-wrap:wrap;gap:12px}.tag-list span{padding:11px 15px;background:#17355c;border:1px solid #3d5778;border-radius:4px}.top-gap{margin-top:40px}.split-copy{display:grid;grid-template-columns:1fr 1fr;gap:80px}.split-copy h2{font-size:40px;margin:0}.check-list p{padding:16px 0 16px 34px;margin:0;border-bottom:1px solid var(--line);position:relative}.check-list p:before{content:'✓';position:absolute;left:0;color:var(--orange);font-weight:800}.bottom-cta{text-align:center;padding:60px 5vw;color:#fff;background:#0b3267}.bottom-cta h2{font-size:38px;margin:0 0 24px}.bottom-cta .btn{margin:5px}
.tabs{display:flex;gap:8px;overflow:auto;margin-bottom:34px;padding-bottom:4px}.tabs button{white-space:nowrap;padding:12px 17px;border:1px solid var(--line);background:#fff;color:var(--navy);font-weight:700;border-radius:4px;cursor:pointer}.tabs button.active,.tabs button:hover{color:#fff;background:var(--navy-2);border-color:var(--navy-2)}.catalog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:26px}.catalog-card{display:grid;grid-template-columns:44% 1fr}.catalog-card>img{width:100%;height:100%;min-height:330px;object-fit:cover}.catalog-card>div{padding:27px}.catalog-card h2{margin:0 0 18px}.catalog-card dl{display:grid;grid-template-columns:100px 1fr;gap:9px;margin:0 0 20px}.catalog-card dt{font-weight:700}.catalog-card dd{margin:0;color:var(--steel)}.catalog-card.expanded{outline:3px solid #ffb081}.account-cta{max-width:var(--content)}
.featured-story{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;background:#071d3c;color:#fff}.featured-story img{height:440px;width:100%;object-fit:cover}.featured-story div{padding:50px}.featured-story h2{font-size:38px}.story-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.story-grid img{height:230px;width:100%;object-fit:cover}.story-grid article div{padding:24px}.story-grid h3{font-size:22px}.video-grid,.quote-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:25px}.video-grid article{position:relative}.video-grid img{height:360px;width:100%;object-fit:cover}.video-grid h3{margin:15px 0}.play-button{position:absolute;top:145px;left:calc(50% - 32px);width:64px;height:64px;border:0;border-radius:50%;background:var(--orange);color:#fff;font-size:22px}.quote-grid blockquote{margin:0;padding:35px;background:#fff;border-left:4px solid var(--orange);font-size:20px}.quote-grid cite{display:block;margin-top:20px;font-size:14px;color:var(--steel)}
.community-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.community-card{overflow:hidden;border:1px solid var(--line);border-radius:7px;background:#fff;box-shadow:0 10px 28px rgba(8,31,61,.08)}.community-card.featured{grid-column:span 2}.community-card img{width:100%;height:220px;object-fit:cover}.community-card.featured img{height:320px}.community-card div{padding:24px}.community-card h2{font-size:21px;margin:8px 0}.community-card.featured h2{font-size:30px}.community-card span{color:var(--orange);font-weight:800}.community-card.expanded{outline:3px solid #ffb081}.filter-item[hidden]{display:none!important}
.rfq-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:36px;max-width:var(--content);margin:auto;padding:70px 30px}.rfq-form,.rfq-aside section{padding:34px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.rfq-form label{display:grid;gap:7px;font-weight:700}.rfq-form input,.rfq-form textarea,.conversation-sidebar input,.message-compose textarea{width:100%;padding:13px;border:1px solid #b9c5d4;border-radius:4px;font:inherit}.rfq-form>label{margin-top:20px}.upload-zone{padding:30px;text-align:center;border:2px dashed #9aabc0!important;background:var(--soft);cursor:pointer}.upload-zone input{border:0}.upload-zone span{font-weight:400;color:var(--steel)}.submit-rfq{width:100%;margin-top:22px}.rfq-aside{display:grid;gap:22px;align-content:start}.rfq-aside section{box-shadow:none}.rfq-aside .btn{width:100%;margin-top:10px}.success-message{padding:18px;background:#e5f5ea;color:#176b35;font-weight:700;margin-bottom:20px}
.message-page{padding:50px max(2vw,calc((100vw - 1650px)/2));background:#f1f4f8}.message-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.message-title h1{font-size:38px;margin:0}.message-layout{display:grid;grid-template-columns:280px minmax(480px,1fr) 300px;min-height:720px;background:#fff;border:1px solid var(--line)}.conversation-sidebar,.project-sidebar{padding:20px;background:#f8fafc}.conversation-sidebar{border-right:1px solid var(--line)}.new-message{width:100%;margin-bottom:15px}.conversation{display:grid;gap:5px;width:100%;padding:16px;margin-top:10px;text-align:left;border:0;border-left:3px solid transparent;background:#fff}.conversation.active{border-left-color:var(--orange);background:#eaf0f7}.conversation span{font-size:12px;color:var(--steel)}.thread{display:flex;flex-direction:column}.thread>header{display:flex;justify-content:space-between;padding:20px 25px;border-bottom:1px solid var(--line)}.thread h2,.thread p{margin:0}.status{align-self:center;padding:6px 10px;background:#fff1e7;color:#b84100;border-radius:4px}.messages{display:flex;flex:1;flex-direction:column;gap:16px;overflow:auto;padding:25px;background:#f5f7fa}.message{max-width:72%;padding:16px;border-radius:6px;background:#fff;box-shadow:0 4px 15px rgba(8,31,61,.07)}.message.customer{align-self:flex-end;background:#dcecff}.message p{margin:7px 0}.message span{font-size:11px;color:var(--steel)}.message-compose{padding:18px;border-top:1px solid var(--line)}.message-compose div{display:flex;justify-content:space-between;margin-top:10px}.project-sidebar{border-left:1px solid var(--line)}.project-sidebar section{padding-bottom:20px;border-bottom:1px solid var(--line)}.project-sidebar h2{font-size:16px}.project-sidebar a,.project-sidebar button{display:block;margin:8px 0;color:#0b5faa;background:none;border:0;padding:0}.project-sidebar dl{display:grid;grid-template-columns:80px 1fr}.project-sidebar dd{margin:0}
@media(max-width:1100px){.site-header{grid-template-columns:auto auto 1fr}.menu-toggle{display:block}.primary-nav{display:none;position:absolute;top:70px;left:0;right:0;flex-direction:column;gap:0;padding:15px 25px;background:#061a36}.primary-nav.open{display:flex}.primary-nav a{padding:13px}.primary-nav a.active:after,.primary-nav a:hover:after{display:none}.feature-grid{grid-template-columns:repeat(2,1fr)}.steps-7{grid-template-columns:repeat(4,1fr)}.message-layout{grid-template-columns:230px 1fr}.project-sidebar{display:none}.header-actions .language{display:none}}
@media(max-width:760px){.site-header{padding:0 16px}.brand{font-size:22px}.header-actions .btn{display:none}.inner-hero{min-height:430px;padding:55px 22px}.inner-hero h1{font-size:42px}.page-band{padding:55px 20px}.feature-grid,.catalog-grid,.story-grid,.video-grid,.quote-grid,.form-grid,.split-copy{grid-template-columns:1fr}.feature-grid article img{height:210px}.metrics{grid-template-columns:1fr 1fr;gap:20px}.metrics article{border:0}.steps-7{grid-template-columns:1fr 1fr}.split-band{grid-template-columns:1fr}.split-band>img{min-height:280px}.split-band>div{padding:45px 22px}.catalog-card{grid-template-columns:1fr}.featured-story{grid-template-columns:1fr}.featured-story img{height:260px}.featured-story div{padding:30px}.rfq-layout{grid-template-columns:1fr;padding:35px 15px}.rfq-form{padding:22px}.message-page{padding:25px 10px}.message-title{align-items:flex-start;gap:15px}.message-layout{grid-template-columns:1fr}.conversation-sidebar{display:none}.message{max-width:90%}.bottom-cta h2{font-size:30px}}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  min-height: 70px;
  padding: 0 clamp(24px, 3vw, 56px);
  color: var(--white);
  background: rgba(4, 18, 39, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.brand {
  font-size: 31px;
  font-weight: 800;
  white-space: nowrap;
}

.brand span {
  color: var(--orange);
  font-style: italic;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 1.8vw, 34px);
  font-size: 14px;
  font-weight: 700;
}

.primary-nav a {
  position: relative;
  padding: 26px 0 22px;
}

.primary-nav a.active::after,
.primary-nav a:hover::after {
  position: absolute;
  left: 0;
  bottom: 15px;
  width: 100%;
  height: 3px;
  content: "";
  background: var(--orange);
  border-radius: 8px;
}

.header-actions,
.button-row,
.card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language {
  min-height: 43px;
  padding: 0 18px;
  color: var(--white);
  cursor: pointer;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 6px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-orange {
  color: var(--white);
  background: var(--orange);
}

.btn-orange:hover {
  background: var(--orange-dark);
}

.btn-outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .86);
}

.btn-light {
  color: var(--navy-2);
  background: var(--white);
  border: 1px solid #a9bdd5;
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 12px;
}

.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 70px 5vw;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 17, 37, .98) 0%, rgba(5, 22, 47, .9) 34%, rgba(5, 22, 47, .18) 72%),
    url("assets/hero-machining.png") center right / cover no-repeat;
}

.hero-content {
  max-width: 650px;
  margin-left: max(0px, calc((100vw - var(--content)) / 2));
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 520px;
  margin: 22px 0 16px;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.22;
  font-weight: 800;
}

.hero-copy {
  max-width: 470px;
  margin: 0 0 28px;
  font-size: 17px;
  color: rgba(255, 255, 255, .9);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--content);
  margin: -1px auto 0;
  padding: 24px 32px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(16, 36, 63, .08);
}

.trust-strip article {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
}

.trust-strip article:last-child {
  border-right: 0;
}

.trust-icon,
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
}

.trust-icon {
  border: 0;
}

.trust-icon img,
.service-icon img,
.process-grid span img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trust-strip h2,
.trust-strip p,
.service-card h2,
.service-card p,
.process-grid h3,
.process-grid p,
.why-grid h3,
.why-grid p,
.product-grid h3 {
  margin: 0;
}

.trust-strip h2 {
  font-size: 16px;
}

.trust-strip p {
  color: #283b52;
  font-size: 14px;
}

.service-section,
.process-section,
.why-section,
.products-section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 44px 32px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-card > img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.service-card .service-icon {
  position: absolute;
  top: 221px;
  left: 26px;
  width: 74px;
  height: 74px;
  padding: 12px;
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 8px 22px rgba(7, 28, 58, .16);
}

.service-card h2 {
  padding: 54px 26px 12px;
  font-size: 26px;
}

.service-card p {
  min-height: 76px;
  padding: 0 26px;
  color: #34465b;
}

.service-card .card-actions {
  padding: 22px 26px 26px;
}

.process-section h2,
.products-section h2,
.why-section h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.process-section > h2 {
  text-align: center;
  margin-bottom: 18px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(8, 31, 61, .08);
}

.process-grid article {
  position: relative;
  padding: 9px 10px 9px 78px;
}

.process-grid span {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: transparent;
}

.process-grid span::after {
  position: absolute;
  left: -7px;
  top: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  content: attr(data-step);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  background: var(--navy-2);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(7, 28, 58, .16);
}

.process-grid h3 {
  font-size: 15px;
}

.process-grid p {
  margin-top: 5px;
  color: #42546a;
  font-size: 13px;
}

.why-content {
  display: grid;
  grid-template-columns: 1fr 47%;
  gap: 64px;
  align-items: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 30px;
}

.why-grid article {
  padding-left: 18px;
  border-left: 4px solid var(--orange);
}

.why-grid h3 {
  font-size: 17px;
}

.why-grid p {
  margin-top: 8px;
  color: #405269;
}

.why-content img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.text-link {
  color: var(--navy-2);
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.product-grid article {
  display: grid;
  grid-template-rows: 150px auto;
  align-items: center;
  justify-items: center;
  min-width: 0;
  padding: 16px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(8, 31, 61, .06);
}

.product-grid img {
  max-height: 138px;
  object-fit: contain;
}

.product-grid h3 {
  font-size: 14px;
  line-height: 1.25;
}

.account-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--content);
  margin: 28px auto 0;
  padding: 34px 56px;
  color: var(--white);
  background:
    linear-gradient(120deg, #083b82, #064994 55%, #0b6aa7);
  border-radius: 8px;
}

.account-cta h2 {
  margin: 0;
  font-size: 28px;
}

.account-cta p {
  margin: 6px 0 0;
}

.site-footer {
  margin-top: 0;
  padding: 42px 5vw 18px;
  color: var(--white);
  background: #041a34;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(4, 1fr);
  gap: 38px;
  max-width: var(--content);
  margin: 0 auto;
}

.footer-grid section {
  min-width: 0;
}

.footer-grid h2 {
  margin: 0 0 15px;
  font-size: 18px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 9px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--white);
}

.copyright {
  max-width: var(--content);
  margin: 30px auto 0;
  padding-top: 16px;
  text-align: center;
  color: rgba(255, 255, 255, .68);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .primary-nav a {
    padding: 6px 0 12px;
    white-space: nowrap;
  }

  .trust-strip,
  .process-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid,
  .why-content {
    grid-template-columns: 1fr;
  }

  .why-content img {
    order: -1;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .service-section,
  .process-section,
  .why-section,
  .products-section,
  .account-cta,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .header-actions,
  .button-row,
  .card-actions,
  .account-cta,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .hero {
    min-height: 600px;
    background:
      linear-gradient(180deg, rgba(3, 17, 37, .98) 0%, rgba(5, 22, 47, .88) 60%, rgba(5, 22, 47, .45) 100%),
      url("assets/hero-machining.png") center / cover no-repeat;
  }

  .trust-strip,
  .process-grid,
  .why-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip article:last-child {
    border-bottom: 0;
  }
}

/* Definitive tablet and phone layout overrides. */
@media (min-width: 761px) and (max-width: 1100px) {
  .site-header { min-height: 64px; padding: 0 22px; }
  .hero { min-height: 430px; padding: 48px 32px; }
  .inner-hero { min-height: 400px; padding: 48px 32px; }
  .hero h1, .inner-hero h1 { font-size: 48px; }
  .hero-subtitle { font-size: 23px; }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; gap: 10px; min-height: 58px; padding: 0 16px; }
  .brand { font-size: 22px; }
  .menu-toggle { display: block; justify-self: end; }
  .primary-nav { position: absolute; top: 58px; left: 0; right: 0; display: none; max-height: calc(100vh - 58px); overflow-y: auto; padding: 10px 18px 18px; background: #061a36; }
  .primary-nav.open { display: flex; }
  .header-actions { display: none; }
  .hero { min-height: 370px; padding: 34px 20px; background-position: 62% center; }
  .hero-content { max-width: 100%; margin: 0; }
  .hero h1, .inner-hero h1 { font-size: 36px; line-height: 1.06; }
  .hero-subtitle { margin: 14px 0 9px; font-size: 19px; }
  .hero-copy { margin-bottom: 18px; font-size: 14px; }
  .eyebrow { margin-bottom: 8px; font-size: 11px; }
  .inner-hero { min-height: 350px; padding: 34px 20px; }
  .inner-hero p:not(.eyebrow) { margin-bottom: 18px; font-size: 15px; }
  .hero .button-row, .inner-hero .button-row { flex-direction: row; align-items: center; gap: 9px; }
  .hero .btn, .inner-hero .btn { min-height: 40px; padding: 0 14px; font-size: 12px; }
  .trust-strip { margin: 0; padding: 12px 20px; }
  .trust-strip article { min-height: 64px; padding: 10px 0; }
  .trust-icon { width: 46px; height: 46px; }
  .page-band { padding-top: 44px; padding-bottom: 44px; }
  .feature-grid article img, .community-card img { height: 180px; }
  .community-card.featured { grid-column: auto; }
  .community-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .hero { min-height: 350px; }
  .inner-hero { min-height: 330px; }
  .hero h1, .inner-hero h1 { font-size: 32px; }
}
