/* ==========================================================================
   REXCRON — main stylesheet
   Design tokens from brand spec. Dark, restrained, yellow as sharp accent.
   ========================================================================== */

:root{
  --ink:        #16181c;
  --ink-2:      #20232a;
  --black:      #060708;
  --paper:      #f4f1e8;
  --yellow:     #f5b50a;
  --yellow-deep:#d99a00;
  --muted:      #6f6b61;
  --steel:      #9aa0a7;
  --steel-2:    #d4d7d8;
  --line-dark:  rgba(255,255,255,.13);
  --font-display:'Saira Condensed', sans-serif;
  --font-body:   'Saira', sans-serif;
  --font-mono:   'Space Mono', monospace;
  --max:         1200px;
  --pad:         clamp(16px, 4vw, 40px);
  /* header height: .site-header .wrap min-height (72px) + 1px bottom border.
     The mobile nav panel offsets itself by this, so keep the two in step. */
  --header-h:    73px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--black);
  color:var(--steel-2);
  font-family:var(--font-body);
  font-weight:400;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:800;
  text-transform:uppercase;
  line-height:1.02;
  letter-spacing:.015em;
  margin:0 0 .4em;
  color:var(--steel-2);
}
p{ margin:0 0 1em; }
:focus-visible{ outline:2px solid var(--yellow); outline-offset:3px; }
.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;
}

/* ---------- layout primitives ---------- */
.wrap{ max-width:var(--max); margin:0 auto; padding-inline:var(--pad); }
.section{ padding-block:clamp(64px, 8vw, 96px); position:relative; }
.section--tight{ padding-block:clamp(40px, 5vw, 64px); }
.eyebrow{
  font-family:var(--font-mono);
  font-size:.74rem;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--yellow);
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 0 16px;
}
.eyebrow::before{ content:""; width:36px; height:1px; background:var(--yellow); }
.section-title{
  font-size:clamp(2rem, 4.2vw, 3.1rem);
}
.section-title .accent, .hero-title .accent{ color:var(--yellow); }
.section-sub{ color:var(--steel); max-width:52ch; margin:0; font-size:1rem; }
.section-grid{
  display:grid;
  grid-template-columns:minmax(230px, .8fr) 2fr;
  gap:clamp(28px, 4vw, 56px);
  align-items:start;
}
.section-intro{ position:sticky; top:110px; }
.section-intro p{ color:var(--steel); font-size:.98rem; max-width:32ch; }

/* corner brackets accent (technical frame) */
.frame-corners{ position:relative; }
.frame-corners::before,
.frame-corners::after{
  content:""; position:absolute; width:26px; height:26px;
  border:1px solid var(--steel); opacity:.55; pointer-events:none;
}
.frame-corners::before{ top:-1px; left:-1px; border-right:0; border-bottom:0; }
.frame-corners::after{ bottom:-1px; right:-1px; border-left:0; border-top:0; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:12px;
  min-height:48px; padding:12px 26px;
  font-family:var(--font-mono); font-size:.78rem; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase;
  border:1px solid var(--yellow);
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn .arrow{ transition:transform .2s ease; color:var(--yellow-deep); font-weight:700; font-size:.95rem; }
.btn:hover .arrow{ transform:translateX(5px); }
.btn--solid{ background:var(--yellow); color:var(--ink); }
.btn--solid:hover{ background:#ffc626; }
.btn--outline{ background:transparent; color:var(--steel-2); border-color:var(--line-dark); }
.btn--outline:hover{ border-color:var(--yellow); color:var(--yellow); }
.link-arrow{
  font-family:var(--font-mono); font-size:.74rem; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase; color:var(--yellow);
  display:inline-flex; align-items:center; gap:10px; margin-top:14px;
}
.link-arrow .arrow{ transition:transform .2s ease; }
.link-arrow:hover .arrow{ transform:translateX(5px); }

/* ---------- image placeholders ---------- */
.ph-img{
  position:relative; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(155deg, #252932 0%, #171a20 55%, #101216 100%);
  border:1px solid var(--line-dark);
  min-height:200px; overflow:hidden;
}
.ph-img::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(360px 180px at 50% 30%, rgba(245,181,10,.08), transparent 70%);
}
.ph-img::after{
  content:attr(data-label);
  position:relative;
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.18em;
  text-transform:uppercase; color:var(--steel); text-align:center; padding:12px;
}
.ph-img img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(6,7,8,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-dark);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  min-height:72px; gap:24px;
}
.brand{ display:flex; align-items:center; }
.brand-logo{ height:29px; width:auto; display:block; }
.footer-brand .brand-logo{ height:33px; }
.main-nav ul{ display:flex; gap:6px; list-style:none; margin:0; padding:0; }
.main-nav a{
  display:inline-flex; align-items:center; gap:6px;
  padding:10px 14px; min-height:44px;
  font-family:var(--font-mono); font-size:.72rem; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase; color:var(--steel-2);
  transition:color .2s ease;
}
.main-nav a:hover{ color:var(--yellow); }
/* mobile-panel-only quote CTA — the header already shows .header-cta on desktop */
.main-nav .nav-cta-item{ display:none; }
.main-nav .caret{ width:8px; height:8px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg) translateY(-2px); }
.menu-toggle{
  display:none; background:none; border:1px solid var(--line-dark);
  width:48px; height:44px; cursor:pointer;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.menu-toggle span{ width:20px; height:2px; background:var(--steel-2); transition:.25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero{
  position:relative; overflow:hidden;
  background:var(--black);
  border-bottom:1px solid var(--line-dark);
  min-height:min(78vh, 700px);
  display:flex; align-items:center;
}
.hero-bg{
  position:absolute; inset:0; z-index:0;
  background:url('../hero-machines.jpg') right center / cover no-repeat;
}
/* fade the dark left side of the photo into the page background
   so copy sits on the image as one continuous section */
.hero-bg::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,
    var(--black) 0%, rgba(6,7,8,.92) 28%,
    rgba(6,7,8,.45) 55%, rgba(6,7,8,.12) 78%);
}
.hero-bg::after{
  content:""; position:absolute; inset:auto 0 0 0; height:34%;
  background:linear-gradient(180deg, transparent, rgba(6,7,8,.85));
}
.hero .wrap{
  position:relative; z-index:1; width:100%;
  padding-block:clamp(48px, 6vw, 84px);
}
.hero-copy{
  position:relative; max-width:600px;
  padding:clamp(20px, 3vw, 36px) clamp(16px, 2.5vw, 30px);
}
/* technical corner brackets framing the copy block (as per approved design) */
.hero-copy::before,
.hero-copy::after{
  content:""; position:absolute; width:34px; height:34px;
  border:1px solid var(--steel); opacity:.6; pointer-events:none;
}
.hero-copy::before{ top:0; left:0; border-right:0; border-bottom:0; }
.hero-copy::after{ bottom:0; right:0; border-left:0; border-top:0; }
.hero-title{
  font-size:clamp(2.7rem, 6vw, 4.9rem);
  letter-spacing:.005em;
}
.hero-sub{ color:var(--steel-2); max-width:46ch; font-size:1.02rem; text-shadow:0 1px 8px rgba(0,0,0,.6); }
.hero-ctas{ display:flex; flex-wrap:wrap; gap:16px; margin-top:30px; }
.hero-ctas .btn{ min-width:230px; justify-content:space-between; }

/* ---------- category strip ---------- */
.cat-strip{ border-bottom:1px solid var(--line-dark); background:var(--black); }
.cat-strip ul{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(6,1fr);
}
.cat-strip a{
  display:flex; flex-direction:column; align-items:center; gap:12px;
  padding:26px 10px 20px; min-height:44px; position:relative;
  font-family:var(--font-mono); font-size:.7rem; font-weight:700;
  letter-spacing:.2em; text-transform:uppercase; color:var(--steel);
  border-left:1px solid var(--line-dark);
  transition:color .2s ease;
}
.cat-strip li:last-child a{ border-right:1px solid var(--line-dark); }
.cat-strip a::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px;
  background:var(--yellow); transform:scaleX(0); transition:transform .25s ease;
}
.cat-strip a:hover{ color:var(--steel-2); }
.cat-strip a:hover::after, .cat-strip a.is-active::after{ transform:scaleX(1); }
.cat-strip a.is-active{ color:#fff; }
.cat-strip svg{ width:34px; height:34px; stroke:currentColor; }

/* ---------- The Range ---------- */
.world-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.world-tile{
  border:1px solid var(--line-dark); background:var(--ink-2);
  display:flex; flex-direction:column; overflow:hidden;
  transition:border-color .25s ease, transform .25s ease;
}
.world-tile:hover{ border-color:var(--yellow); transform:translateY(-4px); }
.world-tile .ph-img{ border:0; border-bottom:1px solid var(--line-dark); min-height:230px; }
.world-tile__body{ padding:24px 24px 26px; }
.world-tile__body h3{ font-size:1.45rem; }
.world-tile--ghost{ opacity:.7; }
.world-tile--ghost:hover{ border-color:var(--line-dark); transform:none; }
.world-tile--ghost .ph-img{
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,.055) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.055) 23px 24px),
    linear-gradient(155deg, #1e2129, #14161b);
}
.world-tile--ghost h3{ color:var(--steel); }
.tile-meta{
  display:flex; justify-content:space-between; align-items:center; margin-top:16px;
  font-family:var(--font-mono); font-size:.74rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--steel);
}
.tile-meta .go{ color:var(--yellow); font-size:1rem; }

/* ---------- end-to-end chain ---------- */
.chain{ list-style:none; margin:34px 0 0; padding:0; display:grid; grid-template-columns:repeat(6,1fr); position:relative; }
.chain li{ text-align:center; padding:0 12px; position:relative; }
.chain li:not(:last-child)::after{
  content:""; position:absolute; top:36px; left:calc(50% + 44px); right:calc(-50% + 44px);
  height:1px; background:var(--line-dark);
}
.chain .node{
  width:76px; height:76px; margin:0 auto 16px; border:1px solid rgba(255,255,255,.22);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--ink-2); position:relative; z-index:1;
}
.chain .node svg{ width:32px; height:32px; stroke:var(--steel-2); }
.chain h3{ font-size:1.15rem; margin-bottom:6px; letter-spacing:.06em; }
.chain p{ font-size:.8rem; color:var(--steel); margin:0; }
.chain li.is-hot .node{ border-color:var(--yellow); }
.chain li.is-hot .node svg{ stroke:var(--yellow); }
.chain li.is-hot h3{ color:var(--yellow); }

/* ---------- card grids (why / support / industries / start) ---------- */
.card-grid{ display:grid; gap:18px; }
.card-grid--4{ grid-template-columns:repeat(4,1fr); }
.card-grid--3{ grid-template-columns:repeat(3,1fr); }
.card-grid--6{ grid-template-columns:repeat(3,1fr); }
.info-card{
  border:1px solid var(--line-dark); background:var(--ink-2);
  padding:30px 26px; transition:border-color .25s ease, transform .25s ease;
  display:flex; flex-direction:column; min-height:100%;
}
.info-card:hover{ border-color:rgba(245,181,10,.65); transform:translateY(-3px); }
.info-card .icon{
  width:54px; height:54px; border:1px solid rgba(245,181,10,.35); border-radius:50%;
  display:flex; align-items:center; justify-content:center; margin-bottom:20px; flex:none;
}
.info-card .icon svg{ width:25px; height:25px; stroke:var(--yellow); }
.info-card h3{ font-size:1.2rem; letter-spacing:.04em; }
.info-card p{ font-size:.87rem; color:var(--steel); margin:0; }
.info-card .link-arrow{ margin-top:auto; padding-top:18px; }

/* ---------- proof band ---------- */
.proof{ background:linear-gradient(180deg, var(--black), #0a0b0d); border-block:1px solid var(--line-dark); }
.badge-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.badge-cell{
  border:1px solid var(--line-dark); background:var(--ink-2);
  padding:26px 16px 18px; text-align:center;
  transition:border-color .25s ease;
}
.badge-cell:hover{ border-color:rgba(245,181,10,.55); }
.badge-cell .mark{
  font-family:var(--font-display); font-weight:800; font-size:1.85rem;
  color:var(--steel-2); text-transform:uppercase; line-height:1.1; min-height:2em;
  display:flex; align-items:center; justify-content:center;
}
.badge-cell .mark.mono{ font-family:var(--font-mono); font-size:1.45rem; font-weight:700; }
.badge-cell .mark svg{ width:46px; height:46px; stroke:var(--steel-2); }
.badge-cell .label{
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.08em;
  text-transform:uppercase; color:var(--steel); margin-top:12px;
  border-top:1px solid var(--line-dark); padding-top:12px;
}

/* ---------- product cards ---------- */
.product-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.product-grid--4{ grid-template-columns:repeat(4,1fr); }
.product-card{
  border:1px solid var(--line-dark); background:var(--ink-2);
  overflow:hidden; display:flex; flex-direction:column;
  transition:border-color .25s ease, transform .25s ease;
}
.product-card:hover{ border-color:var(--yellow); transform:translateY(-4px); }
.product-card .ph-img{ border:0; border-bottom:1px solid var(--line-dark); min-height:240px; }
.product-grid--4 .product-card .ph-img{ min-height:180px; }
.product-card__body{ padding:24px; display:flex; flex-direction:column; flex:1; }
.product-card__body h3{ font-size:1.65rem; margin-bottom:6px; }
.product-card__body .desc{ font-size:.85rem; color:var(--steel); margin-bottom:18px; }
.spec-chips{
  list-style:none; margin:auto 0 0; padding:16px 0 0; display:flex; flex-wrap:wrap; gap:10px 20px;
  border-top:1px solid var(--line-dark);
}
.spec-chips li{
  display:flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.05em;
  text-transform:uppercase; color:var(--steel-2);
}
.spec-chips svg{ width:15px; height:15px; stroke:var(--yellow); flex:none; }
.product-card .go-row{
  display:flex; justify-content:flex-end; padding:0 22px 18px;
}
.product-card .go-row .arrow{ color:var(--yellow); font-size:1.1rem; }

/* ---------- brand banner ---------- */
.brand-banner{
  border-block:1px solid var(--line-dark);
  background:linear-gradient(90deg, #0b0c0e, var(--ink) 50%, #0b0c0e);
  text-align:center;
}
.brand-banner h2{ font-size:clamp(1.7rem, 4vw, 2.9rem); margin-bottom:6px; }
.brand-banner .icons{
  display:flex; justify-content:center; gap:clamp(24px, 6vw, 72px); margin-top:28px;
}
.brand-banner .icons div{
  display:flex; flex-direction:column; align-items:center; gap:10px;
  font-family:var(--font-mono); font-size:.66rem; letter-spacing:.2em;
  text-transform:uppercase; color:var(--steel);
}
.brand-banner .icons svg{ width:30px; height:30px; stroke:var(--steel-2); }

/* ---------- heritage / map ---------- */
.heritage-grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,5vw,64px); align-items:start; }
.heritage-facts{ list-style:none; margin:26px 0 30px; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:18px 26px; }
.heritage-facts li{ border-left:2px solid var(--yellow); padding-left:16px; }
.heritage-facts h3{ font-size:1.15rem; margin-bottom:4px; }
.heritage-facts p{ font-size:.83rem; color:var(--steel); margin:0; }
.map-box{ position:relative; border:1px solid var(--line-dark); background:var(--ink); padding:26px; }
.map-box svg{ width:100%; height:auto; }
.map-legend{ list-style:none; margin:20px 0 0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.map-legend li{ font-size:.8rem; color:var(--steel); }
.map-legend strong{
  display:flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--steel-2); margin-bottom:2px;
}
.map-legend strong::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--yellow); box-shadow:0 0 8px var(--yellow); }

/* ---------- industries ---------- */
.industry-card{ position:relative; border:1px solid var(--line-dark); overflow:hidden; min-height:220px; display:flex; align-items:flex-end; }
.industry-card .ph-img{ position:absolute; inset:0; min-height:0; border:0; }
.industry-card .overlay{
  position:relative; width:100%; padding:22px;
  background:linear-gradient(180deg, transparent, rgba(6,7,8,.94) 60%);
}
.industry-card h3{ font-size:1.25rem; margin-bottom:4px; display:flex; align-items:center; gap:10px; }
.industry-card h3 svg{ width:21px; height:21px; stroke:var(--yellow); }
.industry-card p{ font-size:.8rem; color:var(--steel); margin:0; }

/* ---------- footer ---------- */
.site-footer{ border-top:1px solid var(--line-dark); background:#050607; }
.footer-top{
  display:grid; grid-template-columns:1.6fr repeat(5, 1fr); gap:32px;
  padding-block:clamp(44px, 6vw, 72px);
}
.footer-brand .tagline{ color:var(--steel); font-size:.85rem; max-width:30ch; }
.social{ display:flex; gap:12px; margin-top:18px; }
.social a{
  width:40px; height:40px; border:1px solid var(--line-dark); border-radius:50%;
  display:flex; align-items:center; justify-content:center; transition:border-color .2s ease;
}
.social a:hover{ border-color:var(--yellow); }
.social svg{ width:16px; height:16px; stroke:var(--steel-2); }
.footer-col h4{
  font-family:var(--font-mono); font-size:.7rem; font-weight:700;
  letter-spacing:.2em; text-transform:uppercase; color:var(--yellow); margin-bottom:16px;
}
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-col a{
  display:block; padding:6px 0; font-size:.84rem; color:var(--steel); transition:color .2s ease;
}
.footer-col a:hover{ color:var(--steel-2); }
.footer-bottom{
  border-top:1px solid var(--line-dark); padding-block:20px;
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px;
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--muted);
}
.footer-bottom nav{ display:flex; gap:22px; }

/* ---------- reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  *{ transition:none !important; }
  html{ scroll-behavior:auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:1023px){
  .hero{ min-height:0; }
  .hero-bg{ background-position:70% center; }
  .hero-bg::before{
    background:linear-gradient(90deg,
      var(--black) 0%, rgba(6,7,8,.88) 45%,
      rgba(6,7,8,.45) 80%, rgba(6,7,8,.25) 100%);
  }
  .menu-toggle{ display:flex; }
  /* IMPORTANT: no backdrop-filter here. An element with filter/backdrop-filter
     becomes the containing block for its position:fixed descendants, which
     traps the nav panel below inside the ~73px header instead of the viewport.
     The background is made opaque to compensate for the lost blur. */
  .site-header{
    -webkit-backdrop-filter:none;
            backdrop-filter:none;
    background:var(--black);
  }
  .main-nav{
    position:fixed; inset:var(--header-h) 0 0 0; background:var(--black);
    transform:translateX(100%); transition:transform .3s ease;
    padding:32px var(--pad) calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y:auto; overscroll-behavior:contain;
  }
  .main-nav.open{ transform:none; }
  .main-nav:focus{ outline:none; }
  .main-nav ul{ flex-direction:column; gap:2px; }
  .main-nav a{ font-size:1rem; padding:16px 4px; border-bottom:1px solid var(--line-dark); }
  /* the desktop "Request a Quote" button is hidden below 1023px, so the panel
     carries its own copy — otherwise mobile has no quote CTA in the nav */
  .main-nav .nav-cta-item{ display:block; }
  .main-nav .nav-cta{
    display:flex; justify-content:center; width:100%;
    margin-top:22px; border-bottom:0;
    background:var(--yellow); color:var(--ink);
    font-family:var(--font-mono); font-size:.78rem; font-weight:700;
    letter-spacing:.14em; text-transform:uppercase;
    padding:16px 20px;
  }
  /* page must not scroll behind the open panel */
  body.nav-open{ overflow:hidden; }
  .section-grid{ grid-template-columns:1fr; }
  .section-intro{ position:static; }
  .card-grid--4{ grid-template-columns:repeat(2,1fr); }
  .card-grid--6{ grid-template-columns:repeat(2,1fr); }
  .badge-grid{ grid-template-columns:repeat(3,1fr); }
  .product-grid, .product-grid--4{ grid-template-columns:repeat(2,1fr); }
  .world-grid{ grid-template-columns:repeat(2,1fr); }
  .heritage-grid{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr 1fr 1fr; }
}
@media (max-width:767px){
  .cat-strip ul{ grid-template-columns:repeat(3,1fr); }
  .cat-strip a:nth-child(n+4){ border-top:1px solid var(--line-dark); }
  .hero-ctas{ flex-direction:column; }
  .hero-ctas .btn{ width:100%; }
  .world-grid, .card-grid--3, .card-grid--4, .product-grid, .product-grid--4{ grid-template-columns:1fr; }
  .card-grid--6{ grid-template-columns:repeat(2,1fr); }
  .badge-grid{ grid-template-columns:repeat(2,1fr); }
  /* chain becomes vertical */
  .chain{ grid-template-columns:1fr; gap:26px; max-width:420px; margin-inline:auto; }
  .chain li{ display:grid; grid-template-columns:72px 1fr; gap:18px; text-align:left; align-items:center; }
  .chain li:not(:last-child)::after{
    top:auto; bottom:-26px; left:36px; right:auto; width:1px; height:26px;
  }
  .chain .node{ margin:0; }
  .heritage-facts{ grid-template-columns:1fr; }
  .map-legend{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; }
}

/* ==========================================================================
   PRODUCT PAGE (single-product.php)
   ========================================================================== */
.pdp-hero{
  position:relative; overflow:hidden;
  border-bottom:1px solid var(--line-dark);
  background:var(--black);
  min-height:min(72vh, 620px);
  display:flex; align-items:flex-end;
}
.pdp-hero__bg{
  position:absolute; inset:0;
  background:url('../rx-c480.jpg') right center / auto 130% no-repeat;
  opacity:.9;
}
.pdp-hero__bg::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,
    var(--black) 0%, rgba(6,7,8,.94) 34%,
    rgba(6,7,8,.55) 62%, rgba(6,7,8,.2) 88%);
}
.pdp-hero__bg::after{
  content:""; position:absolute; inset:auto 0 0 0; height:36%;
  background:linear-gradient(180deg, transparent, rgba(6,7,8,.9));
}
.pdp-hero .wrap{ position:relative; z-index:1; width:100%; padding-block:clamp(28px,4vw,48px) clamp(48px,6vw,80px); }
.pdp-crumbs{
  display:flex; gap:10px; margin-bottom:clamp(26px,4vw,44px);
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--steel);
}
.pdp-crumbs a{ color:var(--steel); }
.pdp-crumbs a:hover{ color:var(--yellow); }
.pdp-crumbs [aria-current]{ color:var(--steel-2); }
.pdp-title{
  font-size:clamp(3.2rem, 8vw, 6.4rem);
  color:var(--steel-2); margin-bottom:6px;
}
.pdp-tagline{
  font-family:var(--font-display); font-weight:700; text-transform:uppercase;
  font-size:clamp(1.05rem, 2.2vw, 1.5rem); letter-spacing:.05em;
  color:var(--yellow); margin-bottom:26px;
}
.pdp-keycaps{
  list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:14px;
}
.pdp-keycaps li{
  border:1px solid var(--line-dark); background:rgba(22,24,28,.82);
  backdrop-filter:blur(6px);
  padding:14px 22px; min-width:170px;
}
.pdp-keycaps strong{
  display:block; font-family:var(--font-mono); font-weight:700;
  font-size:1rem; letter-spacing:.04em; color:var(--steel-2);
}
.pdp-keycaps span{
  font-family:var(--font-mono); font-size:.64rem; letter-spacing:.16em;
  text-transform:uppercase; color:var(--steel);
}

/* overview */
.pdp-overview{
  display:grid; grid-template-columns:1fr 1.05fr; gap:clamp(30px,5vw,64px);
  align-items:start;
}
.pdp-gallery__main{ border:1px solid var(--line-dark); background:var(--ink-2); }
.pdp-gallery__main img{ width:100%; height:auto; }
.pdp-gallery__thumbs{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:12px; }
.pdp-gallery__thumbs .ph-img{ min-height:110px; }
.pdp-desc{ color:var(--steel-2); font-size:1.02rem; }
.pdp-quickfacts{
  list-style:none; margin:22px 0 28px; padding:18px 0 0;
  border-top:1px solid var(--line-dark);
  display:flex; flex-wrap:wrap; gap:10px 22px;
}
.pdp-quickfacts li{
  display:flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.05em;
  text-transform:uppercase; color:var(--steel-2);
}
.pdp-quickfacts svg{ width:15px; height:15px; stroke:var(--yellow); flex:none; }
.pdp-assurance{
  display:flex; align-items:center; gap:10px; margin-top:24px;
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.08em;
  text-transform:uppercase; color:var(--steel);
}
.pdp-features{ background:linear-gradient(180deg, var(--black), #0a0b0d); border-block:1px solid var(--line-dark); }

/* spec table */
.pdp-specwrap{ border:1px solid var(--line-dark); background:var(--ink-2); }
.spec-table{ width:100%; border-collapse:collapse; }
.spec-table th, .spec-table td{
  text-align:left; padding:15px 22px; vertical-align:top;
  border-bottom:1px solid var(--line-dark);
}
.spec-table tr:last-child th, .spec-table tr:last-child td{ border-bottom:0; }
.spec-table th{
  font-family:var(--font-mono); font-weight:700; font-size:.72rem;
  letter-spacing:.14em; text-transform:uppercase; color:var(--yellow);
  width:38%; white-space:nowrap;
}
.spec-table td{ font-size:.92rem; color:var(--steel-2); }
.spec-table .verify{
  font-family:var(--font-mono); font-size:.66rem; letter-spacing:.1em;
  color:var(--yellow-deep); text-transform:uppercase;
}

.spec-note{
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.06em;
  color:var(--muted); padding:14px 22px; margin:0;
  border-top:1px solid var(--line-dark); background:var(--ink-2);
  border:1px solid var(--line-dark); border-top:0;
}
/* accessories strip */
.pdp-accessories{
  border:1px solid var(--line-dark); background:var(--ink-2);
  padding:26px 28px;
}
.pdp-acc-title{
  font-family:var(--font-mono); font-weight:700; font-size:.74rem;
  letter-spacing:.2em; text-transform:uppercase; color:var(--yellow); margin-bottom:16px;
}
.pdp-acc-list{
  list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:10px;
}
.pdp-acc-list li{
  border:1px solid var(--line-dark); padding:10px 16px;
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.08em;
  text-transform:uppercase; color:var(--steel-2);
  display:flex; align-items:center; gap:8px;
}
.pdp-acc-list li::before{
  content:""; width:6px; height:6px; background:var(--yellow); flex:none;
}

/* enquiry band */
.pdp-enquire__inner{
  border:1px solid var(--line-dark); background:var(--ink-2);
  padding:clamp(30px,5vw,56px);
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:26px;
}

@media (max-width:1023px){
  .pdp-overview{ grid-template-columns:1fr; }
  .pdp-hero__bg{ background-position:75% center; background-size:cover; }
}
@media (max-width:767px){
  .pdp-keycaps li{ flex:1 1 46%; min-width:0; }
  .spec-table th{ width:auto; white-space:normal; }
  .pdp-gallery__thumbs{ grid-template-columns:1fr 1fr 1fr; }
}

/* ==========================================================================
   CATEGORY HUB (page-machines.php) — per approved mockup
   ========================================================================== */

/* header CTA */
.header-cta{
  display:inline-flex; align-items:center; gap:10px;
  min-height:40px; padding:8px 18px;
  font-family:var(--font-mono); font-size:.7rem; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase;
  background:var(--yellow); color:var(--ink);
  transition:background .2s ease;
}
.header-cta:hover{ background:#ffc626; }
@media (max-width:1023px){ .header-cta{ display:none; } }

/* category hero */
.cat-hero{
  position:relative; overflow:hidden;
  background:var(--black);
  border-bottom:1px solid var(--line-dark);
}
/* Only heroes that actually carry a banner get the tall, centred treatment —
   Privacy/Contact/Support use .cat-hero without a .cat-hero__bg child. */
.cat-hero:has(> .cat-hero__bg){
  min-height:min(58vh, 460px);
  display:flex; align-items:center;
}
/* The banner image is feathered with a mask so its own left edge dissolves
   into the page instead of ending on a hard vertical seam — this is what
   makes the product hero (.pdp-hero) read as one continuous section. */
.cat-hero__bg{
  position:absolute; inset:0;
  background:url('../hub-crimping-lineup.png') right bottom / auto 92% no-repeat;
  opacity:.92;
  -webkit-mask-image:linear-gradient(90deg,
    transparent 0%, rgba(0,0,0,.12) 22%, rgba(0,0,0,.6) 44%, #000 68%);
          mask-image:linear-gradient(90deg,
    transparent 0%, rgba(0,0,0,.12) 22%, rgba(0,0,0,.6) 44%, #000 68%);
}
/* Darkening sits on the section, not on the masked image layer, so the
   fade strength is independent of the mask. */
.cat-hero__bg::before{ content:none; }
.cat-hero::after{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    linear-gradient(90deg,
      var(--black) 0%, rgba(6,7,8,.94) 32%,
      rgba(6,7,8,.58) 60%, rgba(6,7,8,.18) 88%),
    linear-gradient(180deg, transparent 58%, rgba(6,7,8,.9) 100%);
}
.cat-hero .wrap{ position:relative; z-index:1; width:100%; padding-block:clamp(20px,3vw,32px) clamp(30px,4vw,48px); }
.cat-hero .pdp-crumbs{ margin-bottom:clamp(16px,2.5vw,28px); }
.cat-hero__title{
  font-size:clamp(2.4rem, 5.5vw, 4.2rem);
  margin-bottom:10px;
}
.cat-hero__title .accent{ color:var(--yellow); }
.cat-hero__sub{ color:var(--steel-2); max-width:44ch; font-size:.95rem; margin:0; }

/* trust strip */
.trust-strip{ border-bottom:1px solid var(--line-dark); background:var(--ink); }
.trust-strip ul{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(5,1fr);
}
.trust-strip li{
  display:flex; align-items:center; gap:10px;
  padding:12px 14px; border-left:1px solid var(--line-dark);
}
.trust-strip li:first-child{ border-left:0; }
.trust-strip svg{ width:18px; height:18px; stroke:var(--yellow); flex:none; }
.trust-strip strong{
  display:block; font-family:var(--font-mono); font-size:.62rem; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; color:var(--steel-2);
}
.trust-strip span{
  font-family:var(--font-mono); font-size:.58rem; letter-spacing:.08em;
  text-transform:uppercase; color:var(--steel);
}

/* hub layout */
.hub-layout{
  display:grid; grid-template-columns:230px 1fr;
  gap:clamp(20px, 2.5vw, 32px); align-items:start;
}

/* filter sidebar */
.hub-filters{
  border:1px solid var(--line-dark); background:var(--ink-2);
  padding:16px 18px; position:sticky; top:88px;
}
.hub-filters__head{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:4px;
}
.hub-filters__head h2{
  font-family:var(--font-mono); font-size:.7rem; font-weight:700;
  letter-spacing:.2em; text-transform:uppercase; color:var(--steel-2); margin:0;
}
.hub-reset{
  background:none; border:0; cursor:pointer; padding:0;
  font-family:var(--font-mono); font-size:.6rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--yellow);
}
.hub-reset:hover{ color:#ffc626; }
.hub-group{
  border:0; border-top:1px solid var(--line-dark);
  margin:10px 0 0; padding:12px 0 0;
}
.hub-group legend{
  font-family:var(--font-mono); font-size:.62rem; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase; color:var(--yellow);
  padding:0; margin-bottom:2px;
}
.hub-group label{
  display:flex; align-items:center; gap:9px;
  padding:3px 0; font-size:.78rem; color:var(--steel-2); cursor:pointer;
}
.hub-group input[type="checkbox"]{
  appearance:none; width:13px; height:13px; flex:none;
  border:1px solid var(--steel); background:transparent; cursor:pointer;
  display:inline-grid; place-content:center;
}
.hub-group input[type="checkbox"]:checked{ background:var(--yellow); border-color:var(--yellow); }
.hub-group input[type="checkbox"]:checked::after{
  content:""; width:7px; height:4px;
  border-left:2px solid var(--ink); border-bottom:2px solid var(--ink);
  transform:rotate(-45deg) translateY(-1px);
}
.hub-clear{ width:100%; margin-top:14px; min-height:38px; padding:8px 14px; }
.hub-note{
  margin:12px 0 0; font-size:.7rem; color:var(--steel);
}
.hub-note a{ color:var(--yellow); text-decoration:underline; }

/* hub bar + sort */
.hub-bar{
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center;
  gap:10px; margin-bottom:16px;
}
.hub-count{
  margin:0; font-family:var(--font-mono); font-size:.68rem;
  letter-spacing:.1em; text-transform:uppercase; color:var(--steel);
}
.hub-sort{
  display:flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:.66rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--steel);
}
.hub-sort select{
  background:var(--ink-2); color:var(--steel-2);
  border:1px solid var(--line-dark); padding:7px 10px;
  font-family:var(--font-mono); font-size:.66rem; letter-spacing:.06em;
  text-transform:uppercase; cursor:pointer;
}

/* hub product cards */
.hub-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.hub-card{
  border:1px solid var(--line-dark); background:var(--ink-2);
  display:flex; flex-direction:column; overflow:hidden;
  transition:border-color .25s ease, transform .25s ease;
}
.hub-card:hover{ border-color:var(--yellow); transform:translateY(-3px); }
.hub-card a{ display:flex; flex-direction:column; flex:1; }
.hub-card .ph-img{ border:0; border-bottom:1px solid var(--line-dark); min-height:130px; }
.hub-card__body{ padding:14px 14px 16px; display:flex; flex-direction:column; flex:1; }
.hub-card__series{
  margin:0 0 4px; font-family:var(--font-mono); font-size:.56rem;
  letter-spacing:.18em; text-transform:uppercase; color:var(--yellow);
}
.hub-card__body h3{ font-size:1.3rem; margin-bottom:3px; }
.hub-card__body .desc{ font-size:.74rem; color:var(--steel); margin-bottom:10px; }
.hub-card__specs{
  list-style:none; margin:auto 0 12px; padding:10px 0 0;
  border-top:1px solid var(--line-dark);
  display:grid; gap:5px;
}
.hub-card__specs li{
  display:flex; justify-content:space-between; align-items:baseline; gap:8px;
}
.hub-card__specs span{
  font-family:var(--font-mono); font-size:.56rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--steel);
}
.hub-card__specs strong{
  font-family:var(--font-mono); font-size:.68rem; font-weight:700;
  letter-spacing:.04em; color:var(--steel-2); white-space:nowrap;
}
.hub-card__cta{
  display:flex; justify-content:space-between; align-items:center;
  border:1px solid var(--line-dark); padding:8px 12px;
  font-family:var(--font-mono); font-size:.6rem; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase; color:var(--yellow);
  transition:border-color .2s ease, background .2s ease, color .2s ease;
}
.hub-card:hover .hub-card__cta{ border-color:var(--yellow); }
.hub-card__cta .arrow{ color:var(--yellow-deep); }
.hub-empty{
  border:1px dashed var(--line-dark); padding:32px 20px; text-align:center;
  color:var(--steel); font-size:.85rem;
}

/* value strip */
.hub-value{ background:var(--ink); border-block:1px solid var(--line-dark); }
.hub-value__grid{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(4,1fr); gap:18px;
}
.hub-value__grid li{
  border-left:2px solid var(--yellow); padding-left:14px;
}
.hub-value__grid svg{ width:18px; height:18px; stroke:var(--yellow); margin-bottom:8px; }
.hub-value__grid h3{ font-size:.98rem; margin-bottom:4px; letter-spacing:.04em; }
.hub-value__grid p{ font-size:.76rem; color:var(--steel); margin:0; }

/* cross-link banner */
.crosslink-banner{
  position:relative; overflow:hidden;
  border-bottom:1px solid var(--line-dark);
  background:var(--black);
}
.crosslink-banner__bg{
  position:absolute; inset:0;
  background:url('../hub-hose-banner.jpg') right center / cover no-repeat;
}
.crosslink-banner__bg::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,
    var(--black) 0%, rgba(6,7,8,.9) 35%,
    rgba(6,7,8,.55) 65%, rgba(6,7,8,.25) 100%);
}
.crosslink-banner__inner{
  position:relative; z-index:1;
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center;
  gap:20px; padding-block:clamp(34px, 4.5vw, 56px);
}
.crosslink-banner h2{ font-size:clamp(1.6rem, 3.6vw, 2.6rem); margin-bottom:6px; }
.crosslink-banner h2 .accent{ color:var(--yellow); }
.crosslink-banner p{ color:var(--steel); margin:0; font-size:.9rem; }

/* hub responsive */
.hub.section, .hub-value.section{ padding-block:clamp(28px, 3.5vw, 44px); }
@media (max-width:1180px){
  .hub-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:1023px){
  .hub-layout{ grid-template-columns:1fr; }
  .hub-filters{ position:static; }
  .trust-strip ul{ grid-template-columns:repeat(2,1fr); }
  .trust-strip li{ border-top:1px solid var(--line-dark); }
  .hub-value__grid{ grid-template-columns:repeat(2,1fr); }
  .cat-hero__bg{ background-position:80% bottom; opacity:.5; }
  /* on narrow screens the banner sits behind the copy, so fade it top-to-bottom
     rather than left-to-right and let the hero shrink back to content height */
  .cat-hero:has(> .cat-hero__bg){ min-height:min(46vh, 340px); }
  .cat-hero__bg{
    -webkit-mask-image:linear-gradient(180deg, rgba(0,0,0,.25) 0%, #000 55%);
            mask-image:linear-gradient(180deg, rgba(0,0,0,.25) 0%, #000 55%);
  }
  .cat-hero::after{
    background:linear-gradient(180deg, rgba(6,7,8,.72) 0%, rgba(6,7,8,.88) 55%, rgba(6,7,8,.96) 100%);
  }
}
@media (max-width:767px){
  .hub-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .hub-grid{ grid-template-columns:1fr; }
  .trust-strip ul{ grid-template-columns:1fr; }
  .hub-value__grid{ grid-template-columns:1fr; }
}

/* ==========================================================================
   HOSES PAGE (page-hoses.php)
   ========================================================================== */
.cat-hero--hoses .cat-hero__bg{
  background:url('../hub-hose-lineup.png') right bottom / auto 92% no-repeat;
}
.crosslink-banner--machines .crosslink-banner__bg{
  background:url('../hub-crimping-banner.jpg') right center / cover no-repeat;
}

/* construction system cards */
.construct-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:26px;
}
.construct-card{
  border:1px solid var(--line-dark); background:var(--ink-2);
  padding:22px 22px 24px; position:relative;
  transition:border-color .25s ease;
}
.construct-card:hover{ border-color:rgba(245,181,10,.55); }
.construct-card__num{
  font-family:var(--font-mono); font-size:.66rem; letter-spacing:.2em;
  color:var(--yellow); margin:0 0 12px;
}
.construct-card h3{ font-size:1.35rem; margin-bottom:6px; }
.construct-card__mat{
  font-family:var(--font-mono); font-size:.62rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--yellow); margin:0 0 12px;
}
.construct-card p:last-child{ font-size:.84rem; color:var(--steel); margin:0; }

@media (max-width:1023px){
  .construct-grid{ grid-template-columns:1fr; }
}

/* ==========================================================================
   SUPPORT PAGE (page-support.php)
   ========================================================================== */
.split-2{
  display:grid; grid-template-columns:1fr 1.15fr;
  gap:clamp(24px, 4vw, 52px); align-items:start;
}
.info-card--hot{ border-color:rgba(245,181,10,.65); }

/* service process steps */
.svc-steps{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(4,1fr); gap:18px; counter-reset:step;
}
.svc-steps li{
  border:1px solid var(--line-dark); background:var(--ink-2);
  padding:20px; display:flex; flex-direction:column; gap:10px;
  transition:border-color .25s ease;
}
.svc-steps li:hover{ border-color:rgba(245,181,10,.55); }
.svc-steps__num{
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.2em;
  color:var(--yellow);
}
.svc-steps h3{ font-size:1.05rem; margin-bottom:4px; }
.svc-steps p{ font-size:.8rem; color:var(--steel); margin:0; }

/* form */
.rx-form{
  border:1px solid var(--line-dark); background:var(--ink-2);
  padding:clamp(20px, 3vw, 30px);
  display:flex; flex-direction:column; gap:16px;
}
.rx-form__grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.rx-form__row{ display:flex; flex-direction:column; gap:7px; }
.rx-form label{
  font-family:var(--font-mono); font-size:.62rem; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase; color:var(--steel);
}
.rx-form input, .rx-form select, .rx-form textarea{
  background:var(--black); color:var(--steel-2);
  border:1px solid var(--line-dark); padding:11px 13px;
  font-family:var(--font-body); font-size:.9rem; width:100%;
  transition:border-color .2s ease;
}
.rx-form input:focus, .rx-form select:focus, .rx-form textarea:focus{
  outline:none; border-color:var(--yellow);
}
.rx-form textarea{ resize:vertical; min-height:110px; }
.rx-form__note{
  margin:0; font-family:var(--font-mono); font-size:.62rem;
  letter-spacing:.06em; color:var(--muted); text-align:center;
}

@media (max-width:1023px){
  .split-2{ grid-template-columns:1fr; }
  .svc-steps{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .svc-steps{ grid-template-columns:1fr; }
  .rx-form__grid{ grid-template-columns:1fr; }
}
   DISTRIBUTOR PAGE (page-distributor.php / distributor.html)
   ========================================================================== */
.cat-hero--distributor .cat-hero__bg{
  background:url('../distributor-banner.jpg') right center / cover no-repeat;
}
.hero-cta{
  display:flex; flex-wrap:wrap; gap:14px; margin-top:26px;
}
.hero-cta .btn{ min-width:210px; justify-content:space-between; }

/* inside rexcron gallery */
.gallery-3{
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:28px;
}
.gallery-card{
  margin:0; position:relative; overflow:hidden;
  border:1px solid var(--line-dark); background:var(--ink-2);
}
.gallery-card img{
  display:block; width:100%; aspect-ratio:4/3; object-fit:cover;
  transition:transform .45s ease;
}
.gallery-card:hover img{ transform:scale(1.04); }
.gallery-card figcaption{
  padding:14px 16px 16px; border-top:2px solid var(--yellow);
  display:flex; flex-direction:column; gap:3px;
}
.gallery-card figcaption strong{
  font-family:var(--font-head); text-transform:uppercase;
  font-size:1.02rem; letter-spacing:.03em;
}
.gallery-card figcaption span{ font-size:.76rem; color:var(--steel); }

/* five pillars */
.pillars{
  display:flex; flex-direction:column; gap:34px; margin-top:34px;
}
.pillar{
  border:1px solid var(--line-dark); background:var(--ink-2);
  padding:clamp(20px, 3vw, 32px);
}
.pillar header{
  display:flex; align-items:baseline; gap:16px;
  border-left:3px solid var(--yellow); padding-left:16px; margin-bottom:12px;
}
.pillar__num{
  font-family:var(--font-mono); font-size:.8rem; font-weight:700;
  color:var(--yellow); letter-spacing:.1em;
}
.pillar header h3{
  font-family:var(--font-head); text-transform:uppercase;
  font-size:clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing:.02em; margin:0;
}
.pillar > p{
  color:var(--steel); font-size:.9rem; max-width:70ch; margin:0 0 18px 19px;
}
.pillar .hub-value__grid{
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
}
.pillar .hub-value__grid h4{
  font-size:.95rem; margin:0 0 4px; letter-spacing:.04em;
  font-family:var(--font-head); text-transform:uppercase;
}

/* cta band */
.cta-band{ background:var(--ink-2); border-block:1px solid var(--line-dark); }
.cta-band__inner{
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:26px;
}
.cta-band__inner > div:first-child{ max-width:620px; }
.cta-band__actions{
  display:flex; flex-direction:column; gap:12px; min-width:260px;
}
.cta-band__actions .btn{ justify-content:space-between; }

@media (max-width:1023px){
  .gallery-3{ grid-template-columns:1fr; }
  .pillar > p{ margin-left:0; }
}
@media (max-width:560px){
  .hero-cta{ flex-direction:column; }
  .hero-cta .btn{ width:100%; }
  .cta-band__actions{ width:100%; }
}

/* ==========================================================================
   CONTACT PAGE (page-contact.php / contact.html)
   ========================================================================== */
.offices-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:28px;
}
.office-card{
  border:1px solid var(--line-dark); background:var(--ink-2);
  border-left:2px solid var(--yellow); padding:20px 22px;
  display:flex; flex-direction:column; gap:10px;
}
.office-card h3{
  font-family:var(--font-head); text-transform:uppercase;
  font-size:1.08rem; letter-spacing:.04em; margin:0;
}
.office-card p{
  margin:0; font-size:.82rem; color:var(--steel); line-height:1.65;
}
.office-card a{
  margin-top:auto; font-family:var(--font-mono); font-size:.72rem;
  letter-spacing:.06em; color:var(--yellow); text-decoration:none;
}
.office-card a:hover{ text-decoration:underline; }

@media (max-width:1023px){
  .offices-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .offices-grid{ grid-template-columns:1fr; }
}
   ABOUT / BLOG / POST / LEGAL PAGES
   ========================================================================== */
.cat-hero--about .cat-hero__bg{
  background:url('../about-banner.jpg') right center / cover no-repeat;
}

/* narrow reading column */
.wrap--narrow{ max-width:760px; }

/* blog library cards */
.blog-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px;
}
.blog-card{
  border:1px solid var(--line-dark); background:var(--ink-2);
  display:flex; flex-direction:column;
  transition:border-color .25s ease, transform .25s ease;
}
.blog-card:hover{ border-color:rgba(245,181,10,.65); transform:translateY(-3px); }
.blog-card__media{
  position:relative; display:block; overflow:hidden;
}
.blog-card__media img{
  display:block; width:100%; aspect-ratio:16/9; object-fit:cover;
  transition:transform .45s ease;
}
.blog-card:hover .blog-card__media img{ transform:scale(1.04); }
.blog-card__cat{
  position:absolute; left:12px; bottom:12px;
  background:var(--yellow); color:var(--ink);
  font-family:var(--font-mono); font-size:.62rem; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; padding:4px 9px;
}
.blog-card__body{
  padding:18px 20px 20px; display:flex; flex-direction:column; gap:10px; flex:1;
}
.blog-card__meta{
  margin:0; font-family:var(--font-mono); font-size:.62rem;
  letter-spacing:.08em; color:var(--muted); text-transform:uppercase;
}
.blog-card__body h3{
  font-family:var(--font-head); font-size:1.22rem; letter-spacing:.02em;
  text-transform:uppercase; margin:0; line-height:1.25;
}
.blog-card__body h3 a{ color:inherit; text-decoration:none; }
.blog-card__body h3 a:hover{ color:var(--yellow); }
.blog-card__body > p{
  margin:0; font-size:.84rem; color:var(--steel); line-height:1.6;
}
.blog-card__body .link-arrow{ margin-top:auto; padding-top:6px; }

/* post hero + body */
.post-hero{ padding-block:clamp(28px, 4vw, 52px) clamp(18px, 2.5vw, 26px); }
.post-hero__cat{
  display:inline-block; margin:18px 0 10px;
  background:var(--yellow); color:var(--ink);
  font-family:var(--font-mono); font-size:.64rem; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase; padding:4px 10px;
}
.post-hero__title{
  font-size:clamp(1.9rem, 4.6vw, 3.2rem); text-transform:uppercase;
  letter-spacing:.01em; line-height:1.05; margin:0;
}
.post-hero__meta{
  margin:14px 0 0; font-family:var(--font-mono); font-size:.68rem;
  letter-spacing:.08em; color:var(--muted); text-transform:uppercase;
}
.post-feature{ margin-bottom:clamp(22px, 3vw, 34px); }
.post-feature img{
  display:block; width:100%; aspect-ratio:21/9; object-fit:cover;
  border:1px solid var(--line-dark);
}

.post-body{ padding-bottom:clamp(30px, 4vw, 48px); }
.post-lede{
  font-size:1.06rem; line-height:1.7; color:var(--steel-2);
  border-left:3px solid var(--yellow); padding-left:18px; margin:0 0 26px;
}
.post-body h2{
  font-family:var(--font-head); text-transform:uppercase;
  font-size:clamp(1.35rem, 2.6vw, 1.8rem); letter-spacing:.02em;
  margin:34px 0 12px;
}
.post-body p{
  font-size:.94rem; line-height:1.75; color:var(--steel); margin:0 0 16px;
}
.post-body ul{
  margin:0 0 18px; padding-left:20px; color:var(--steel);
  font-size:.94rem; line-height:1.75;
}
.post-body ul li{ margin-bottom:6px; }
.post-body a{ color:var(--yellow); }
.post-body blockquote{
  margin:26px 0; padding:18px 22px;
  border-left:3px solid var(--yellow); background:var(--ink-2);
}
.post-body blockquote p{
  font-size:1.05rem; line-height:1.6; color:var(--steel-2);
  font-style:italic; margin:0 0 8px;
}
.post-body blockquote cite{
  font-family:var(--font-mono); font-size:.66rem; font-style:normal;
  letter-spacing:.08em; color:var(--muted); text-transform:uppercase;
}
.post-callout{
  margin:26px 0; padding:18px 22px;
  border:1px solid var(--line-dark); border-left:3px solid var(--yellow);
  background:var(--ink-2);
}
.post-callout h3{
  font-family:var(--font-head); text-transform:uppercase;
  font-size:1rem; letter-spacing:.04em; margin:0 0 6px; color:var(--yellow);
}
.post-callout p{ margin:0; }

/* related product block inside posts */
.post-product{
  margin-top:34px; padding:22px 24px;
  border:1px solid rgba(245,181,10,.5); background:var(--ink-2);
  display:flex; flex-wrap:wrap; align-items:center; gap:18px;
  justify-content:space-between;
}
.post-product h3{
  font-family:var(--font-head); text-transform:uppercase;
  font-size:1.3rem; letter-spacing:.02em; margin:4px 0 6px;
}
.post-product p{ margin:0; font-size:.86rem; max-width:52ch; }
.post-product .eyebrow{ margin:0; }

@media (max-width:1023px){
  .blog-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .blog-grid{ grid-template-columns:1fr; }
  .post-product .btn{ width:100%; justify-content:space-between; }
}

/* product card photo when Featured Image is set on the product page */
.hub-card__img{
  display:block; width:100%; aspect-ratio:4/3; object-fit:cover;
  border:1px solid var(--line-dark);
}

/* product gallery photos uploaded via the Product Photos meta box */
.pdp-gallery__img{
  display:block; width:100%; height:100%; object-fit:cover;
}
.pdp-gallery__thumbs .pdp-gallery__img{
  aspect-ratio:4/3; border:1px solid var(--line-dark);
}

/* ==========================================================================
   NAV DROPDOWN MENUS (Machines / Support)
   ========================================================================== */
.main-nav .has-sub{ position:relative; }
/* NOTE: these selectors must stay at least as specific as `.main-nav ul`
   (line 151), which sets display:flex. A bare `.submenu{display:none}` loses
   that specificity contest and both dropdowns render permanently open. */
.main-nav .submenu{
  display:none; position:absolute; top:100%; left:0; min-width:250px;
  margin:0; padding:8px 0; list-style:none; z-index:70;
  background:var(--ink-2); border:1px solid var(--line-dark);
  border-top:2px solid var(--yellow);
  box-shadow:0 18px 40px rgba(0,0,0,.5);
}
.main-nav .submenu li{ display:block; }
.main-nav .submenu a{
  display:block !important; padding:10px 18px !important; min-height:0 !important;
  border-bottom:none !important;
}
.main-nav .submenu a strong{
  display:block; font-size:.74rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--steel-2); font-weight:700;
}
.main-nav .submenu a span:not(.caret){
  display:block; margin-top:2px;
  font-family:var(--font-mono); font-size:.62rem; letter-spacing:.06em;
  color:var(--muted); text-transform:none; font-weight:400;
}
.main-nav .submenu a:hover strong, .main-nav .submenu a:hover span:not(.caret){ color:var(--yellow); }

@media (min-width:1024px){
  .main-nav .has-sub:hover > .submenu,
  .main-nav .has-sub:focus-within > .submenu{ display:block; }
}
@media (max-width:1023px){
  .main-nav .submenu{
    display:none; position:static; min-width:0; box-shadow:none;
    border:none; border-left:2px solid var(--yellow);
    margin:0 0 6px 10px; padding:2px 0 6px;
  }
  .main-nav .submenu a{ padding:10px 14px !important; }
  .main-nav .has-sub.open > .submenu{ display:block; }
  .main-nav .has-sub.open > a .caret{ transform:rotate(225deg) translateY(-1px); }
}

/* ==========================================================================
   QA PASS — image slots, stretched card links, form states
   ========================================================================== */

/* Uploaded images rendered by rexcron_image_slot() / rexcron_product_card_image().
   They sit in the same boxes the .ph-img placeholders occupied. */
.product-card__img,
.world-tile__img{
  display:block; width:100%; height:240px; object-fit:cover;
  border-bottom:1px solid var(--line-dark);
}
.product-grid--4 .product-card__img{ height:180px; }
.world-tile__img{ height:230px; }
.industry-card__img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; z-index:0;
}
.industry-card .overlay{ position:relative; z-index:1; }
.blog-card__media .ph-img{ min-height:200px; }

/* Stretched card link — replaces the old style="display:contents" anchors,
   which dropped the link out of the accessibility tree in some browsers. */
.product-card{ position:relative; }
.card-link{
  position:absolute; inset:0; z-index:3;
  font-size:0; text-decoration:none;
}
.card-link:focus-visible{ outline:2px solid var(--yellow); outline-offset:-3px; }
.product-card .spec-chips a,
.product-card .go-row{ position:relative; z-index:4; }

/* Formspree confirmation banner (?sent=1) */
.rx-form__sent{
  margin:0 0 18px; padding:14px 16px;
  border:1px solid var(--yellow); border-left-width:3px;
  background:rgba(245,181,10,.08); color:var(--paper);
  font-size:.9rem;
}

/* Layout modifiers referenced by templates but never defined */
.product-grid--3{ grid-template-columns:repeat(3,1fr); }
.blog-grid--3{ grid-template-columns:repeat(3,1fr); }
@media (max-width:1023px){
  .product-grid--3, .blog-grid--3{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:767px){
  .product-grid--3, .blog-grid--3{ grid-template-columns:1fr; }
  .product-card__img, .world-tile__img{ height:220px; }
}

/* Banner slots whose /assets/ file has not been supplied yet: keep the
   surface dark instead of showing a transparent gap behind the copy. */
.hero-bg, .cat-hero__bg, .crosslink-banner__bg{
  background-color:var(--ink-2);
}

/* Search results (search.php) */
.search-results{ list-style:none; margin:26px 0 0; padding:0; }
.search-results li{ padding:20px 0; border-bottom:1px solid var(--line-dark); }
.search-results h2{ font-size:1.3rem; margin-bottom:6px; }
.search-results a{ color:var(--paper); text-decoration:none; }
.search-results a:hover{ color:var(--yellow); }
.search-results p{ font-size:.9rem; color:var(--steel); margin:0; }

/* Unstyled wrappers referenced by templates */
.post-nav{ margin-top:30px; }
.post-nav .nav-links{ display:flex; flex-wrap:wrap; gap:10px; }
