/* Shared hero proportions. Reference: case-studies.html (70vh mobile, 80vh desktop). */
.site-hero-standard {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: auto !important;
  min-height: 70vh !important;
  min-height: 70svh !important;
  max-height: none !important;
  overflow: hidden;
}

@media (min-width: 48rem) {
  .site-hero-standard {
    height: 80vh !important;
    min-height: 0 !important;
  }
}

@media (min-width: 48rem) and (max-height: 43.75rem) {
  .site-hero-standard {
    height: 80vh !important;
    min-height: 0 !important;
  }
}

/* 3D printing: dense copy, technology badges, stats and supporting image. */
.hero-3d-printing > .relative.max-w-7xl {
  padding-top: clamp(2rem, 5vh, 3.5rem) !important;
  padding-bottom: clamp(2rem, 5vh, 3.5rem) !important;
}
.hero-3d-printing .grid.lg\:grid-cols-2 { gap: clamp(2rem, 4vw, 4rem) !important; }
.hero-3d-printing nav { margin-bottom: 1.5rem !important; }
.hero-3d-printing h1 {
  max-width: 16ch;
  margin-bottom: 1.25rem !important;
  font-size: clamp(2.5rem, 4.3vw, 3.75rem) !important;
  line-height: 1.02 !important;
}
.hero-3d-printing h1 + p {
  margin-bottom: 1.4rem !important;
  font-size: clamp(1rem, 1.3vw, 1.1rem) !important;
  line-height: 1.55 !important;
}
.hero-3d-printing h1 + p + div { margin-bottom: 1.4rem !important; }
.hero-3d-printing .tech-badge { padding: .65rem 1rem !important; }
.hero-3d-printing .magnetic-btn,
.hero-3d-printing .magnetic-btn + a { padding: .85rem 1.5rem !important; }
.hero-3d-printing .float-stat { padding: 1.15rem !important; }
.hero-3d-printing .float-stat > div:first-child { font-size: 2rem !important; }
.hero-3d-printing .mt-6 img { height: 11rem !important; }

/* Precision CNC: compact the supporting copy while preserving the reticle. */
.hero-cnc-precision > .relative.max-w-7xl {
  width: 100%;
  padding-top: clamp(2rem, 4vh, 3rem) !important;
  padding-bottom: clamp(2rem, 4vh, 3rem) !important;
}
.hero-cnc-precision nav { margin-bottom: 1.5rem !important; }
.hero-cnc-precision h1 {
  margin-bottom: 1.1rem !important;
  font-size: clamp(2.65rem, 4.2vw, 3.8rem) !important;
  line-height: 1 !important;
}
.hero-cnc-precision h1 + p {
  font-size: clamp(1rem, 1.25vw, 1.1rem) !important;
  line-height: 1.55 !important;
}
.hero-cnc-precision h1 + p + div { margin-top: 1.25rem !important; }
.hero-cnc-precision h1 + p + div + div { margin-top: 1.5rem !important; }
.hero-cnc-precision .aspect-square { max-width: 21rem !important; }

/* 5-axis CNC: retain the animated gimbal with a shorter copy stack. */
.hero-5-axis > .relative.max-w-7xl {
  width: 100%;
  padding-top: clamp(2rem, 4vh, 3rem) !important;
  padding-bottom: clamp(2rem, 4vh, 3rem) !important;
}
.hero-5-axis nav { margin-bottom: 1.5rem !important; }
.hero-5-axis h1 {
  max-width: 16ch;
  margin-bottom: 1.1rem !important;
  font-size: clamp(2.6rem, 4vw, 3.65rem) !important;
  line-height: 1 !important;
}
.hero-5-axis h1 + p {
  font-size: clamp(1rem, 1.22vw, 1.08rem) !important;
  line-height: 1.5 !important;
}
.hero-5-axis h1 + p + div { margin-top: 1.2rem !important; }
.hero-5-axis h1 + p + div + div { margin-top: 1.45rem !important; }

/* Micromachining: long title needs a wider measure and smaller display scale. */
.hero-micro-machining > .relative.max-w-7xl {
  width: 100%;
  padding-top: clamp(2rem, 4vh, 3rem) !important;
  padding-bottom: clamp(2rem, 4vh, 3rem) !important;
}
.hero-micro-machining nav { margin-bottom: 1.5rem !important; }
.hero-micro-machining h1 {
  max-width: 20ch;
  margin-bottom: 1.1rem !important;
  font-size: clamp(2.45rem, 3.7vw, 3.35rem) !important;
  line-height: 1.02 !important;
}
.hero-micro-machining h1 + p {
  font-size: clamp(1rem, 1.18vw, 1.06rem) !important;
  line-height: 1.52 !important;
}
.hero-micro-machining h1 + p + div { margin-top: 1.15rem !important; }
.hero-micro-machining h1 + p + div + div { margin-top: 1.4rem !important; }
.hero-micro-machining .loupe-host { max-width: 22rem !important; }

@media (max-width: 63.99rem) {
  .hero-3d-printing > .relative.max-w-7xl,
  .hero-cnc-precision > .relative.max-w-7xl,
  .hero-5-axis > .relative.max-w-7xl,
  .hero-micro-machining > .relative.max-w-7xl {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Robotic parts: medium-length title and compact articulated-arm visual. */
.hero-robotic-parts > .relative.max-w-7xl {
  width: 100%;
  padding-top: clamp(2rem, 4vh, 3rem) !important;
  padding-bottom: clamp(2rem, 4vh, 3rem) !important;
}
.hero-robotic-parts nav { margin-bottom: 1.4rem !important; }
.hero-robotic-parts h1 {
  max-width: 18ch;
  margin-bottom: 1rem !important;
  font-size: clamp(2.55rem, 3.9vw, 3.5rem) !important;
  line-height: 1 !important;
}
.hero-robotic-parts h1 + p { font-size: 1.08rem !important; line-height: 1.52 !important; }
.hero-robotic-parts h1 + p + div { margin-top: 1.2rem !important; }
.hero-robotic-parts h1 + p + div + div { margin-top: 1.45rem !important; }
.hero-robotic-parts .lg\:col-span-5 > div { max-width: 22rem; margin-inline: auto; padding: 1.25rem !important; }

/* Aerospace: balance a long technical deck against the trajectory graphic. */
.hero-aerospace-machining > .relative.max-w-7xl {
  width: 100%;
  padding-top: clamp(2rem, 4vh, 3rem) !important;
  padding-bottom: clamp(2rem, 4vh, 3rem) !important;
}
.hero-aerospace-machining nav { margin-bottom: 1.4rem !important; }
.hero-aerospace-machining h1 {
  max-width: 18ch;
  margin-bottom: 1rem !important;
  font-size: clamp(2.5rem, 3.75vw, 3.35rem) !important;
  line-height: 1.01 !important;
}
.hero-aerospace-machining h1 + p { font-size: 1.04rem !important; line-height: 1.5 !important; }
.hero-aerospace-machining h1 + p + div { margin-top: 1.15rem !important; }
.hero-aerospace-machining h1 + p + div + div { margin-top: 1.4rem !important; }
.hero-aerospace-machining .aspect-square { max-width: 20rem !important; }

/* Medical CNC: longest copy in this template, with a low-profile ECG panel. */
.hero-medical-cnc > .relative.max-w-7xl {
  width: 100%;
  padding-top: clamp(2rem, 4vh, 3rem) !important;
  padding-bottom: clamp(2rem, 4vh, 3rem) !important;
}
.hero-medical-cnc nav { margin-bottom: 1.35rem !important; }
.hero-medical-cnc h1 {
  max-width: 20ch;
  margin-bottom: .95rem !important;
  font-size: clamp(2.4rem, 3.5vw, 3.15rem) !important;
  line-height: 1.02 !important;
}
.hero-medical-cnc h1 + p { font-size: 1.02rem !important; line-height: 1.48 !important; }
.hero-medical-cnc h1 + p + div { margin-top: 1.1rem !important; }
.hero-medical-cnc h1 + p + div + div { margin-top: 1.35rem !important; }
.hero-medical-cnc .aspect-\[4\/3\] { max-width: 22rem !important; padding: 1.15rem !important; }

/* CNC parts manufacturer: give the long title more measure than the diagram. */
.hero-cnc-parts-maker > .relative.max-w-7xl {
  width: 100%;
  padding-top: clamp(2rem, 4vh, 3rem) !important;
  padding-bottom: clamp(2rem, 4vh, 3rem) !important;
}
.hero-cnc-parts-maker nav { margin-bottom: 1.25rem !important; }
.hero-cnc-parts-maker h1 {
  max-width: 20ch;
  margin-bottom: .9rem !important;
  font-size: clamp(2.35rem, 3.35vw, 3.05rem) !important;
  line-height: 1.02 !important;
}
.hero-cnc-parts-maker h1 + p { font-size: 1rem !important; line-height: 1.45 !important; }
.hero-cnc-parts-maker h1 + p + div { margin-top: 1.05rem !important; }
.hero-cnc-parts-maker h1 + p + div + div { margin-top: 1.3rem !important; }
.hero-cnc-parts-maker .lg\:col-span-5 > div { padding: 1.1rem !important; }
@media (min-width: 64rem) {
  .hero-cnc-parts-maker .lg\:col-span-7 { grid-column: span 8 / span 8 !important; }
  .hero-cnc-parts-maker .lg\:col-span-5 { grid-column: span 4 / span 4 !important; }
}

/* Metal parts manufacturer: reduce outer padding and certification panel mass. */
.hero-metal-parts-maker {
  padding-top: clamp(2.25rem, 5vh, 3.5rem) !important;
  padding-bottom: clamp(2.25rem, 5vh, 3.5rem) !important;
}
.hero-metal-parts-maker nav { margin-bottom: 1.35rem !important; }
.hero-metal-parts-maker h1 {
  max-width: 20ch;
  margin-bottom: 1rem !important;
  font-size: clamp(2.4rem, 3.55vw, 3.2rem) !important;
  line-height: 1.02 !important;
}
.hero-metal-parts-maker h1 + p { font-size: 1.03rem !important; line-height: 1.5 !important; }
.hero-metal-parts-maker h1 + p + div { margin-top: 1.15rem !important; }
.hero-metal-parts-maker h1 + p + div + div { margin-top: 1.4rem !important; }
.hero-metal-parts-maker .lg\:col-span-5 > div { max-width: 22rem; margin-inline: auto; padding: 1.2rem !important; }
.hero-metal-parts-maker .lg\:col-span-5 .p-6 { padding: 1rem !important; }

/* Custom metal fabrication: preserve the process chain at a lower visual weight. */
.hero-custom-metal > .relative.max-w-7xl {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.hero-custom-metal {
  padding-top: clamp(2.25rem, 5vh, 3.5rem) !important;
  padding-bottom: clamp(2.25rem, 5vh, 3.5rem) !important;
}
.hero-custom-metal nav { margin-bottom: 1.35rem !important; }
.hero-custom-metal h1 {
  max-width: 18ch;
  margin-bottom: 1rem !important;
  font-size: clamp(2.45rem, 3.7vw, 3.3rem) !important;
  line-height: 1.02 !important;
}
.hero-custom-metal h1 + p { font-size: 1.03rem !important; line-height: 1.5 !important; }
.hero-custom-metal h1 + p + div { margin-top: 1.15rem !important; }
.hero-custom-metal h1 + p + div + div { margin-top: 1.4rem !important; }
.hero-custom-metal .lg\:col-span-5 > div { max-width: 23rem; margin-inline: auto; padding: 1.15rem !important; }

/* Materials index: lower-density split with a material grade matrix panel. */
.hero-materials > .relative.max-w-7xl {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-top: clamp(2rem, 4vh, 3rem) !important;
  padding-bottom: clamp(2rem, 4vh, 3rem) !important;
}
.hero-materials nav { margin-bottom: 1.35rem !important; }
.hero-materials h1 {
  max-width: 18ch;
  margin-bottom: 1rem !important;
  font-size: clamp(2.5rem, 3.8vw, 3.4rem) !important;
  line-height: 1.02 !important;
}
.hero-materials h1 + p {
  margin-bottom: 0 !important;
  font-size: clamp(1rem, 1.2vw, 1.06rem) !important;
  line-height: 1.5 !important;
}
.hero-materials h1 + p + a { margin-top: 1.4rem !important; padding: .8rem 1.4rem !important; }
.hero-materials .hero-svg-panel { max-width: 23rem; margin-inline: auto; }

/* Plastic CNC: text-over-image hero aligned with superalloy (no right column). */
.hero-plastic-cnc > .absolute.inset-0 { height: 100% !important; }
.hero-plastic-cnc > .relative.z-10.max-w-7xl {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-top: clamp(2.5rem, 5vh, 3.5rem) !important;
  padding-bottom: clamp(2.5rem, 5vh, 3.5rem) !important;
}
.hero-plastic-cnc h1 {
  max-width: 18ch;
  margin-bottom: 1.1rem !important;
  font-size: clamp(2.6rem, 4vw, 3.6rem) !important;
  line-height: 1.03 !important;
}
.hero-plastic-cnc h1 + p {
  margin-bottom: 1.5rem !important;
  font-size: clamp(1rem, 1.25vw, 1.1rem) !important;
  line-height: 1.55 !important;
}
.hero-plastic-cnc h1 + p + .flex { gap: 1rem !important; }
.hero-plastic-cnc h1 + p + .flex a { padding: .75rem 1.4rem !important; }

/* Metal CNC: compact specifications and the four-image material preview. */
.hero-metal-cnc > .relative.max-w-7xl {
  width: 100%;
  padding-top: clamp(2.25rem, 5vh, 3.5rem) !important;
  padding-bottom: clamp(2.25rem, 5vh, 3.5rem) !important;
}
.hero-metal-cnc .inline-flex.mb-6 { margin-bottom: 1rem !important; }
.hero-metal-cnc h1 {
  margin-bottom: 1rem !important;
  font-size: clamp(2.6rem, 3.8vw, 3.4rem) !important;
  line-height: 1.03 !important;
}
.hero-metal-cnc h1 + p { margin-bottom: 1.2rem !important; font-size: 1.04rem !important; line-height: 1.5 !important; }
.hero-metal-cnc h1 + p + .grid { margin-bottom: 1.2rem !important; gap: .65rem !important; }
.hero-metal-cnc h1 + p + .grid > div { padding: .65rem !important; }
.hero-metal-cnc h1 + p + .grid .text-2xl { font-size: 1.25rem !important; }
.hero-metal-cnc .reveal-left > .flex a { padding: .8rem 1.35rem !important; }
.hero-metal-cnc .reveal-right .h-48 { height: 8rem !important; }

/* Carbon fiber: technical rows replace the stacked floating-card treatment. */
.hero-carbon-fiber > .relative.max-w-7xl {
  width: 100%;
  padding-top: clamp(2.25rem, 5vh, 3.5rem) !important;
  padding-bottom: clamp(2.25rem, 5vh, 3.5rem) !important;
}
.hero-carbon-fiber .inline-flex.mb-6 { margin-bottom: 1rem !important; }
.hero-carbon-fiber h1 {
  max-width: 16ch;
  margin-bottom: 1rem !important;
  font-size: clamp(2.5rem, 3.7vw, 3.3rem) !important;
  line-height: 1.02 !important;
}
.hero-carbon-fiber h1 + p { margin-bottom: 1.25rem !important; font-size: 1.04rem !important; line-height: 1.5 !important; }
.hero-carbon-fiber h1 + p + .flex { margin-bottom: 1.25rem !important; }
.hero-carbon-fiber h1 + p + .flex a { padding: .8rem 1.4rem !important; }
.hero-carbon-fiber .grid.grid-cols-3 { gap: 1.25rem !important; }
.hero-carbon-fiber .grid.grid-cols-3 .text-3xl { font-size: 1.45rem !important; }
.hero-carbon-fiber .lg\:col-span-5 .space-y-6 { row-gap: 0 !important; }
.hero-carbon-fiber .lg\:col-span-5 .space-y-6 > div {
  padding: 1rem 0 !important;
  background: transparent !important;
  border-top: 1px solid rgba(14, 15, 17, .16);
}
.hero-carbon-fiber .lg\:col-span-5 .space-y-6 > div:last-child { border-bottom: 1px solid rgba(14, 15, 17, .16); }
.hero-carbon-fiber .lg\:col-span-5 .mb-3 { margin-bottom: .4rem !important; }
.hero-carbon-fiber .lg\:col-span-5 .w-12 { width: 2.25rem !important; height: 2.25rem !important; }

/* Kovar: a true split hero with equal-height copy and image. */
.hero-kovar > .max-w-7xl,
.hero-kovar > .max-w-7xl > .grid { height: 100%; }
.hero-kovar .lg\:pr-12 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(2rem, 5vh, 3.5rem) !important;
  padding-bottom: clamp(2rem, 5vh, 3.5rem) !important;
}
.hero-kovar .kovar-line { margin-bottom: 1rem !important; }
.hero-kovar h1 {
  margin-bottom: 1rem !important;
  font-size: clamp(2.5rem, 3.7vw, 3.3rem) !important;
  line-height: 1.04 !important;
}
.hero-kovar h1 + p { margin-bottom: .8rem !important; font-size: 1.05rem !important; line-height: 1.5 !important; }
.hero-kovar h1 + p + p { margin-bottom: 1.2rem !important; font-size: .95rem !important; line-height: 1.5 !important; }
.hero-kovar .grid.grid-cols-3 { margin-top: 1.4rem !important; padding-top: 1.25rem !important; }

/* Industries: restrained copy and a single proportioned production image. */
.hero-industries {
  padding-top: clamp(2.5rem, 6vh, 4rem) !important;
  padding-bottom: clamp(2.5rem, 6vh, 4rem) !important;
}
.hero-industries h1 {
  max-width: 20ch;
  margin-bottom: 1rem !important;
  font-size: clamp(2.55rem, 3.8vw, 3.4rem) !important;
  line-height: 1.04 !important;
}
.hero-industries h1 + p { margin-bottom: .8rem !important; font-size: 1.04rem !important; line-height: 1.5 !important; }
.hero-industries h1 + p + p { margin-bottom: 1.25rem !important; font-size: .95rem !important; line-height: 1.5 !important; }
.hero-industries .h-500 { height: min(48vh, 24rem) !important; }

/* Industrial machinery: keep the animated gear and a compact specification row. */
.hero-industry-machinery > .relative.max-w-7xl {
  padding-top: clamp(2.25rem, 5vh, 3.5rem) !important;
  padding-bottom: clamp(2.25rem, 5vh, 3.5rem) !important;
}
.hero-industry-machinery .inline-flex.mb-6 { margin-bottom: 1rem !important; }
.hero-industry-machinery .inline-flex.mb-6 .w-16 { width: 3rem !important; height: 3rem !important; }
.hero-industry-machinery h1 {
  max-width: 19ch;
  margin-bottom: 1rem !important;
  font-size: clamp(2.6rem, 4vw, 3.6rem) !important;
  line-height: 1.03 !important;
}
.hero-industry-machinery h1 + p { margin-bottom: 1.25rem !important; font-size: 1.08rem !important; line-height: 1.5 !important; }
.hero-industry-machinery h1 + p + .flex { margin-bottom: 1.35rem !important; }
.hero-industry-machinery h1 + p + .flex a { padding: .8rem 1.4rem !important; }
.hero-industry-machinery .grid.grid-cols-4 { gap: 1.25rem !important; max-width: 38rem; }
.hero-industry-machinery .grid.grid-cols-4 .text-3xl { font-size: 1.45rem !important; }

/* Medical devices: retain certification motion at a smaller, balanced scale. */
.hero-medical-devices > .relative.max-w-7xl {
  padding-top: clamp(2.25rem, 5vh, 3.5rem) !important;
  padding-bottom: clamp(2.25rem, 5vh, 3.5rem) !important;
}
.hero-medical-devices .grid.lg\:grid-cols-2 { gap: clamp(2rem, 4vw, 4rem) !important; }
.hero-medical-devices .inline-flex.mb-6 { margin-bottom: 1rem !important; }
.hero-medical-devices h1 {
  max-width: 18ch;
  margin-bottom: 1rem !important;
  font-size: clamp(2.5rem, 3.8vw, 3.4rem) !important;
  line-height: 1.03 !important;
}
.hero-medical-devices h1 + p { margin-bottom: 1.2rem !important; font-size: 1.05rem !important; line-height: 1.5 !important; }
.hero-medical-devices h1 + p + .flex { margin-bottom: 1.35rem !important; }
.hero-medical-devices h1 + p + .flex a { padding: .8rem 1.4rem !important; }
.hero-medical-devices .grid.grid-cols-3 { gap: 1.25rem !important; }
.hero-medical-devices .grid.grid-cols-3 .text-3xl { font-size: 1.4rem !important; }
.hero-medical-devices .w-80.h-80 { width: 18rem !important; height: 18rem !important; }

/* Electronics: equal-height split with restrained technical data. */
.hero-electronics > .max-w-7xl,
.hero-electronics > .max-w-7xl > .grid { height: 100%; }
.hero-electronics .lg\:pr-12 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(2rem, 5vh, 3.5rem) !important;
  padding-bottom: clamp(2rem, 5vh, 3.5rem) !important;
}
.hero-electronics h1 {
  margin-bottom: 1rem !important;
  font-size: clamp(2.5rem, 3.7vw, 3.3rem) !important;
  line-height: 1.04 !important;
}
.hero-electronics h1 + p { margin-bottom: .8rem !important; font-size: 1.05rem !important; line-height: 1.5 !important; }
.hero-electronics h1 + p + p { margin-bottom: 1.2rem !important; font-size: .95rem !important; line-height: 1.5 !important; }
.hero-electronics .grid.grid-cols-3 { margin-top: 1.4rem !important; padding-top: 1.25rem !important; }

/* Motorcycle and bicycle: immersive overlay hero with animated wheel visual. */
.hero-motorcycle {
  padding-top: clamp(2.25rem, 5vh, 3.5rem) !important;
  padding-bottom: clamp(2.25rem, 5vh, 3.5rem) !important;
}
.hero-motorcycle .grid.lg\:grid-cols-2 { gap: clamp(2.25rem, 5vw, 5rem) !important; }
.hero-motorcycle .inline-flex.mb-6 { margin-bottom: 1rem !important; }
.hero-motorcycle h1 {
  max-width: 22ch;
  margin-bottom: .9rem !important;
  font-size: clamp(2.25rem, 3.3vw, 3rem) !important;
  line-height: 1.04 !important;
}
.hero-motorcycle h1 + p { margin-bottom: .7rem !important; font-size: 1.02rem !important; line-height: 1.45 !important; }
.hero-motorcycle h1 + p + p { margin-bottom: 1.1rem !important; font-size: .94rem !important; line-height: 1.45 !important; }
.hero-motorcycle h1 + p + p + .flex { margin-bottom: 1.2rem !important; }
.hero-motorcycle h1 + p + p + .flex a { padding: .75rem 1.25rem !important; }
.hero-motorcycle .grid.grid-cols-4 { gap: 1rem !important; }
.hero-motorcycle .grid.grid-cols-4 .text-2xl { font-size: 1.25rem !important; }
.hero-motorcycle .h-600 { height: min(52vh, 26rem) !important; }

/* About: editorial copy and one clean facility image. */
.hero-about {
  padding-top: clamp(2.25rem, 5vh, 3.5rem) !important;
  padding-bottom: clamp(2.25rem, 5vh, 3.5rem) !important;
}
.hero-about .grid.lg\:grid-cols-2 { gap: clamp(2.5rem, 5vw, 5rem) !important; }
.hero-about .inline-flex.mb-6 { margin-bottom: 1rem !important; }
.hero-about h1 {
  max-width: 21ch;
  margin-bottom: .9rem !important;
  font-size: clamp(2.35rem, 3.45vw, 3.1rem) !important;
  line-height: 1.04 !important;
}
.hero-about h1 + p { margin-bottom: .7rem !important; font-size: 1.02rem !important; line-height: 1.45 !important; }
.hero-about h1 + p + p { margin-bottom: 1.15rem !important; font-size: .94rem !important; line-height: 1.45 !important; }
.hero-about .reveal-left > .flex a { padding: .75rem 1.3rem !important; }
.hero-about .h-700 { height: min(52vh, 27rem) !important; }

/* Gallery: project introduction paired with an inspectable production image. */
.hero-gallery {
  padding-top: clamp(2.5rem, 6vh, 4rem) !important;
  padding-bottom: clamp(2.5rem, 6vh, 4rem) !important;
}
.hero-gallery .grid.lg\:grid-cols-2 { gap: clamp(2.5rem, 5vw, 5rem) !important; }
.hero-gallery .inline-flex.mb-6 { margin-bottom: 1rem !important; }
.hero-gallery h1 {
  max-width: 18ch;
  margin-bottom: 1rem !important;
  font-size: clamp(2.6rem, 4vw, 3.5rem) !important;
  line-height: 1.04 !important;
}
.hero-gallery h1 + p { margin-bottom: 1.3rem !important; font-size: 1.04rem !important; line-height: 1.5 !important; }
.hero-gallery .h-\[400px\] { height: min(50vh, 25rem) !important; }

/* Contact: balanced team image and project-intake copy without floating badges. */
.hero-contact {
  padding-top: clamp(2.5rem, 6vh, 4rem) !important;
  padding-bottom: clamp(2.5rem, 6vh, 4rem) !important;
}
.hero-contact .grid.lg\:grid-cols-2 { gap: clamp(2.5rem, 5vw, 5rem) !important; }
.hero-contact h1 {
  max-width: 18ch;
  margin-bottom: 1rem !important;
  font-size: clamp(2.55rem, 3.9vw, 3.45rem) !important;
  line-height: 1.04 !important;
}
.hero-contact h1 + p { margin-bottom: 1.35rem !important; font-size: 1.04rem !important; line-height: 1.5 !important; }
.hero-contact .h-\[400px\],
.hero-contact .md\:h-\[520px\] { height: min(52vh, 27rem) !important; }

/* Photo heroes: protect left-side copy while keeping machinery visible on the right. */
:where(
  .hero-3d-materials,
  .hero-3d-printing,
  .hero-5-axis,
  .hero-ceramic,
  .hero-cnc-parts-maker,
  .hero-cnc-services,
  .hero-cnc-milling,
  .hero-cnc-precision,
  .hero-cnc-turning,
  .hero-custom-metal,
  .hero-industry-machinery,
  .hero-low-volume,
  .hero-medical-cnc,
  .hero-medical-devices,
  .hero-metal-cnc,
  .hero-metal-parts-maker,
  .hero-micro-machining,
  .hero-plastic-cnc,
  .hero-aerospace-machining,
  .hero-robotic-parts,
  .hero-precision-milling,
  .hero-quality,
  .svc-hero,
  .hero-sheet-metal,
  .hero-superalloy
) > .absolute.inset-0.opacity-15,
:where(
  .hero-3d-materials,
  .hero-3d-printing,
  .hero-5-axis,
  .hero-ceramic,
  .hero-cnc-parts-maker,
  .hero-cnc-services,
  .hero-cnc-milling,
  .hero-cnc-precision,
  .hero-cnc-turning,
  .hero-custom-metal,
  .hero-industry-machinery,
  .hero-low-volume,
  .hero-medical-cnc,
  .hero-medical-devices,
  .hero-metal-cnc,
  .hero-metal-parts-maker,
  .hero-micro-machining,
  .hero-plastic-cnc,
  .hero-aerospace-machining,
  .hero-robotic-parts,
  .hero-precision-milling,
  .hero-quality,
  .svc-hero,
  .hero-sheet-metal,
  .hero-superalloy
) > .absolute.inset-0.opacity-20,
:where(
  .hero-3d-materials,
  .hero-3d-printing,
  .hero-5-axis,
  .hero-ceramic,
  .hero-cnc-parts-maker,
  .hero-cnc-services,
  .hero-cnc-milling,
  .hero-cnc-precision,
  .hero-cnc-turning,
  .hero-custom-metal,
  .hero-industry-machinery,
  .hero-low-volume,
  .hero-medical-cnc,
  .hero-medical-devices,
  .hero-metal-cnc,
  .hero-metal-parts-maker,
  .hero-micro-machining,
  .hero-plastic-cnc,
  .hero-aerospace-machining,
  .hero-robotic-parts,
  .hero-precision-milling,
  .hero-quality,
  .svc-hero,
  .hero-sheet-metal,
  .hero-superalloy
) > .absolute.inset-0.opacity-25,
:where(
  .hero-3d-materials,
  .hero-3d-printing,
  .hero-ceramic,
  .hero-cnc-services,
  .hero-industry-machinery,
  .hero-medical-devices,
  .hero-metal-cnc,
  .hero-plastic-cnc,
  .hero-sheet-metal,
  .hero-superalloy
) > .absolute.inset-0 > img[class*="opacity-"] {
  opacity: 1 !important;
}

:where(
  .hero-3d-printing,
  .hero-5-axis,
  .hero-ceramic,
  .hero-cnc-parts-maker,
  .hero-cnc-services,
  .hero-cnc-milling,
  .hero-cnc-precision,
  .hero-cnc-turning,
  .hero-industry-machinery,
  .hero-low-volume,
  .hero-medical-cnc,
  .hero-medical-devices,
  .hero-metal-cnc,
  .hero-micro-machining,
  .hero-plastic-cnc,
  .hero-aerospace-machining,
  .hero-robotic-parts,
  .hero-precision-milling,
  .hero-quality,
  .svc-hero,
  .hero-sheet-metal,
  .hero-superalloy
) > .absolute.inset-0[class*="bg-gradient-to-"],
:where(
  .hero-3d-printing,
  .hero-ceramic,
  .hero-cnc-services,
  .hero-industry-machinery,
  .hero-medical-devices,
  .hero-metal-cnc,
  .hero-plastic-cnc,
  .hero-sheet-metal,
  .hero-superalloy
) > .absolute.inset-0 > .absolute.inset-0 {
  opacity: 1 !important;
  background: linear-gradient(
    90deg,
    rgba(14, 15, 17, .94) 0%,
    rgba(14, 15, 17, .84) 34%,
    rgba(14, 15, 17, .5) 62%,
    rgba(14, 15, 17, .16) 100%
  ) !important;
}

:where(.hero-3d-materials, .hero-custom-metal, .hero-metal-parts-maker)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(14, 15, 17, .94) 0%,
    rgba(14, 15, 17, .84) 34%,
    rgba(14, 15, 17, .5) 62%,
    rgba(14, 15, 17, .16) 100%
  );
}
:where(.hero-3d-materials, .hero-custom-metal, .hero-metal-parts-maker) > .absolute.inset-0 { z-index: 0; }
:where(.hero-3d-materials, .hero-custom-metal, .hero-metal-parts-maker) > .relative { z-index: 2; }

/* CNC services: keep the copy concise and let the machining image carry the open half. */
.hero-cnc-services > .relative.max-w-7xl,
.hero-sheet-metal > .relative.max-w-7xl {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-top: clamp(2rem, 5vh, 3.5rem) !important;
  padding-bottom: clamp(2rem, 5vh, 3.5rem) !important;
}
.hero-cnc-services .grid,
.hero-sheet-metal .grid { width: 100%; gap: clamp(2rem, 5vw, 5rem) !important; }
.hero-cnc-services nav,
.hero-sheet-metal nav { margin-bottom: 1.35rem !important; }
.hero-cnc-services h1,
.hero-sheet-metal h1 {
  max-width: 17ch;
  margin-bottom: 1rem !important;
  font-size: clamp(2.65rem, 4vw, 3.55rem) !important;
  line-height: 1.02 !important;
}
.hero-cnc-services h1 + p,
.hero-sheet-metal h1 + p {
  margin-bottom: 1.35rem !important;
  font-size: clamp(1rem, 1.25vw, 1.08rem) !important;
  line-height: 1.5 !important;
}
.hero-cnc-services a.px-8,
.hero-sheet-metal a.px-8 { padding: .8rem 1.45rem !important; }

/* Surface finishing: retain the comparison slider at a lower, inspectable scale. */
.hero-surface-finishing > .max-w-7xl {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-top: clamp(2rem, 4vh, 3rem) !important;
  padding-bottom: clamp(2rem, 4vh, 3rem) !important;
}
.hero-surface-finishing > .max-w-7xl > .grid { width: 100%; gap: clamp(2rem, 4vw, 4rem) !important; }
.hero-surface-finishing nav { margin-bottom: 1rem !important; }
.hero-surface-finishing nav + .inline-flex { margin-bottom: 1rem !important; padding: .55rem 1rem !important; }
.hero-surface-finishing h1 {
  max-width: 18ch;
  margin-bottom: 1rem !important;
  font-size: clamp(2.45rem, 3.7vw, 3.25rem) !important;
  line-height: 1.03 !important;
}
.hero-surface-finishing h1 + p {
  margin-bottom: 1.3rem !important;
  font-size: clamp(1rem, 1.2vw, 1.06rem) !important;
  line-height: 1.5 !important;
}
.hero-surface-finishing .comparison-container { height: min(46vh, 23rem) !important; }
.hero-surface-finishing .comparison-container + p { margin-top: .65rem !important; }

/* Turning: preserve the rotating workpiece while tightening the editorial copy stack. */
.hero-cnc-turning > .relative.max-w-7xl,
.hero-low-volume > .relative.max-w-7xl {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-top: clamp(2rem, 4vh, 3rem) !important;
  padding-bottom: clamp(2rem, 4vh, 3rem) !important;
}
.hero-cnc-turning nav,
.hero-low-volume nav { margin-bottom: 1.35rem !important; }
.hero-cnc-turning > .relative.max-w-7xl > .grid,
.hero-low-volume > .relative.max-w-7xl > .grid { gap: clamp(2rem, 4vw, 4rem) !important; }
.hero-cnc-turning h1,
.hero-low-volume h1 {
  max-width: 17ch;
  margin-bottom: 1rem !important;
  font-size: clamp(2.55rem, 3.9vw, 3.45rem) !important;
  line-height: 1.02 !important;
}
.hero-cnc-turning h1 + p,
.hero-low-volume h1 + p {
  font-size: clamp(1rem, 1.2vw, 1.06rem) !important;
  line-height: 1.5 !important;
}
.hero-low-volume h1 + p + .flex { margin-top: 1.35rem !important; }
.hero-low-volume h1 + p + .flex a { padding: .8rem 1.4rem !important; }
.hero-low-volume .lg\:col-span-5 > div { padding: 2rem !important; }
.hero-low-volume .qty-step .h-16 { height: 4rem !important; }

/* Superalloy: crop the source image to the shared frame instead of shrinking it. */
.hero-superalloy > .absolute.inset-0 { height: 100% !important; }
.hero-superalloy > .relative.max-w-7xl {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-top: clamp(2.5rem, 5vh, 3.5rem) !important;
  padding-bottom: clamp(2.5rem, 5vh, 3.5rem) !important;
}
.hero-superalloy .inline-block { margin-bottom: 1.1rem !important; }
.hero-superalloy h1 {
  margin-bottom: 1rem !important;
  font-size: clamp(2.65rem, 4vw, 3.55rem) !important;
  line-height: 1.03 !important;
}
.hero-superalloy h1 + p {
  margin-bottom: 1.35rem !important;
  font-size: clamp(1rem, 1.25vw, 1.08rem) !important;
  line-height: 1.5 !important;
}

/* Ceramic: keep the layered material sample, proportioned to the shorter frame. */
.hero-ceramic > .relative.max-w-7xl {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-top: clamp(2rem, 4vh, 3rem) !important;
  padding-bottom: clamp(2rem, 4vh, 3rem) !important;
}
.hero-ceramic > .relative.max-w-7xl > .grid { width: 100%; }
.hero-ceramic .inline-flex { margin-bottom: 1rem !important; }
.hero-ceramic h1 {
  max-width: 18ch;
  margin-bottom: 1rem !important;
  font-size: clamp(2.55rem, 3.85vw, 3.4rem) !important;
  line-height: 1.03 !important;
}
.hero-ceramic h1 + p {
  margin-bottom: 1.35rem !important;
  font-size: clamp(1rem, 1.2vw, 1.06rem) !important;
  line-height: 1.5 !important;
}
.hero-ceramic h1 + p + .flex { margin-bottom: 0 !important; }
.hero-ceramic h1 + p + .flex a { padding: .8rem 1.4rem !important; }
.hero-ceramic .lg\:col-span-5 > .relative { min-height: 14rem; }
.hero-ceramic .lg\:col-span-5 > .relative > div { width: 16rem !important; height: 10rem !important; }
.hero-ceramic .lg\:col-span-5 > .relative > div:nth-child(2) { top: 2rem !important; right: 2rem !important; }
.hero-ceramic .lg\:col-span-5 > .relative > div:nth-child(3) { top: 4rem !important; right: 4rem !important; }
.hero-ceramic > .absolute.inset-0 img { object-position: center 45%; }
.hero-ceramic .ceramic-hero-shade {
  background: linear-gradient(90deg, rgba(14, 15, 17, .96) 0%, rgba(14, 15, 17, .88) 46%, rgba(14, 15, 17, .55) 100%);
}
.hero-ceramic .ceramic-hero-eyebrow {
  background: rgba(14, 15, 17, .72);
  border: 1px solid rgba(196, 197, 200, .35);
}
.hero-ceramic .ceramic-hero-secondary { background: rgba(14, 15, 17, .32); }
.hero-ceramic .ceramic-sample {
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, .28);
}
.hero-ceramic .ceramic-sample-back { background: #e8e8ea; }
.hero-ceramic .ceramic-sample-mid { background: #a9cbd3; }
.hero-ceramic .ceramic-sample-front {
  background: #1a1b1e;
  border-color: rgba(74, 144, 226, .75);
}
.hero-ceramic .ceramic-sample-rule { width: 3rem; height: 2px; background: #4a90e2; }

/* CNC Machining submenu SVGs: one readable panel treatment for every animated hero visual. */
:where(
  .hero-cnc-precision,
  .hero-5-axis,
  .hero-cnc-turning,
  .hero-robotic-parts,
  .hero-aerospace-machining,
  .hero-medical-cnc,
  .hero-cnc-parts-maker,
  .hero-custom-metal
) .hero-svg-panel {
  position: relative;
  z-index: 1;
  isolation: isolate;
  padding: clamp(1rem, 2vw, 1.75rem) !important;
  background: rgba(14, 15, 17, .58) !important;
  border: 1px solid rgba(241, 241, 242, .14);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .18);
  color: #f1f1f2;
}

:where(
  .hero-cnc-precision,
  .hero-5-axis,
  .hero-cnc-turning,
  .hero-robotic-parts,
  .hero-aerospace-machining,
  .hero-medical-cnc,
  .hero-cnc-parts-maker,
  .hero-custom-metal
) .hero-svg-panel > svg.absolute.inset-0 {
  position: absolute !important;
  inset: 1rem !important;
  width: calc(100% - 2rem) !important;
  height: calc(100% - 2rem) !important;
}

:where(
  .hero-cnc-precision,
  .hero-5-axis,
  .hero-cnc-turning,
  .hero-robotic-parts,
  .hero-aerospace-machining,
  .hero-medical-cnc,
  .hero-cnc-parts-maker,
  .hero-custom-metal
) .hero-svg-panel > svg,
:where(
  .hero-cnc-precision,
  .hero-5-axis,
  .hero-cnc-turning,
  .hero-robotic-parts,
  .hero-aerospace-machining,
  .hero-medical-cnc,
  .hero-cnc-parts-maker,
  .hero-custom-metal
) .hero-svg-panel > div {
  position: relative;
  z-index: 1;
}

/* Lift only the neutral technical marks. Blue brand accents remain blue. */
:where(
  .hero-cnc-precision,
  .hero-5-axis,
  .hero-cnc-turning,
  .hero-robotic-parts,
  .hero-aerospace-machining,
  .hero-medical-cnc,
  .hero-cnc-parts-maker,
  .hero-custom-metal
) .hero-svg-panel svg [stroke="#9A9B9F"] {
  stroke: #f1f1f2 !important;
  stroke-opacity: .82 !important;
}

:where(
  .hero-cnc-precision,
  .hero-5-axis,
  .hero-cnc-turning,
  .hero-robotic-parts,
  .hero-aerospace-machining,
  .hero-medical-cnc,
  .hero-cnc-parts-maker,
  .hero-custom-metal
) .hero-svg-panel svg [stroke="#3A3B3F"],
:where(
  .hero-cnc-precision,
  .hero-5-axis,
  .hero-cnc-turning,
  .hero-robotic-parts,
  .hero-aerospace-machining,
  .hero-medical-cnc,
  .hero-cnc-parts-maker,
  .hero-custom-metal
) .hero-svg-panel svg [stroke="#2A2B2E"] {
  stroke: #f1f1f2 !important;
  stroke-opacity: .5 !important;
}

:where(
  .hero-cnc-precision,
  .hero-5-axis,
  .hero-cnc-turning,
  .hero-robotic-parts,
  .hero-aerospace-machining,
  .hero-medical-cnc,
  .hero-cnc-parts-maker,
  .hero-custom-metal
) .hero-svg-panel svg text[fill="#9A9B9F"] {
  fill: #f1f1f2 !important;
}
/* Kovar: the equal-height image remains the visual anchor after removing hero metrics. */
.hero-kovar h1 { max-width: 18ch; }
.hero-kovar h1 + p { margin-bottom: 1.35rem !important; }

@media (max-width: 63.99rem) {
  .hero-surface-finishing > .max-w-7xl > .grid > .reveal:last-child,
  .hero-cnc-turning .lg\:col-span-5,
  .hero-low-volume .lg\:col-span-5,
  .hero-kovar .reveal-right { display: none !important; }

  .hero-cnc-services > .relative.max-w-7xl,
  .hero-sheet-metal > .relative.max-w-7xl,
  .hero-surface-finishing > .max-w-7xl,
  .hero-cnc-turning > .relative.max-w-7xl,
  .hero-low-volume > .relative.max-w-7xl,
  .hero-superalloy > .relative.max-w-7xl,
  .hero-ceramic > .relative.max-w-7xl {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 47.99rem) {
  .hero-cnc-services h1,
  .hero-sheet-metal h1,
  .hero-surface-finishing h1,
  .hero-cnc-turning h1,
  .hero-low-volume h1,
  .hero-superalloy h1,
  .hero-ceramic h1,
  .hero-kovar h1 { font-size: clamp(2.15rem, 10vw, 2.65rem) !important; }

  .hero-cnc-services nav,
  .hero-sheet-metal nav,
  .hero-cnc-turning nav,
  .hero-low-volume nav { margin-bottom: 1rem !important; }

  .hero-kovar .lg\:pr-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
}

@media (min-width: 48rem) and (max-width: 63.99rem) and (max-height: 43.75rem) {
  .hero-cnc-services > .relative.max-w-7xl,
  .hero-sheet-metal > .relative.max-w-7xl,
  .hero-surface-finishing > .max-w-7xl,
  .hero-cnc-turning > .relative.max-w-7xl,
  .hero-low-volume > .relative.max-w-7xl,
  .hero-superalloy > .relative.max-w-7xl,
  .hero-ceramic > .relative.max-w-7xl,
  .hero-kovar .lg\:pr-12 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Tablet layouts stack before the lg breakpoint; allow height to follow content. */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .hero-3d-printing,
  .hero-cnc-precision,
  .hero-5-axis,
  .hero-micro-machining,
  .hero-robotic-parts,
  .hero-aerospace-machining,
  .hero-medical-cnc,
  .hero-cnc-parts-maker,
  .hero-metal-parts-maker,
  .hero-custom-metal,
  .hero-materials,
  .hero-plastic-cnc,
  .hero-metal-cnc,
  .hero-carbon-fiber,
  .hero-industries,
  .hero-industry-machinery,
  .hero-medical-devices,
  .hero-electronics,
  .hero-motorcycle,
  .hero-about,
  .hero-gallery,
  .hero-contact {
    height: auto !important;
    min-height: 80vh !important;
  }
}

@media (max-width: 47.99rem) {
  .hero-industry-machinery .grid.grid-cols-4,
  .hero-motorcycle .grid.grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

</end>
