/* =============================================================
   Prototier-1 Inc. — style.css
   Design system from mockup-homepage-v4. Mobile-first, tokenised.
   ============================================================= */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- TOKENS ---------- */
:root {
  --red: #D42B2B; --red-dark: #b82222;
  --red-on-dark: #E5564C; /* lighter red for small text on dark — meets WCAG AA (≈5:1) */
  --blue: #4A90C4;
  --charcoal: #1A1A1A; --black: #080808;
  --grey: #888;
  --light: #F5F5F5; --white: #fff;

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  --text-hero: clamp(48px, 8vw, 108px);
  --text-h1:   clamp(40px, 6vw, 80px);
  --text-h2:   clamp(34px, 4vw, 60px);
  --text-h3:   clamp(20px, 2.4vw, 26px);
  --text-body: clamp(15px, 1.4vw, 18px);

  --pad-x: clamp(20px, 6vw, 80px);
  --section-y: clamp(60px, 9vw, 100px);

  --nav-h: 72px;
  --maxw: 1320px;
}

/* ---------- BASE ---------- */
body { font-family: var(--font-body); color: var(--charcoal); background: var(--white); overflow-x: hidden; line-height: 1.5; }
/* text-wrap: pretty rebalances the last 2-3 lines of every paragraph so
   single trailing words ("orphans") get pulled up onto the previous line.
   Modern browsers only (Chrome 117+, Safari 17.4+, Firefox 121+); older
   browsers ignore the property — no negative fallback. Headings get
   `balance` instead, which evenly distributes words across lines. */
p, li, dd, dt, blockquote, figcaption { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--font-head); text-transform: uppercase; line-height: 1; text-wrap: balance; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: 12px 20px; z-index: 2000; }
.skip-link:focus { left: 0; }

/* shared eyebrow / heading helpers */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--red); flex-shrink: 0; }
h2.section-title { font-family: var(--font-head); font-weight: 900; font-size: var(--text-h2); color: var(--charcoal); text-transform: uppercase; margin-bottom: 48px; }

.btn { display: inline-block; padding: 15px 36px; background: var(--red); color: var(--white); font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; border: none; border-radius: 2px; transition: background .2s, transform .2s; }
.btn:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.32); color: var(--white); }
.btn-ghost:hover { border-color: rgba(255,255,255,.75); background: transparent; }
.btn-white { background: var(--white); color: var(--charcoal); }
.btn-white:hover { background: var(--light); transform: translateY(-2px); }

/* =============================================================
   NAV
   ============================================================= */
/* Transparent over the hero at the top; fades to black on scroll. */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 1000; background: transparent; padding: 0 var(--pad-x); display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); border-bottom: 1px solid transparent; transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease; }
/* Subtle top scrim keeps the transparent nav legible over brighter hero areas. */
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0)); opacity: 1; transition: opacity .35s ease; }
.nav.scrolled { background: rgba(8,8,8,.97); backdrop-filter: blur(14px); border-bottom-color: rgba(255,255,255,.06); }
.nav.scrolled::before { opacity: 0; }
/* When the mobile drawer is open, solidify the bar so the logo stays legible. */
.nav:has(#navMenu.open) { background: rgba(8,8,8,.97); backdrop-filter: blur(14px); }
.nav:has(#navMenu.open)::before { opacity: 0; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 50px; width: auto; transition: height .35s ease; }
.nav.scrolled .nav-logo img { height: 34px; }

/* Gaps clamp down on narrower desktops so the links never crowd the logo or the CTA. */
.nav-menu { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 38px); }
.nav-links { list-style: none; display: flex; align-items: center; gap: clamp(15px, 1.8vw, 30px); }
.nav-links > li { position: relative; }
/* Larger, bolder, full-white links with an animated red underline on hover / current page.
   Size eases down on cramped (~1024px) desktops so links never crowd the logo or CTA. */
.nav-links a { color: #fff; text-decoration: none; font-size: clamp(13px, 1.15vw, 15px); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; transition: color .2s; display: flex; align-items: center; gap: 5px; position: relative; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; background: var(--red); transition: left .25s ease, right .25s ease; }
.nav-links a:hover::after, .nav-links .is-active > a::after, .nav-links a[aria-current="page"]::after { left: 0; right: 0; }
.caret { font-size: 14px; transform: rotate(90deg); display: inline-block; opacity: .6; }
/* Cramped-desktop band: tighten side padding and keep the wide logo at its small
   size (the larger 50px logo only makes sense when there's room) so the menu never
   crowds the logo or the CTA. */
@media (min-width: 1024px) and (max-width: 1240px) {
  .nav { padding-left: 36px; padding-right: 36px; }
  .nav-logo img, .nav.scrolled .nav-logo img { height: 36px; }
}
/* Drop the header phone number on narrower desktops; show it only when there's room. */
@media (min-width: 1024px) and (max-width: 1300px) { .nav-aside .nav-phone { display: none; } }

.dropdown { position: absolute; top: 100%; left: -16px; min-width: 250px; background: rgba(12,12,12,.98); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.08); border-top: 2px solid var(--red); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 11px 22px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.72); text-transform: none; letter-spacing: .01em; border-left: 2px solid transparent; transition: color .2s, background .2s, border-color .2s; }
.dropdown a:hover, .dropdown a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.05); border-left-color: var(--red); }

.nav-aside { display: flex; align-items: center; gap: 24px; }
.nav-phone { color: rgba(255,255,255,.72) !important; font-size: 13px; text-decoration: none; }
.nav-phone:hover { color: rgba(255,255,255,.8) !important; }
.nav-cta { background: var(--red); color: var(--white) !important; padding: 10px 22px; border-radius: 2px; font-weight: 600 !important; letter-spacing: .07em !important; font-size: 12px !important; text-decoration: none; transition: background .2s; }
.nav-cta:hover { background: var(--red-dark); }

.nav-controls { display: flex; align-items: center; gap: 12px; }
.nav-cta--mobile { display: none; }
.nav-drawer-foot { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; z-index: 1100; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 990; }

@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  /* Logo stays small on mobile (no grow-on-scroll) and above the overlay. */
  .nav-logo img, .nav.scrolled .nav-logo img { height: 32px; }
  .nav-logo { position: relative; z-index: 1120; }
  /* Burger sits above the fullscreen overlay so it can always close the menu. */
  .nav-toggle { position: relative; z-index: 1120; }
  /* No backdrop-filter on mobile: a filter on .nav would trap the fixed
     fullscreen overlay inside the nav box. Use a solid bar instead. */
  .nav.scrolled, .nav:has(#navMenu.open) { backdrop-filter: none; }

  /* Compact quote button in the header (room permitting); hidden once the menu is open. */
  .nav-cta--mobile { display: inline-flex; align-items: center; padding: 9px 16px; }
  .nav:has(#navMenu.open) .nav-cta--mobile { display: none; }

  /* Fullscreen takeover menu */
  .nav-menu { position: fixed; inset: 0; width: 100%; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; background: #0a0a0a; padding: calc(var(--nav-h) + 22px) 26px 36px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .35s ease, transform .35s ease, visibility .35s; overflow-y: auto; }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }

  /* Bottom action row: Call (left, light) + Request a Quote (right, red). */
  .nav-aside { display: none; } /* phone + quote relocated to the action row below */
  .nav-drawer-foot { display: flex; flex-direction: row; gap: 12px; margin-top: auto; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
  .nav-drawer-foot .nav-foot-btn { flex: 1; text-align: center; padding: 16px 14px; border-radius: 4px; font-family: var(--font-head); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; transition: background .2s; }
  .nav-drawer-foot .nav-foot-call { background: #fff; color: var(--charcoal); }
  .nav-drawer-foot .nav-foot-call:hover { background: rgba(255,255,255,.85); }
  .nav-drawer-foot .nav-foot-quote { background: var(--red); color: #fff; }
  .nav-drawer-foot .nav-foot-quote:hover { background: var(--red-dark); }

  /* Big editorial top-level items */
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-links > li { border-bottom: 1px solid rgba(255,255,255,.09); }
  .nav-links > li > a { padding: 18px 0; justify-content: space-between; font-family: var(--font-head); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; color: #fff; letter-spacing: .01em; }
  .nav-links .caret { color: var(--red); font-size: 22px; }

  /* Sub-items: larger, with a red accent rail */
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; background: none; border: none; border-top: none; padding: 4px 0 16px; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown.open .caret { transform: rotate(90deg); }
  .dropdown a { padding: 12px 0 12px 18px; font-size: 18px; color: rgba(255,255,255,.62); border-left: 2px solid var(--red); margin-left: 2px; }
  .dropdown a:hover, .dropdown a[aria-current="page"] { color: #fff; background: none; }

  /* Hamburger morphs into an X when open */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 359px) {
  .nav-cta--mobile { display: none !important; }
}

/* =============================================================
   HERO
   ============================================================= */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: var(--nav-h) var(--pad-x) 0; overflow: hidden; background: #080808 center/cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.72) 55%, rgba(0,0,0,.88) 100%); z-index: 1; }
.yt-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* home-v2: self-hosted native hero video (reliable muted autoplay, no YouTube) */
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #080808; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.yt-wrap iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.78vh; transform: translate(-50%,-50%); pointer-events: none; border: none; opacity: 0; transition: opacity 1.2s; }
.yt-wrap iframe.loaded { opacity: 1; }
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 14px; margin-bottom: 24px; opacity: 0; transform: translateY(20px); animation: fadeUp .8s .3s forwards; }
.hero-eyebrow::before { content: ''; width: 36px; height: 2px; background: var(--red); }
.hero h1 { font-family: var(--font-head); font-weight: 900; font-size: var(--text-hero); line-height: .92; color: #fff; margin-bottom: 28px; opacity: 0; transform: translateY(30px); animation: fadeUp .9s .5s forwards; }
.hero h1 span { color: var(--red); }
.hero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-family: var(--font-head); font-size: clamp(15px,2vw,18px); font-weight: 600; color: rgba(255,255,255,.92); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 48px; opacity: 0; transform: translateY(20px); animation: fadeUp .8s .7s forwards; }
.hero-sub .dot { color: var(--red); font-size: 8px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; opacity: 0; transform: translateY(20px); animation: fadeUp .8s .9s forwards; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; animation: fadeIn 1s 1.4s forwards; }
.hero-scroll span { font-size: 10px; color: rgba(255,255,255,.35); letter-spacing: .14em; text-transform: uppercase; }
.scroll-bar { width: 1px; height: 48px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.scroll-bar::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--red); animation: scrollDrop 2s 1.8s ease-in-out infinite; }

/* secondary page hero (inner pages) */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(60px,10vw,120px)) var(--pad-x) clamp(50px,7vw,90px); background: var(--charcoal) center/cover no-repeat; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,0,0,.9), rgba(0,0,0,.6)); z-index: 1; }
.page-hero > * { position: relative; z-index: 2; }
.page-hero .breadcrumb { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-family: var(--font-head); font-weight: 900; font-size: var(--text-h1); color: #fff; max-width: 18ch; }
.page-hero .lead { font-size: var(--text-body); color: rgba(255,255,255,.7); max-width: 60ch; margin-top: 22px; line-height: 1.7; }

/* =============================================================
   SECTIONS (home + inner)
   ============================================================= */
.section { padding: var(--section-y) var(--pad-x); }
.section .inner, .wrap { max-width: var(--maxw); margin: 0 auto; }

.hero-intro { background: #111; padding: var(--section-y) var(--pad-x); border-top: 3px solid var(--red); }
.hero-intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; max-width: var(--maxw); margin: 0 auto; }
.hero-intro-inner { max-width: 880px; }
.hero-intro-video { position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; box-shadow: 0 12px 44px rgba(0,0,0,.5); }
.hero-intro-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-intro p { font-size: var(--text-body); line-height: 1.82; color: rgba(255,255,255,.72); margin-bottom: 20px; }
.hero-intro strong { color: #fff; }
.hero-intro .btn { margin-top: 20px; }
/* home-v2 only (live home.php unaffected): the white capabilities section fades
   into the light grey across its lower half, so the gradient "stretches" from
   the section above and the intro continues seamlessly in solid grey. */
.capabilities.capabilities--blend { background: linear-gradient(to bottom, #fff 0%, #fff 55%, var(--light) 100%); }
.hero-intro--light { background: var(--light); border-top: none; }
.hero-intro--light p { color: #4a4a4a; }
.hero-intro--light strong { color: var(--charcoal); }
.hero-intro--light .hero-intro-inner h2 { font-family: var(--font-head); font-weight: 900; font-size: var(--text-h2); line-height: .98; text-transform: uppercase; color: var(--charcoal); margin: 14px 0 22px; }

.problem { background: #0a0a0a; padding: var(--section-y) var(--pad-x); }
.problem-hed { font-family: var(--font-head); font-weight: 800; font-size: clamp(29px,5.5vw,76px); line-height: 1.14; letter-spacing: .01em; color: #fff; text-transform: uppercase; }
.problem-hed .dim { color: rgba(255,255,255,.55); display: block; margin-top: 0; }
.problem-sub { font-size: var(--text-body); color: rgba(255,255,255,.6); line-height: 1.78; max-width: 600px; margin-top: 36px; border-left: 3px solid var(--blue); padding-left: 24px; }
.problem-sub strong { color: #fff; }

.how { background: var(--light); padding: var(--section-y) var(--pad-x); }
.how h2 { font-size: var(--text-h2); color: var(--charcoal); font-weight: 900; margin-bottom: 56px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
.step { background: #fff; padding: clamp(32px,4vw,52px) clamp(28px,3vw,44px); position: relative; overflow: hidden; transition: transform .3s; }
.step::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.step:hover::after { transform: scaleX(1); }
.step:hover { transform: translateY(-4px); }
.step-num { font-family: var(--font-head); font-size: 80px; font-weight: 900; color: #ececec; line-height: 1; margin-bottom: 20px; transition: color .3s; }
.step:hover .step-num { color: rgba(212,43,43,.1); }
.step h3 { font-size: 24px; font-weight: 800; color: var(--charcoal); letter-spacing: .04em; margin-bottom: 16px; }
.step p { font-size: 15px; line-height: 1.75; color: #666; }

.cta-strip { padding: 52px var(--pad-x); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-strip.dark { background: var(--charcoal); }
.cta-strip.red { background: var(--red); }
.cta-strip p { font-size: 20px; font-weight: 500; color: rgba(255,255,255,.88); margin: 0; line-height: 1.5; max-width: 600px; }

.stats { background: var(--red); padding: 72px var(--pad-x); position: relative; overflow: hidden; }
.stats::before { content: 'PROTOTIER'; position: absolute; font-family: var(--font-head); font-weight: 900; font-size: 200px; color: rgba(0,0,0,.08); top: 50%; left: 50%; transform: translate(-50%,-50%); white-space: nowrap; pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 48px; position: relative; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: clamp(48px,6vw,72px); font-weight: 900; color: #fff; line-height: 1; display: flex; align-items: flex-start; justify-content: center; }
.stat-num sup { font-size: .45em; margin-top: .15em; }
.stat-num sub { font-size: .5em; margin-top: .3em; align-self: flex-end; }
.stat-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.65); letter-spacing: .14em; text-transform: uppercase; margin-top: 10px; }

.capabilities { background: #fff; padding: var(--section-y) 0; }
.cap-intro { margin-bottom: 56px; padding: 0 var(--pad-x); }
.cap-intro h2 { font-size: var(--text-h2); font-weight: 900; color: var(--charcoal); }
.cap-intro-text .lead { font-size: 17px; color: #666; line-height: 1.78; margin-top: 16px; max-width: 56ch; }

/* Full-width image-background capability tiles */
.cap-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
.cap-card { position: relative; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; padding: 44px 40px; text-decoration: none; overflow: hidden; }
.cap-card__img { position: absolute; left: 0; right: 0; top: -15%; height: 130%; background-size: cover; background-position: center; z-index: 0; transform: translate3d(0,0,0); will-change: transform; }
.cap-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.5) 48%, rgba(0,0,0,.22) 100%); transition: background .35s; z-index: 1; }
.cap-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s; z-index: 3; }
.cap-card:hover::before { background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 48%, rgba(0,0,0,.3) 100%); }
.cap-card:hover::after { transform: scaleX(1); }
.cap-title, .cap-desc { position: relative; z-index: 2; }
.cap-title { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: #fff; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 12px; }
.cap-desc { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.82); max-width: 34ch; }

/* ---- Image backgrounds: JPG base, upgraded to WebP where supported ---- */
.hero { background-image: url(../images/hero/prototier-metal-stamped-components.jpg); }
.final-cta { background-image: url(../images/parts/prototier-prototype-parts.jpg); }
.cap-card--stamping            .cap-card__img { background-image: url(../images/capabilities/stamping.jpg); }
.cap-card--laser-cutting       .cap-card__img { background-image: url(../images/capabilities/laser-cutting.jpg); }
.cap-card--cnc-machining       .cap-card__img { background-image: url(../images/capabilities/cnc-machining.jpg); }
.cap-card--welding-assembly    .cap-card__img { background-image: url(../images/capabilities/welding-assembly.jpg); }
.cap-card--quality-inspection  .cap-card__img { background-image: url(../images/capabilities/quality-inspection.jpg); }
.cap-card--production-services .cap-card__img { background-image: url(../images/capabilities/production-services.jpg); }
/* Industry tiles for the /industries/ hub — reuse the same hero images. */
.cap-card--automotive           .cap-card__img { background-image: url(../images/capabilities/automotive-hero.jpg); }
.cap-card--industrial-equipment .cap-card__img { background-image: url(../images/capabilities/industrial-equipment-hero.jpg); }
.cap-card--agricultural         .cap-card__img { background-image: url(../images/capabilities/agricultural-hero.jpg); }
.cap-card--aerospace-defence    .cap-card__img { background-image: url(../images/capabilities/aerospace-defence-hero.jpg); }
.cap-card--medical              .cap-card__img { background-image: url(../images/capabilities/medical-hero.jpg); }
.cap-card--nuclear              .cap-card__img { background-image: url(../images/capabilities/nuclear-hero.jpg); }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .hero { background-image: image-set(url(../images/hero/prototier-metal-stamped-components.webp) type("image/webp"), url(../images/hero/prototier-metal-stamped-components.jpg) type("image/jpeg")); }
  .final-cta { background-image: image-set(url(../images/parts/prototier-prototype-parts.webp) type("image/webp"), url(../images/parts/prototier-prototype-parts.jpg) type("image/jpeg")); }
  .cap-card--stamping            .cap-card__img { background-image: image-set(url(../images/capabilities/stamping.webp) type("image/webp"), url(../images/capabilities/stamping.jpg) type("image/jpeg")); }
  .cap-card--laser-cutting       .cap-card__img { background-image: image-set(url(../images/capabilities/laser-cutting.webp) type("image/webp"), url(../images/capabilities/laser-cutting.jpg) type("image/jpeg")); }
  .cap-card--cnc-machining       .cap-card__img { background-image: image-set(url(../images/capabilities/cnc-machining.webp) type("image/webp"), url(../images/capabilities/cnc-machining.jpg) type("image/jpeg")); }
  .cap-card--welding-assembly    .cap-card__img { background-image: image-set(url(../images/capabilities/welding-assembly.webp) type("image/webp"), url(../images/capabilities/welding-assembly.jpg) type("image/jpeg")); }
  .cap-card--quality-inspection  .cap-card__img { background-image: image-set(url(../images/capabilities/quality-inspection.webp) type("image/webp"), url(../images/capabilities/quality-inspection.jpg) type("image/jpeg")); }
  .cap-card--production-services .cap-card__img { background-image: image-set(url(../images/capabilities/production-services.webp) type("image/webp"), url(../images/capabilities/production-services.jpg) type("image/jpeg")); }
  .cap-card--automotive           .cap-card__img { background-image: image-set(url(../images/capabilities/automotive-hero.webp) type("image/webp"), url(../images/capabilities/automotive-hero.jpg) type("image/jpeg")); }
  .cap-card--industrial-equipment .cap-card__img { background-image: image-set(url(../images/capabilities/industrial-equipment-hero.webp) type("image/webp"), url(../images/capabilities/industrial-equipment-hero.jpg) type("image/jpeg")); }
  .cap-card--agricultural         .cap-card__img { background-image: image-set(url(../images/capabilities/agricultural-hero.webp) type("image/webp"), url(../images/capabilities/agricultural-hero.jpg) type("image/jpeg")); }
  .cap-card--aerospace-defence    .cap-card__img { background-image: image-set(url(../images/capabilities/aerospace-defence-hero.webp) type("image/webp"), url(../images/capabilities/aerospace-defence-hero.jpg) type("image/jpeg")); }
  .cap-card--medical              .cap-card__img { background-image: image-set(url(../images/capabilities/medical-hero.webp) type("image/webp"), url(../images/capabilities/medical-hero.jpg) type("image/jpeg")); }
  .cap-card--nuclear              .cap-card__img { background-image: image-set(url(../images/capabilities/nuclear-hero.webp) type("image/webp"), url(../images/capabilities/nuclear-hero.jpg) type("image/jpeg")); }
}

.why { background: var(--light); padding: var(--section-y) var(--pad-x); }
.why h2 { font-size: var(--text-h2); font-weight: 900; color: var(--charcoal); }
.why-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 3px; margin-top: 56px; }
.why-item { background: #fff; padding: clamp(34px,4vw,52px) clamp(30px,3vw,48px); transition: transform .3s; }
.why-item:hover { transform: translateY(-4px); }
.why-num { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.why-item h3 { font-size: 24px; font-weight: 800; color: var(--charcoal); letter-spacing: .03em; margin-bottom: 16px; }
.why-item p { font-size: 15px; line-height: 1.8; color: #666; }

.industries { background: var(--charcoal); padding: var(--section-y) var(--pad-x); }
.industries h2 { color: #fff; font-size: var(--text-h2); font-weight: 900; }
.ind-lead { font-size: 16px; color: rgba(255,255,255,.48); line-height: 1.75; margin: 16px 0 56px; max-width: 520px; }
.ind-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
.ind-card { background: rgba(255,255,255,.04); padding: 40px 36px; border-top: 2px solid rgba(255,255,255,.07); transition: background .3s; position: relative; overflow: hidden; text-decoration: none; display: block; }
.ind-card::before { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 0; background: var(--red); transition: height .4s; }
.ind-card:hover::before { height: 100%; }
.ind-card:hover { background: rgba(255,255,255,.09); }
.ind-card h3 { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: .04em; margin-bottom: 10px; }
.ind-card p { font-size: 14px; color: rgba(255,255,255,.66); line-height: 1.65; }

/* =============================================================
   LOGOS MARQUEE (trusted-by)
   ============================================================= */
.logos-section { background: #000; padding: 56px 0; border-top: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.logos-label { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.3); text-align: center; margin-bottom: 44px; }
.logos-track-wrap { overflow: hidden; position: relative; }
.logos-track-wrap::before, .logos-track-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.logos-track-wrap::before { left: 0; background: linear-gradient(to right, #000, transparent); }
.logos-track-wrap::after { right: 0; background: linear-gradient(to left, #000, transparent); }
.logos-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 40s linear infinite; }
.logos-track:hover { animation-play-state: paused; }
.logos-track img { height: 30px; width: auto; object-fit: contain; filter: brightness(0) invert(1) opacity(.45); transition: filter .3s; flex-shrink: 0; }
.logos-track img:hover { filter: brightness(0) invert(1) opacity(.9); }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 40px; } }

/* About — Our Clients: text left, floating logo chips right (dark band) */
.clients-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,5vw,72px); align-items: center; }
.clients-text .cmb-head-text { margin-bottom: 22px; }
.clients-text p { max-width: 52ch; }   /* match the text measure used in the section above */
.clients-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.clients-text a:hover { color: var(--red); }
/* Our Clients: alternating-direction scrolling logo rows, edges faded out */
.logo-rows { display: flex; flex-direction: column; gap: 30px; position: relative; isolation: isolate; min-width: 0; overflow: hidden; }
.logo-rows::before, .logo-rows::after { content: ''; position: absolute; top: 0; bottom: 0; z-index: 2; pointer-events: none; }
.logo-rows::before { left: 0; width: 34%; background: linear-gradient(to right, #0a0a0a, rgba(10,10,10,0)); }
.logo-rows::after { right: 0; width: 34%; background: linear-gradient(to left, #0a0a0a, rgba(10,10,10,0)); }
.lr-row { overflow: hidden; position: relative; z-index: 1; min-width: 0; }
.lr-track { display: flex; align-items: center; width: max-content; animation: lr-scroll var(--dur,110s) linear infinite; }
.lr-track.lr-rev { animation-direction: reverse; }
.lr-track img { height: 30px; width: auto; flex-shrink: 0; margin-right: 42px; filter: brightness(0) invert(1) opacity(.7); }
@keyframes lr-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lr-track { animation: none; flex-wrap: wrap; } }
@media (max-width: 820px) { .clients-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) { .logo-rows .lr-row:nth-child(n+3) { display: none; } }

/* =============================================================
   TESTIMONIALS
   ============================================================= */
.testimonials { background: #fff; padding: var(--section-y) 0; border-top: 1px solid #e8e8e8; }
.test-header { padding: 0 var(--pad-x); margin-bottom: 56px; }
.test-header h2 { font-size: var(--text-h2); font-weight: 900; color: var(--charcoal); }
.test-carousel-wrap { overflow: hidden; position: relative; padding: 0 var(--pad-x); }
.test-track { display: flex; }
.test-slide { flex: 0 0 auto; padding: 0 6px; }
.test-card { background: #fff; border-left: 3px solid var(--red); padding: 44px 36px; display: flex; flex-direction: column; height: 100%; box-shadow: 0 2px 16px rgba(0,0,0,.07); }
.test-quote-mark { font-family: var(--font-head); font-size: 90px; font-weight: 900; color: var(--red); line-height: .7; opacity: .15; margin-bottom: 8px; }
.test-quote { font-size: 15px; line-height: 1.78; color: #555; font-style: italic; flex: 1; }
.test-company { margin-top: 28px; display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid #ebebeb; }
.test-company img { height: 28px; width: auto; object-fit: contain; filter: grayscale(100%) opacity(.55); max-width: 100px; }
.test-company-name { font-size: 11px; font-weight: 700; color: #999; letter-spacing: .12em; text-transform: uppercase; }
.test-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 44px; padding: 0 var(--pad-x); }
.test-btn { background: none; border: 1.5px solid #ddd; color: #aaa; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s; }
.test-btn:hover { border-color: var(--red); color: var(--red); }
.test-dots { display: flex; gap: 10px; }
.test-dot { width: 8px; height: 8px; border-radius: 50%; background: #ddd; border: none; cursor: pointer; transition: background .3s, width .3s; padding: 0; }
.test-dot.active { background: var(--red); width: 28px; border-radius: 4px; }
.test-progress { height: 2px; background: #eee; position: relative; overflow: hidden; margin-top: 32px; }
.test-progress-bar { position: absolute; top: 0; left: 0; height: 100%; background: var(--red); width: 0; }

/* =============================================================
   FINAL CTA
   ============================================================= */
.final-cta { position: relative; padding: clamp(90px,12vw,140px) var(--pad-x); text-align: center; overflow: hidden; background: #050505 center/cover no-repeat; }
.final-cta::after { content: ''; position: absolute; inset: 0; background: rgba(5,5,5,.86); }
.final-cta > * { position: relative; z-index: 2; }
.final-cta h2 { color: #fff; margin-bottom: 20px; font-size: clamp(40px,5vw,72px); font-weight: 900; }
.final-cta h2 span { color: var(--red); }
.final-cta p { font-size: var(--text-body); color: rgba(255,255,255,.58); margin: 0 auto 48px; max-width: 500px; line-height: 1.75; }
.final-cta-btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: #080808; padding: 72px var(--pad-x) 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(32px,5vw,64px); margin-bottom: 56px; max-width: var(--maxw); margin-inline: auto; }
.footer-logo img { height: 32px; filter: brightness(0) invert(1) opacity(.65); margin-bottom: 20px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,.32); line-height: 1.75; margin-bottom: 24px; }
.footer-contact { font-size: 14px; color: rgba(255,255,255,.7); line-height: 2.1; font-style: normal; }
.footer-contact a { color: var(--blue); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-hours { color: rgba(255,255,255,.3); }
.footer-h { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.22); margin-bottom: 20px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.7); text-decoration: none; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; max-width: var(--maxw); margin-inline: auto; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,.72); text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.footer-legal a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.social-btn svg { width: 17px; height: 17px; display: block; }
.social-btn:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }

/* =============================================================
   INNER PAGE CONTENT
   ============================================================= */
.prose { max-width: 760px; }
.prose p { font-size: var(--text-body); line-height: 1.8; color: #444; margin-bottom: 20px; }
.prose h2 { font-size: clamp(28px,3vw,40px); color: var(--charcoal); font-weight: 900; margin: 48px 0 20px; }
.prose h3 { font-size: 22px; color: var(--charcoal); font-weight: 800; margin: 32px 0 14px; letter-spacing: .03em; }
.prose ul { margin: 0 0 24px 0; padding-left: 22px; }
.prose li { font-size: 15px; line-height: 1.7; color: #555; margin-bottom: 8px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 3px; margin: 40px 0; }
.spec-card { background: var(--light); padding: 32px 28px; border-top: 2px solid var(--red); }
.spec-card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--charcoal); margin-bottom: 12px; }
.spec-card p, .spec-card li { font-size: 14px; color: #666; line-height: 1.65; }
.spec-card ul { list-style: none; padding: 0; }
.spec-card li { padding: 4px 0; border-bottom: 1px solid #e8e8e8; }
.spec-card li:last-child { border: none; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px,5vw,72px); align-items: start; }
.two-col .media { border-radius: 2px; overflow: hidden; position: sticky; top: calc(var(--nav-h) + 24px); }
.two-col .media img { width: 100%; height: 100%; object-fit: cover; }

/* Light-background section helper */
.section--light { background: var(--light); }
.section--dark { background: var(--charcoal); }
.section--dark h2, .section--dark p { color: #fff; }
.section--dark .prose p { color: rgba(255,255,255,.72); }

/* Multi-column bulleted list (materials, components, etc.) */
.col-list { columns: 3 220px; column-gap: 44px; list-style: none; padding: 0; margin: 28px 0; }
.col-list li { position: relative; padding: 8px 0 8px 22px; font-size: 15px; color: #555; break-inside: avoid; border-bottom: 1px solid #e8e8e8; }
.col-list li::before { content: ''; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; background: var(--red); }
.lead-line { font-size: var(--text-body); line-height: 1.8; color: #444; max-width: 70ch; }

/* =============================================================
   CAPABILITY DETAIL PAGE (main + sticky sidebar)
   ============================================================= */
.page-hero .tags { font-family: var(--font-head); font-size: clamp(15px,2vw,20px); font-weight: 600; color: rgba(255,255,255,.62); text-transform: uppercase; letter-spacing: .06em; margin-top: 16px; }
.page-hero .tags span { color: rgba(255,255,255,.3); margin: 0 10px; }

.cap-layout { display: grid; grid-template-columns: 1fr 300px; gap: 0; align-items: start; max-width: var(--maxw); margin: 0 auto; }
.cap-main { padding: clamp(44px,6vw,72px) clamp(28px,4vw,64px) clamp(44px,6vw,72px) var(--pad-x); }
.cap-main h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px,3.4vw,42px); line-height: 1.05; color: var(--charcoal); text-transform: uppercase; margin-bottom: 18px; }
.cap-main h3 { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--charcoal); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 12px; }
.cap-main p { font-size: 16px; line-height: 1.8; color: #4a4a4a; margin-bottom: 18px; }
.cap-main .lead { font-size: 18px; color: var(--charcoal); }
.cap-divider { border: none; border-top: 1px solid #e8e8e8; margin: clamp(40px,5vw,56px) 0; }

.benefits-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 3px; margin: 28px 0; }
.benefit { background: var(--light); padding: 26px; border-left: 3px solid var(--red); }
.benefit strong { display: block; font-size: 15px; color: var(--charcoal); margin-bottom: 6px; font-weight: 600; }
.benefit span { font-size: 14px; color: #666; line-height: 1.6; }

.projects-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 0 32px; margin: 28px 0; }
.projects-cols ul { list-style: none; }
.projects-cols li { font-size: 14px; color: #555; padding: 9px 0; border-bottom: 1px solid #efefef; display: flex; align-items: center; gap: 10px; }
.projects-cols li::before { content: ''; width: 4px; height: 4px; background: var(--red); border-radius: 50%; flex-shrink: 0; }

.materials-grid { columns: 2; margin: 22px 0; }
.materials-grid li { font-size: 15px; color: #4a4a4a; padding: 8px 0; border-bottom: 1px solid #efefef; break-inside: avoid; display: flex; align-items: center; gap: 10px; list-style: none; }
.materials-grid li::before { content: ''; width: 4px; height: 4px; background: var(--red); border-radius: 50%; flex-shrink: 0; }

.content-image { width: 100%; height: clamp(240px,32vw,340px); object-fit: cover; margin: 28px 0; display: block; border-radius: 2px; }
.content-image-half { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 28px 0; }
.content-image-half img { width: 100%; height: clamp(200px,26vw,280px); object-fit: cover; display: block; }

.feature-block { background: var(--light); padding: clamp(28px,4vw,44px); margin: 28px 0; border-top: 3px solid var(--red); }
.feature-block-inner { display: grid; grid-template-columns: 1fr 240px; gap: 36px; align-items: center; }
.feature-block-inner img { width: 100%; height: auto; border-radius: 2px; }
.feature-block-inner p:last-child { margin-bottom: 0; }

.sim-block img { width: 100%; height: clamp(220px,30vw,320px); object-fit: cover; margin-top: 18px; display: block; border-radius: 2px; }

.assembly-list { list-style: none; margin: 14px 0; }
.assembly-list li { font-size: 15px; color: #4a4a4a; padding: 10px 0; border-bottom: 1px solid #efefef; display: flex; align-items: center; gap: 12px; }
.assembly-list li::before { content: ''; width: 6px; height: 6px; background: var(--red); border-radius: 50%; flex-shrink: 0; }

.cap-sidebar { background: var(--light); padding: 44px 32px; position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; }
.cap-sidebar h4 { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--charcoal); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--red); }
.sidebar-nav a { display: block; font-size: 14px; color: #555; text-decoration: none; padding: 11px 0; border-bottom: 1px solid #e0e0e0; transition: color .2s; font-weight: 500; }
.sidebar-nav a:hover { color: var(--red); }
.sidebar-nav a.active { color: var(--red); font-weight: 600; }
.sidebar-cta { margin-top: 32px; }
.sidebar-cta p { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 18px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-outline-dark { display: block; width: 100%; text-align: center; padding: 12px 28px; background: transparent; border: 1.5px solid var(--charcoal); color: var(--charcoal); font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-radius: 2px; margin-top: 10px; transition: background .2s, color .2s; }
.btn-outline-dark:hover { background: var(--charcoal); color: #fff; }

.page-cta { background: var(--charcoal); padding: clamp(44px,6vw,64px) var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.page-cta h2 { color: #fff; font-size: clamp(26px,3vw,34px); margin: 0 0 8px; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; }
.page-cta p { color: rgba(255,255,255,.65); font-size: 16px; margin: 0; max-width: 520px; }
.page-cta .btn { white-space: nowrap; flex-shrink: 0; padding: 16px 40px; }

@media (max-width: 900px) {
  .cap-layout { grid-template-columns: 1fr; }
  .cap-main { padding: 48px var(--pad-x); }
  .cap-sidebar { position: static; }
  .feature-block-inner { grid-template-columns: 1fr; }
  .feature-block-inner img { max-width: 280px; }
}
@media (max-width: 600px) {
  .benefits-grid, .projects-cols, .content-image-half { grid-template-columns: 1fr; }
  .materials-grid { columns: 1; }
}

/* =============================================================
   FORM (RFQ)
   ============================================================= */
.rfq-wrap { display: grid; grid-template-columns: 1.2fr .9fr; gap: clamp(36px,5vw,72px); max-width: var(--maxw); margin: 0 auto; }
.form-field { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #555; margin-bottom: 8px; }
label .req { color: var(--red); }
input, select, textarea { width: 100%; padding: 14px 16px; border: 1.5px solid #ddd; border-radius: 2px; font: inherit; font-size: 15px; color: var(--charcoal); background: #fff; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { min-height: 140px; resize: vertical; }
.filedrop { border: 2px dashed #ccc; border-radius: 2px; padding: 28px; text-align: center; color: #888; cursor: pointer; transition: border-color .2s, background .2s; }
.filedrop.dragover { border-color: var(--blue); background: #f0f6fb; }
.filedrop strong { color: var(--charcoal); }
.filedrop small { display: block; margin-top: 8px; font-size: 12px; color: #aaa; }
.file-list { list-style: none; padding: 0; margin: 14px 0 0; }
.file-list li { font-size: 13px; color: #555; padding: 8px 12px; background: var(--light); border-radius: 2px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.file-list button { background: none; border: none; color: var(--red); font-size: 16px; line-height: 1; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 13px; color: #888; margin-top: 6px; }
.form-msg { padding: 16px 20px; border-radius: 2px; margin-bottom: 24px; font-size: 15px; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: #eaf6ec; color: #1e7a32; border-left: 3px solid #1e7a32; }
.form-msg.error { background: #fdecec; color: #b02020; border-left: 3px solid var(--red); }
.rfq-aside { background: var(--charcoal); padding: clamp(32px,4vw,48px); border-top: 3px solid var(--red); align-self: start; }
.rfq-aside h2 { color: #fff; font-size: 26px; font-weight: 800; margin-bottom: 20px; }
.rfq-aside p, .rfq-aside li { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.7; }
.rfq-aside ul { list-style: none; padding: 0; margin: 20px 0; }
.rfq-aside li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.rfq-aside a { color: var(--blue); text-decoration: none; }

/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes scrollDrop { 0% { top: -100%; } 100% { top: 100%; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity .7s ease, transform .7s ease; }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.d1{transition-delay:.1s}.d2{transition-delay:.2s}.d3{transition-delay:.3s}
.d4{transition-delay:.4s}.d5{transition-delay:.5s}.d6{transition-delay:.6s}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .hero-intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps, .cap-grid, .ind-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cap-intro { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col .media { position: static; }
  .rfq-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .steps, .cap-grid, .ind-grid, .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
  .stats::before { font-size: 120px; }

  /* Problem headline: let it wrap naturally, smaller, more line spacing */
  .problem-hed { font-size: 28px; line-height: 1.22; }

  /* Hero buttons stay side by side, sharing the row */
  .hero-btns { flex-wrap: nowrap; gap: 10px; }
  .hero-btns .btn { flex: 1 1 0; text-align: center; padding-left: 12px; padding-right: 12px; font-size: 12px; letter-spacing: .04em; }

  /* Tighter footer: brand on top, link columns side by side */
  .footer { padding: 48px var(--pad-x) 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; margin-bottom: 36px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-tagline { margin-bottom: 18px; }
  .footer-contact { line-height: 1.85; }
  .footer-col a { margin-bottom: 8px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 24px; }
}

/* =============================================================
   CAPABILITY PAGE TEMPLATE (cmb-*) — cinematic + editorial.
   Reusable across all capability detail pages. Approved on the
   Metal Stamping page (V4); other capability pages reuse these.
   ============================================================= */
.cmb-hero { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: var(--nav-h) var(--pad-x) 0; }
.cmb-hero h1 { font-size: clamp(48px,7vw,104px); line-height: .9; }
/* Breadcrumb bar: slim strip directly under the hero section */
.crumb-bar { background: var(--charcoal); padding: 15px var(--pad-x); border-bottom: 1px solid rgba(255,255,255,.07); }
.crumb-bar .breadcrumb { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.crumb-bar .breadcrumb a { color: rgba(255,255,255,.72); text-decoration: none; }
.crumb-bar .breadcrumb a:hover { color: #fff; }
.cmb-hero h1 span { color: var(--red); }
.cmb-hero .tags { margin-top: 22px; }
/* Per-page hero backgrounds (JPG base, WebP upgrade). Add one per capability page. */
.cmb-hero--stamping { background-image: url(../images/capabilities/stamping-press-operator.jpg); }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .cmb-hero--stamping { background-image: image-set(url(../images/capabilities/stamping-press-operator.webp) type("image/webp"), url(../images/capabilities/stamping-press-operator.jpg) type("image/jpeg")); }
}
.cmb-hero--quote { background-image: url(../images/parts/prototier-prototype-parts.jpg); }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .cmb-hero--quote { background-image: image-set(url(../images/parts/prototier-prototype-parts.webp) type("image/webp"), url(../images/parts/prototier-prototype-parts.jpg) type("image/jpeg")); }
}
.cmb-hero--laser { background-image: url(../images/capabilities/laser-cutting-hero.jpg); }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .cmb-hero--laser { background-image: image-set(url(../images/capabilities/laser-cutting-hero.webp) type("image/webp"), url(../images/capabilities/laser-cutting-hero.jpg) type("image/jpeg")); }
}
.cmb-hero--cnc { background-image: url(../images/capabilities/cnc-machining-hero.jpg); }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .cmb-hero--cnc { background-image: image-set(url(../images/capabilities/cnc-machining-hero.webp) type("image/webp"), url(../images/capabilities/cnc-machining-hero.jpg) type("image/jpeg")); }
}
.cmb-hero--welding { background-image: url(../images/capabilities/welding-hero.jpg); }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .cmb-hero--welding { background-image: image-set(url(../images/capabilities/welding-hero.webp) type("image/webp"), url(../images/capabilities/welding-hero.jpg) type("image/jpeg")); }
}
.cmb-hero--contact { background-image: url(../images/capabilities/contact-hero.jpg); }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .cmb-hero--contact { background-image: image-set(url(../images/capabilities/contact-hero.webp) type("image/webp"), url(../images/capabilities/contact-hero.jpg) type("image/jpeg")); }
}
.cmb-hero--quality { background-image: url(../images/capabilities/quality-inspection-hero.jpg); }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .cmb-hero--quality { background-image: image-set(url(../images/capabilities/quality-inspection-hero.webp) type("image/webp"), url(../images/capabilities/quality-inspection-hero.jpg) type("image/jpeg")); }
}
.cmb-hero--production { background-image: url(../images/capabilities/production-services-hero.jpg); }
.cmb-hero--automotive { background-image: url(../images/capabilities/automotive-hero.jpg); }
.cmb-hero--industrial-equipment { background-image: url(../images/capabilities/industrial-equipment-hero.jpg); }
.cmb-hero--agricultural { background-image: url(../images/capabilities/agricultural-hero.jpg); }
.cmb-hero--aerospace-defence { background-image: url(../images/capabilities/aerospace-defence-hero.jpg); }
.cmb-hero--medical { background-image: url(../images/capabilities/medical-hero.jpg); }
.cmb-hero--nuclear { background-image: url(../images/capabilities/nuclear-hero.jpg); }
.cmb-hero--about { background-image: url(../images/about/about-aerial.jpg); }
.cmb-hero--gallery { background-image: url(../images/parts/gallery-parts.jpg); background-position: center 60%; }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .cmb-hero--production { background-image: image-set(url(../images/capabilities/production-services-hero.webp) type("image/webp"), url(../images/capabilities/production-services-hero.jpg) type("image/jpeg")); }
  .cmb-hero--automotive { background-image: image-set(url(../images/capabilities/automotive-hero.webp) type("image/webp"), url(../images/capabilities/automotive-hero.jpg) type("image/jpeg")); }
  .cmb-hero--industrial-equipment { background-image: image-set(url(../images/capabilities/industrial-equipment-hero.webp) type("image/webp"), url(../images/capabilities/industrial-equipment-hero.jpg) type("image/jpeg")); }
  .cmb-hero--agricultural { background-image: image-set(url(../images/capabilities/agricultural-hero.webp) type("image/webp"), url(../images/capabilities/agricultural-hero.jpg) type("image/jpeg")); }
  .cmb-hero--aerospace-defence { background-image: image-set(url(../images/capabilities/aerospace-defence-hero.webp) type("image/webp"), url(../images/capabilities/aerospace-defence-hero.jpg) type("image/jpeg")); }
  .cmb-hero--medical { background-image: image-set(url(../images/capabilities/medical-hero.webp) type("image/webp"), url(../images/capabilities/medical-hero.jpg) type("image/jpeg")); }
  .cmb-hero--nuclear { background-image: image-set(url(../images/capabilities/nuclear-hero.webp) type("image/webp"), url(../images/capabilities/nuclear-hero.jpg) type("image/jpeg")); }
  .cmb-hero--about { background-image: image-set(url(../images/about/about-aerial.webp) type("image/webp"), url(../images/about/about-aerial.jpg) type("image/jpeg")); }
  .cmb-hero--gallery { background-image: image-set(url(../images/parts/gallery-parts.webp) type("image/webp"), url(../images/parts/gallery-parts.jpg) type("image/jpeg")); }
}
/* Hero parallax layer: extra overflow room for stronger drift + framing raised 15% */
.page-hero .cmb-eqbg { top: -35%; height: 170%; background-position: center 65%; }
/* Shorter hero on mobile so it does not dominate the screen */
@media (max-width: 768px) { .cmb-hero { min-height: 52vh; } }
@media (max-width: 480px) { .cmb-hero { min-height: 44vh; } }

/* Section shell */
.cmb-sec { padding: clamp(60px,8vw,110px) var(--pad-x); }
.cmb-sec .wrap { max-width: var(--maxw); margin: 0 auto; }
.cmb-light { background: #fff; }
.cmb-grey  { background: var(--light); }
.cmb-dark  { background: #0a0a0a; }
.cmb-char  { background: var(--charcoal); }
.cmb-dark .eyebrow, .cmb-char .eyebrow, .cmb-eq .eyebrow, .page-hero .eyebrow, .why-canada-text .eyebrow, .clients .eyebrow { color: var(--red-on-dark); }
.cmb-dark .eyebrow::before, .cmb-char .eyebrow::before, .cmb-eq .eyebrow::before, .page-hero .eyebrow::before, .why-canada-text .eyebrow::before, .clients .eyebrow::before { background: var(--red-on-dark); }

/* Section with parallax photo background, darkened */
.cmb-eq { position: relative; overflow: hidden; background: #060606; }
.cmb-eqbg { position: absolute; left: 0; right: 0; top: -25%; height: 150%; background-size: cover; background-position: center; will-change: transform; z-index: 0; }
.cmb-eq::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,6,6,.86) 0%, rgba(6,6,6,.80) 50%, rgba(6,6,6,.90) 100%); }
.cmb-eq > .wrap { position: relative; z-index: 2; }
/* Default parallax photo (stamping = press shop); other pages can override .cmb-eqbg background-image inline. */
.cmb-eq--press .cmb-eqbg { background-image: url(../images/capabilities/press-shop.jpg); }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .cmb-eq--press .cmb-eqbg { background-image: image-set(url(../images/capabilities/press-shop.webp) type("image/webp"), url(../images/capabilities/press-shop.jpg) type("image/jpeg")); }
}
.cmb-eq--laser .cmb-eqbg { background-image: url(../images/capabilities/laser-cutting-bay.jpg); }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .cmb-eq--laser .cmb-eqbg { background-image: image-set(url(../images/capabilities/laser-cutting-bay.webp) type("image/webp"), url(../images/capabilities/laser-cutting-bay.jpg) type("image/jpeg")); }
}
.cmb-eq--cnc .cmb-eqbg { background-image: url(../images/capabilities/cnc-machining-bay.jpg); }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .cmb-eq--cnc .cmb-eqbg { background-image: image-set(url(../images/capabilities/cnc-machining-bay.webp) type("image/webp"), url(../images/capabilities/cnc-machining-bay.jpg) type("image/jpeg")); }
}
.cmb-eq--facility .cmb-eqbg { background-image: url(../images/about/about-aerial.jpg); background-position: center 30%; }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .cmb-eq--facility .cmb-eqbg { background-image: image-set(url(../images/about/about-aerial.webp) type("image/webp"), url(../images/about/about-aerial.jpg) type("image/jpeg")); }
}
.cmb-eq--quality .cmb-eqbg { background-image: url(../images/capabilities/quality-cmm-machine.jpg); background-position: center 40%; }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .cmb-eq--quality .cmb-eqbg { background-image: image-set(url(../images/capabilities/quality-cmm-machine.webp) type("image/webp"), url(../images/capabilities/quality-cmm-machine.jpg) type("image/jpeg")); }
}
/* Equipment list (machine name + spec) */
.cmb-equip li strong { display: block; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; }
.cmb-dark .cmb-equip li, .cmb-eq .cmb-equip li { color: rgba(255,255,255,.55); }
@media (prefers-reduced-motion: reduce) { .cmb-eqbg { top: 0; height: 100%; transform: none !important; } }

/* Section head */
.cmb-head { margin-bottom: 40px; }
.cmb-head-text .eyebrow { margin-bottom: 12px; }
.cmb-head-text h2 { font-family: var(--font-head); font-weight: 900; font-size: clamp(32px,4.4vw,60px); line-height: .98; text-transform: uppercase; color: var(--charcoal); }
.cmb-dark .cmb-head-text h2, .cmb-char .cmb-head-text h2 { color: #fff; }

.cmb-sec p { font-size: var(--text-body); line-height: 1.75; color: #4a4a4a; }
/* Section-head intro paragraph (Gallery, Capabilities hub, Industries hub) */
.cmb-head-text > p { margin-top: 20px; max-width: 62ch; }
.cmb-dark p, .cmb-char p { color: rgba(255,255,255,.72); }
.cmb-sec p + p { margin-top: 18px; }
.cmb-body { max-width: 72ch; }
.cmb-lead { font-size: clamp(19px,2.1vw,24px); color: var(--charcoal); line-height: 1.6; font-weight: 500; }
.cmb-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,64px); align-items: start; }
.cmb-split .cmb-lead { max-width: 32ch; }

/* Benefit tiles */
.cmb-tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; margin-top: 52px; }
.cmb-tile { background: var(--light); padding: 34px 28px; position: relative; overflow: hidden; transition: transform .3s; }
.cmb-tile::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.cmb-tile:hover::after { transform: scaleX(1); }
.cmb-tile:hover { transform: translateY(-5px); }
.cmb-tile strong { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--charcoal); margin-bottom: 9px; }
.cmb-tile span { font-size: 14px; line-height: 1.6; color: #666; }

/* Interactive cross-fade image (hover / tap) */
.cmb-reveal { position: relative; margin-top: 52px; aspect-ratio: 21 / 9; border-radius: 3px; overflow: hidden; cursor: pointer; box-shadow: 0 16px 50px rgba(0,0,0,.18); outline: none; }
.cmb-reveal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s ease, transform 1.1s ease; }
.cmb-reveal .cmb-img-base { opacity: 1; }
.cmb-reveal .cmb-img-top  { opacity: 0; }
.cmb-reveal:hover .cmb-img-base, .cmb-reveal:focus .cmb-img-base, .cmb-reveal.is-active .cmb-img-base { opacity: 0; transform: scale(1.06); }
.cmb-reveal:hover .cmb-img-top,  .cmb-reveal:focus .cmb-img-top,  .cmb-reveal.is-active .cmb-img-top  { opacity: 1; transform: scale(1.06); }
.cmb-reveal::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), transparent 45%); pointer-events: none; }
.cmb-cap { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 22px 26px; display: flex; align-items: center; gap: 14px; }
.cmb-cap .cmb-lbl { font-family: var(--font-head); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; color: #fff; position: relative; }
.cmb-cap .cmb-lbl-b { position: absolute; left: 0; opacity: 0; }
.cmb-reveal:hover .cmb-lbl-a, .cmb-reveal:focus .cmb-lbl-a, .cmb-reveal.is-active .cmb-lbl-a { opacity: 0; }
.cmb-reveal:hover .cmb-lbl-b, .cmb-reveal:focus .cmb-lbl-b, .cmb-reveal.is-active .cmb-lbl-b { opacity: 1; }
.cmb-lbl::before { content: ''; display: inline-block; width: 18px; height: 2px; background: var(--red); margin-right: 10px; vertical-align: middle; }
.cmb-hint { position: absolute; top: 18px; right: 20px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.35); padding: 7px 12px; border-radius: 100px; backdrop-filter: blur(4px); transition: opacity .4s; }
.cmb-reveal:hover .cmb-hint, .cmb-reveal:focus .cmb-hint, .cmb-reveal.is-active .cmb-hint { opacity: 0; }

/* Column lists */
.cmb-cols { columns: 3 200px; column-gap: 44px; margin-top: 28px; }
.cmb-cols.two { columns: 2 220px; }
.cmb-cols li { list-style: none; padding: 10px 0 10px 20px; position: relative; font-size: 15px; color: #4a4a4a; border-bottom: 1px solid #e8e8e8; break-inside: avoid; }
.cmb-char .cmb-cols li, .cmb-dark .cmb-cols li { color: rgba(255,255,255,.66); border-color: rgba(255,255,255,.1); }
.cmb-cols li::before { content: ''; position: absolute; left: 0; top: 16px; width: 7px; height: 7px; background: var(--red); }
.cmb-matgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; margin-top: 8px; }
.cmb-matimg img { width: 100%; height: auto; border-radius: 3px; display: block; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.cmb-matlist { columns: 1; margin: 0; }

/* Process / services capability-style cards */
.cmb-proc { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 8px; }
.cmb-pcard { position: relative; overflow: hidden; background: #0c0c0c; text-decoration: none; display: block; }
.cmb-pcard .cmb-pimg { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.cmb-pcard .cmb-pimg picture { display: block; width: 100%; height: 100%; }
.cmb-pcard .cmb-pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cmb-pcard:hover .cmb-pimg img { transform: scale(1.05); }
.cmb-pcard .cmb-pbody { padding: 30px 30px 34px; border-top: 3px solid var(--red); }
.cmb-pcard h3 { font-family: var(--font-head); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .03em; color: #fff; margin-bottom: 6px; }
.cmb-pcard .cmb-peyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.cmb-pcard p { font-size: 14.5px; line-height: 1.75; color: rgba(255,255,255,.66); }
.cmb-pcard p + p { margin-top: 12px; }

/* Image-beside-text block (e.g. assembly): text left, image right, light theme */
.cmb-assembly { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); margin-top: 8px; align-items: center; }
.cmb-assembly .cmb-atext { order: 1; display: flex; flex-direction: column; justify-content: center; }
.cmb-assembly .cmb-atext .eyebrow { color: var(--red); }
.cmb-assembly h3 { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px,3vw,38px); text-transform: uppercase; color: var(--charcoal); margin-bottom: 14px; }
.cmb-assembly p { font-size: var(--text-body); line-height: 1.75; color: #4a4a4a; margin-bottom: 22px; max-width: 52ch; }
.cmb-assembly .cmb-aimg { order: 2; position: relative; background: #000; border-radius: 3px; overflow: hidden; aspect-ratio: 3 / 2; }
.cmb-assembly .cmb-aimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.cmb-assembly:hover .cmb-aimg img { transform: scale(1.04); }
/* Reversed variant: image on the left, text on the right (desktop). */
.cmb-assembly--rev .cmb-atext { order: 2; }
.cmb-assembly--rev .cmb-aimg { order: 1; }
.cmb-alist { list-style: none; }
.cmb-alist li { font-size: 15px; color: #4a4a4a; padding: 10px 0; border-bottom: 1px solid #e8e8e8; display: flex; align-items: center; gap: 12px; }
.cmb-alist li::before { content: ''; width: 6px; height: 6px; background: var(--red); border-radius: 50%; flex-shrink: 0; }

/* Related-capabilities strip: compact, all 5 tiles in one row */
.cmb-related .cap-grid { grid-template-columns: repeat(5,1fr); }
/* Industry pages show all 6 capabilities; expand to a 6-col strip so they
   land cleanly on one row, then step down to 3x2 / 2x3 / 1 col. */
.cmb-related .cap-grid:has(> :nth-child(6)) { grid-template-columns: repeat(6,1fr); }
.cmb-related .cap-card { min-height: 190px; padding: 22px 20px; }
.cmb-related .cap-title { font-size: 17px; margin-bottom: 0; }
@media (max-width: 1100px) { .cmb-related .cap-grid, .cmb-related .cap-grid:has(> :nth-child(6)) { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 700px)  { .cmb-related .cap-grid, .cmb-related .cap-grid:has(> :nth-child(6)) { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 420px)  { .cmb-related .cap-grid, .cmb-related .cap-grid:has(> :nth-child(6)) { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .cmb-split, .cmb-proc, .cmb-assembly { grid-template-columns: 1fr; }
  .cmb-tiles { grid-template-columns: 1fr 1fr; }
  .cmb-reveal { aspect-ratio: 16 / 10; }
  .cmb-assembly .cmb-atext { order: 1; } .cmb-assembly .cmb-aimg { order: 2; }
}
@media (max-width: 600px) { .cmb-tiles { grid-template-columns: 1fr; } .cmb-alist { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   CONTACT PAGE
   Reuses .rfq-wrap (form left, aside right), .form-field, .rfq-aside.
--------------------------------------------------------------------------- */
.contact-formtitle { font-family: var(--font-head); font-weight: 900; font-size: clamp(28px,3.4vw,44px); line-height: 1; text-transform: uppercase; color: var(--charcoal); margin-bottom: 14px; }
.contact-formsub { font-size: 15px; line-height: 1.7; color: #555; margin-bottom: 28px; max-width: 52ch; }
.contact-formsub a { color: var(--red); text-decoration: none; font-weight: 600; }
.contact-formsub a:hover { text-decoration: underline; }

/* Contact details + hours inside the dark aside */
.contact-details { list-style: none; padding: 0; margin: 0 0 26px; }
.contact-details li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.contact-details li:first-child { padding-top: 0; }
.contact-label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.contact-details a { color: var(--blue); text-decoration: none; font-size: 17px; font-weight: 600; }
.contact-details a:hover { color: #fff; }
.contact-text { color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.6; }
.contact-text strong { color: #fff; font-weight: 700; }
.contact-dir { display: block; margin-top: 8px; font-size: 13px !important; font-weight: 600; }

.contact-hours { margin-bottom: 26px; }
.hours-list { list-style: none; padding: 0; margin: 8px 0 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 14px; color: rgba(255,255,255,.66); border-bottom: 1px solid rgba(255,255,255,.06); }
.hours-list li:last-child { border-bottom: none; }
.hours-day { color: rgba(255,255,255,.55); }
.hours-time { color: rgba(255,255,255,.8); text-align: right; }
.hours-list li.is-today { color: #fff; }
.hours-list li.is-today .hours-day { color: #fff; font-weight: 700; }
.hours-list li.is-today .hours-time { color: #fff; font-weight: 700; }
.hours-list li.is-today { position: relative; }
.hours-list li.is-today::before { content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; background: var(--red); border-radius: 50%; }

.contact-rfq { border-top: 3px solid var(--red); padding-top: 22px; }
.contact-rfq p { color: #fff !important; font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.contact-rfq .nav-cta { display: inline-block; }

/* About page: shop walkthrough video */
.about-video { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; aspect-ratio: 16 / 9; background: #000; border-radius: 2px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.18); border-top: 3px solid var(--red); }
.about-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Full-width map */
.contact-map { line-height: 0; background: var(--charcoal); }
.contact-map iframe { display: block; width: 100%; height: clamp(320px,42vh,460px); border: 0; }

/* ISO certificate card (thumbnail links to the PDF) */
.cert-card { display: inline-flex; align-items: center; gap: 18px; margin-top: 28px; padding: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.13); border-radius: 4px; text-decoration: none; max-width: 400px; transition: border-color .2s, background .2s, transform .2s; }
.cert-card:hover { border-color: var(--red); background: rgba(255,255,255,.07); transform: translateY(-2px); }
.cert-card img { width: 88px; height: auto; display: block; border-radius: 2px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.cert-meta { display: flex; flex-direction: column; gap: 4px; }
.cert-meta strong { color: #fff; font-size: 16px; font-weight: 700; }
.cert-meta > span { color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.4; }
.cert-meta .cert-link { color: var(--red); font-weight: 600; margin-top: 6px; }
.cert-card:hover .cert-link { text-decoration: underline; }

/* Industry pages: slim "industries we serve" cross-link row (below the capabilities strip) */
.ind-also { max-width: var(--maxw); margin: 0 auto; padding: clamp(44px,5vw,68px) var(--pad-x) 0; text-align: center; }
.ind-also .eyebrow { margin-bottom: 16px; }
.ind-also-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 0; }
.ind-also-links a, .ind-also-links .cur { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; font-size: clamp(15px,1.7vw,19px); padding: 0 16px; text-decoration: none; color: #666; }
.ind-also-links a:hover { color: var(--red); }
.ind-also-links .cur { color: var(--charcoal); }
.ind-also-links i { color: #ccc; font-style: normal; }

/* =============================================================
   GALLERY
   ============================================================= */
.gallery-sec { background: #fafafa; padding: clamp(30px,4vw,60px) var(--pad-x) clamp(60px,8vw,110px); }
.gallery-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px,1.4vw,18px); }
.gallery-item { position: relative; aspect-ratio: 4 / 3; background: #0a0a0a; border: 1px solid #e6e6e6; border-radius: 2px; padding: 0; cursor: pointer; overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.gallery-item img, .gallery-item picture { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery-item:hover { transform: translateY(-2px); border-color: var(--red); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after { content: ''; position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(0,0,0,.4) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5'><circle cx='11' cy='11' r='6'/><line x1='15.5' y1='15.5' x2='20' y2='20'/></svg>") center/14px no-repeat; opacity: 0; transition: opacity .25s ease; }
.gallery-item:hover::after { opacity: 1; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; padding: clamp(20px,5vw,80px); opacity: 0; transition: opacity .25s ease; }
/* The [hidden] attribute needs higher specificity than .lightbox or the overlay
   stays rendered (transparent) covering the page and blocking every click. */
.lightbox[hidden] { display: none; }
.lightbox:not([hidden]) { opacity: 1; }
.lightbox-img { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 2px; box-shadow: 0 18px 60px rgba(0,0,0,.7); }
.lightbox-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.6); font-size: 13px; letter-spacing: .04em; }
.lightbox button { position: absolute; background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.18); width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.lightbox button:hover { background: var(--red); border-color: var(--red); }
.lightbox-close { top: 22px; right: 22px; font-size: 26px; }
.lightbox-prev { left: clamp(12px,3vw,40px); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(12px,3vw,40px); top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; bottom: 24px; top: auto; transform: none; }
  .lightbox-prev { left: 30%; }
  .lightbox-next { right: 30%; }
}

/* =============================================================
   HOME-V2 redesign components (used only on home-v2.php)
   ============================================================= */
.leaf { display: inline-block; vertical-align: middle; }

/* Hero "Proudly Canadian" badge */
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(212,43,43,.92); color: #fff; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; padding: 7px 15px 7px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero-badge .leaf { width: 16px; height: 16px; }

/* Trust band: the three 100%s */
.trust-band { background: var(--charcoal); padding: clamp(44px,6vw,76px) var(--pad-x); border-top: 3px solid var(--red); }
.trust-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(24px,3vw,52px); }
.trust-item { text-align: center; }
.trust-num { font-family: var(--font-head); font-weight: 900; font-size: clamp(46px,5.5vw,74px); line-height: 1; color: var(--red); }
.trust-item h3 { font-family: var(--font-head); font-weight: 800; font-size: clamp(19px,2vw,25px); text-transform: uppercase; letter-spacing: .04em; color: #fff; margin: 8px 0 10px; }
.trust-item p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.55); max-width: 34ch; margin: 0 auto; }
@media (max-width: 760px) {
  .trust-grid { grid-template-columns: 1fr; gap: 0; }
  .trust-item { border-bottom: 1px solid rgba(255,255,255,.08); padding: 28px 0; }
  .trust-item:first-child { padding-top: 0; }
  .trust-item:last-child { border-bottom: none; padding-bottom: 0; }
}

/* Why Canadian section */
.why-canada { position: relative; overflow: hidden; background: linear-gradient(135deg,#1d1d1f 0%,#0b0b0b 100%); padding: clamp(60px,8vw,110px) var(--pad-x); border-top: 3px solid var(--red); }
.why-canada-leaf { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); color: rgba(212,43,43,.06); pointer-events: none; line-height: 0; }
.why-canada-leaf .leaf { width: clamp(260px,40vw,540px); height: auto; }
.why-canada-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,72px); align-items: center; }
.why-canada-text .eyebrow { color: var(--red-on-dark); }
.why-canada-text h2 { font-family: var(--font-head); font-weight: 900; font-size: clamp(34px,4.6vw,62px); line-height: .98; text-transform: uppercase; color: #fff; margin: 12px 0 20px; }
.why-canada-text p { font-size: var(--text-body); line-height: 1.8; color: rgba(255,255,255,.66); max-width: 46ch; }
.why-canada-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.why-canada-points li { display: flex; align-items: flex-start; gap: 14px; color: rgba(255,255,255,.84); font-size: 16px; line-height: 1.5; }
.why-canada-points .leaf { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 1px; }
@media (max-width: 860px) { .why-canada-inner { grid-template-columns: 1fr; gap: 34px; } }

/* =============================================================
   LEGAL / INFO PAGES (privacy, terms, accessibility)
   ============================================================= */
.legal-head { background: var(--charcoal); padding: clamp(96px,12vw,150px) var(--pad-x) clamp(36px,5vw,56px); }
.legal-head .wrap { max-width: var(--maxw); margin: 0 auto; }
.legal-head .breadcrumb { color: rgba(255,255,255,.72); font-size: 14px; letter-spacing: .04em; margin-bottom: 18px; }
.legal-head .breadcrumb a { color: #fff; text-decoration: none; }
.legal-head .breadcrumb a:hover { text-decoration: underline; }
.legal-head h1 { font-family: var(--font-head); font-weight: 900; font-size: clamp(34px,5vw,60px); line-height: 1; text-transform: uppercase; color: #fff; }
.legal-updated { color: rgba(255,255,255,.72); font-size: 15px; margin-top: 14px; }
.legal { padding: clamp(48px,6vw,84px) var(--pad-x); background: #fff; }
.legal-body { max-width: 760px; margin: 0 auto; }
.legal-body h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px,2.6vw,28px); text-transform: uppercase; color: var(--charcoal); margin: 42px 0 14px; }
.legal-body > p:first-child { font-size: 18px; color: #2a2a2a; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.75; color: #333; }
.legal-body p { margin-bottom: 18px; }
.legal-body ul { margin: 0 0 18px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--charcoal); font-weight: 600; }
.legal-body a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--red); }
.legal-contact { line-height: 1.85; }

/* =============================================================
   ACCESSIBILITY (WCAG 2.0 AA) — focus, form rings, contrast
   ============================================================= */
/* Clear focus ring on form fields (border-colour change alone is too subtle). */
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74,144,196,.4); }
/* Keep the brand-red CTA's focus ring visible against red. */
.btn:focus-visible, .nav-cta:focus-visible, .nav-cta--mobile:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
