/* ==========================================================================
   ROYALE SANITARY STORE — "Blueprint & Brass"
   Hand-written CSS. No framework.

   Contents
     1.  Tokens (CSS variables)
     2.  Reset & base
     3.  Blueprint background + pipe rail
     4.  Layout helpers
     5.  Buttons
     6.  Header & navigation
     7.  Hero
     8.  Section furniture (titles, dimension rules)
     9.  Category tiles
     10. Product cards (parts-drawer tags)
     11. Stats strip & marquee
     12. Product detail page
     13. Products listing (filters & search)
     14. About / Contact
     15. Footer
     16. Scroll-reveal & motion
     17. Responsive
     18. prefers-reduced-motion
   ========================================================================== */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  /* Core palette */
  --navy:        #0E2238;
  --navy-deep:   #091827;
  --navy-soft:   #16314c;
  --brass:       #C9A24B;
  --brass-lite:  #E3C77E;
  --brass-dark:  #9A7730;
  --paper:       #F5F1E8;
  --paper-warm:  #EDE7D9;
  --ink:         #1A1A1A;

  /* Chrome / silver gradient used for highlights */
  --chrome: linear-gradient(145deg,#f7f8fa 0%,#c9cfd6 28%,#8d969f 52%,#d8dde2 74%,#f2f4f6 100%);
  --brass-grad: linear-gradient(145deg,#E3C77E 0%,#C9A24B 45%,#9A7730 100%);

  /* Derived text colours */
  --on-navy:        var(--paper);
  --on-navy-muted:  rgba(245,241,232,.66);
  --on-paper:       #15283c;
  --on-paper-muted: rgba(21,40,60,.66);

  /* Blueprint line colours */
  --bp-line:        rgba(201,162,75,.085);
  --bp-line-strong: rgba(201,162,75,.16);

  /* Type */
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing & shape */
  --wrap:    1200px;
  --gut:     20px;
  --radius:  2px;          /* deliberately sharp — this is a drawing sheet */
  --sec-pad: clamp(56px, 8vw, 104px);

  /* Motion */
  --ease:  cubic-bezier(.22,.61,.36,1);
  --dur:   .55s;
}

/* ------------------------------------------------------------- 2. RESET */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: opacity .5s var(--ease);
}
/* Page-load fade. Scoped to .js so that with JavaScript disabled the page
   is simply visible from the start rather than stuck at opacity 0. */
.js body { opacity: 0; }
.js body.is-ready { opacity: 1; }

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; margin: 0; padding: 0; }

h1,h2,h3,h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: .012em;
  text-transform: uppercase;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1em; }

.mono {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brass); color: var(--navy);
  padding: 10px 18px; font-family: var(--f-mono); font-size: .8rem;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --------------------------------------------- 3. BLUEPRINT BG + PIPE RAIL */
/* Fixed grid of fine lines, like a drawing sheet. */
.bp-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line) 1px, transparent 1px),
    linear-gradient(var(--bp-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line-strong) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
}
/* Paper sections cover the grid, so re-tint it there with a navy line. */
.sec-paper { position: relative; }
.sec-paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(14,34,56,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,34,56,.05) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
}

/* The vertical "pipe" that draws itself as you scroll. */
.pipe-rail {
  position: fixed; left: 14px; top: 0; bottom: 0; width: 8px;
  z-index: 3; pointer-events: none;
}
.pipe-rail svg { width: 100%; height: 100%; }
.pipe-rail-bg {
  stroke: rgba(201,162,75,.14); stroke-width: 2; stroke-dasharray: 5 7;
}
.pipe-rail-fill {
  stroke: var(--brass); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;   /* JS drives this */
}

/* ------------------------------------------------------- 4. LAYOUT HELPERS */
.wrap { width: min(100% - (var(--gut) * 2), var(--wrap)); margin-inline: auto; }

section { position: relative; z-index: 1; padding-block: var(--sec-pad); }

.sec-paper  { background: var(--paper); color: var(--on-paper); }
.sec-navy   { background: var(--navy);  color: var(--on-navy); }
.sec-deep   { background: var(--navy-deep); color: var(--on-navy); }

/* Section eyebrow + title block with a dimension rule, like a drawing callout */
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brass); margin-bottom: 14px;
}
.sec-eyebrow::before {
  content: ""; width: 34px; height: 1px; background: var(--brass);
}
.sec-head p { color: var(--on-navy-muted); max-width: 62ch; }
.sec-paper .sec-head p { color: var(--on-paper-muted); }

/* A dimension marker line: |———————| with ticks at each end */
.dim-rule {
  position: relative; height: 1px; background: currentColor; opacity: .22;
  margin: 28px 0;
}
.dim-rule::before, .dim-rule::after {
  content: ""; position: absolute; top: -4px; width: 1px; height: 9px;
  background: currentColor;
}
.dim-rule::before { left: 0; }
.dim-rule::after  { right: 0; }

/* ------------------------------------------------------------ 5. BUTTONS */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  font-family: var(--f-display); font-size: 1.02rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  border: 1px solid var(--brass); border-radius: var(--radius);
  cursor: pointer; background: transparent; color: var(--brass);
  transition: color .3s var(--ease), background-color .3s var(--ease),
              border-color .3s var(--ease), transform .2s var(--ease);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }

/* Brass button with a metallic shine that sweeps across on hover */
.btn-brass {
  background: var(--brass-grad);
  color: var(--navy-deep);
  border-color: transparent;
  box-shadow: 0 2px 0 var(--brass-dark);
}
.btn-brass::after {
  content: ""; position: absolute; top: 0; left: -140%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg,
      transparent 0%, rgba(255,255,255,.08) 25%,
      rgba(255,255,255,.72) 50%,
      rgba(255,255,255,.08) 75%, transparent 100%);
  transform: skewX(-22deg);
  transition: left .62s var(--ease);
}
.btn-brass:hover::after { left: 150%; }
.btn-brass:hover { color: var(--navy-deep); }

/* Outline button on dark */
.btn-ghost { color: var(--paper); border-color: rgba(245,241,232,.38); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

/* Outline button on paper */
.sec-paper .btn-ghost { color: var(--on-paper); border-color: rgba(21,40,60,.3); }
.sec-paper .btn-ghost:hover { border-color: var(--brass-dark); color: var(--brass-dark); }

/* ------------------------------------------------- 6. HEADER & NAVIGATION */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(9,24,39,.86);
  backdrop-filter: blur(11px); -webkit-backdrop-filter: blur(11px);
  border-bottom: 1px solid rgba(201,162,75,.2);
  transition: padding .35s var(--ease), background-color .35s var(--ease);
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  padding-block: 16px;
  transition: padding-block .35s var(--ease);
}
/* Shrunk state, toggled by JS past 60px of scroll */
.site-header.is-shrunk .header-inner { padding-block: 7px; }
.site-header.is-shrunk { background: rgba(9,24,39,.96); }
.site-header.is-shrunk .logo-svg { height: 32px; }

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-img { height: 42px; width: auto; }
.logo-svg  { height: 42px; width: auto; transition: height .35s var(--ease); }
.logo-word { font-family: var(--f-display); font-size: 21px; font-weight: 700; letter-spacing: .1em; }
.logo-sub  { font-family: var(--f-mono);    font-size: 8.4px; letter-spacing: .26em; }

.nav-desktop { margin-left: auto; }
.nav-desktop ul { display: flex; gap: 30px; }
.nav-desktop a {
  position: relative; font-family: var(--f-display); font-size: 1.05rem;
  font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--on-navy-muted); padding-block: 6px;
  transition: color .25s var(--ease);
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brass); transition: width .3s var(--ease);
}
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--paper); }
.nav-desktop a:hover::after, .nav-desktop a.is-active::after { width: 100%; }

.header-cta { flex: 0 0 auto; }

/* Hamburger */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 9px; margin-left: auto;
  background: none; border: 1px solid rgba(201,162,75,.35);
  border-radius: var(--radius); cursor: pointer;
}
.burger span {
  display: block; height: 2px; width: 100%; background: var(--brass);
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none; overflow: hidden; max-height: 0;
  background: var(--navy-deep);
  border-top: 1px solid rgba(201,162,75,.16);
  transition: max-height .42s var(--ease);
}
.nav-mobile.is-open { max-height: 420px; }
.nav-mobile ul { padding: 10px var(--gut); }
.nav-mobile li { border-bottom: 1px dashed rgba(201,162,75,.18); }
.nav-mobile li:last-child { border-bottom: 0; }
.nav-mobile a {
  display: block; padding: 15px 2px;
  font-family: var(--f-display); font-size: 1.3rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--on-navy-muted);
}
.nav-mobile a.is-active, .nav-mobile a:hover { color: var(--brass); }
.nav-mobile-foot {
  display: flex; flex-direction: column; gap: 7px;
  padding: 16px var(--gut) 22px; border-top: 1px solid rgba(201,162,75,.16);
}
.nav-mobile-foot a { color: var(--brass); font-size: .74rem; }

/* ---------------------------------------------------------------- 7. HERO */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(130% 100% at 76% 14%, #17314d 0%, var(--navy) 46%, var(--navy-deep) 100%);
  padding-block: clamp(70px, 11vw, 132px);
}
.hero-inner {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center;
}
.hero-eyebrow { color: var(--brass); margin-bottom: 20px; display: block; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .brass { color: var(--brass); }
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.14rem); color: var(--on-navy-muted);
  max-width: 54ch; margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; color: var(--on-navy-muted); }
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: ""; width: 6px; height: 6px; background: var(--brass);
  transform: rotate(45deg); flex: 0 0 auto;
}

/* Hero drawing panel */
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }

/* The blueprint outline that draws itself */
.draw-path {
  fill: none; stroke: var(--brass); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  animation: draw 2.6s var(--ease) forwards;
}
.draw-path.d2 { animation-delay: .5s;  stroke-width: 1.3; opacity: .85; }
.draw-path.d3 { animation-delay: 1s;   stroke-width: 1;   opacity: .6;  }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Dimension text on the drawing fades in after the lines */
.hero-art .dim-text {
  font-family: var(--f-mono); font-size: 9px; fill: var(--brass);
  letter-spacing: .12em; opacity: 0;
  animation: fadeIn .8s var(--ease) 2.2s forwards;
}
.hero-art .dim-line {
  stroke: var(--brass); stroke-width: .7; opacity: 0;
  stroke-dasharray: 3 3;
  animation: fadeIn .8s var(--ease) 2.1s forwards;
}
@keyframes fadeIn { to { opacity: .75; } }

/* Slowly rotating gear behind the drawing */
.hero-gear {
  position: absolute; inset: auto -14% -16% auto;
  width: 60%; opacity: .14; color: var(--brass);
  animation: spin 58s linear infinite;
}
.hero-gear-2 {
  position: absolute; inset: -10% auto auto -12%;
  width: 30%; opacity: .1; color: var(--brass);
  animation: spin 42s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Headline fades up once the drawing is under way */
.hero-copy > * {
  opacity: 0; transform: translateY(22px);
  animation: riseIn .8s var(--ease) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: .25s; }
.hero-copy > *:nth-child(2) { animation-delay: .4s;  }
.hero-copy > *:nth-child(3) { animation-delay: .55s; }
.hero-copy > *:nth-child(4) { animation-delay: .7s;  }
.hero-copy > *:nth-child(5) { animation-delay: .85s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------ 9. CATEGORY TILES */
.cat-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.cat-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: 30px 26px 26px;
  background: rgba(245,241,232,.03);
  border: 1px solid rgba(201,162,75,.24);
  border-radius: var(--radius);
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              transform .35s var(--ease);
}
.sec-paper .cat-tile {
  background: rgba(14,34,56,.022);
  border-color: rgba(14,34,56,.14);
}
.cat-tile:hover {
  transform: translateY(-5px);
  border-color: var(--brass);
  background: rgba(201,162,75,.07);
}
/* cut corner, top right */
.cat-tile::before {
  content: ""; position: absolute; top: 0; right: 0;
  border-width: 0 22px 22px 0; border-style: solid;
  border-color: transparent var(--brass) transparent transparent;
  opacity: .32; transition: opacity .35s var(--ease);
}
.cat-tile:hover::before { opacity: .9; }
.cat-icon { color: var(--brass); }
.cat-icon .icn { transition: transform .45s var(--ease); }
.cat-tile:hover .cat-icon .icn { transform: scale(1.07) rotate(-3deg); }
.cat-tile h3 { margin: 0; }
.cat-tile p { color: var(--on-navy-muted); font-size: .92rem; margin: 0; }
.sec-paper .cat-tile p { color: var(--on-paper-muted); }
.cat-count { color: var(--brass); margin-top: auto; padding-top: 10px; }

/* ------------------------------- 10. PRODUCT CARDS (parts-drawer tags) */
.prod-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.prod-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  color: var(--on-paper);
  border: 1px solid rgba(14,34,56,.14);
  border-radius: var(--radius);
  /* the cut corner that makes it read as a drawer tag */
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.prod-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0,0,0,.3); }

/* brass border sweep on hover */
.prod-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1.5px solid var(--brass);
  clip-path: inherit;
  opacity: 0; transition: opacity .35s var(--ease);
}
.prod-card:hover::after { opacity: 1; }

/* screw heads in two corners, rotating a quarter turn on hover */
.screw {
  position: absolute; z-index: 2; width: 13px; height: 13px; border-radius: 50%;
  background: var(--chrome);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.22), 0 1px 2px rgba(0,0,0,.2);
  transition: transform .45s var(--ease);
}
.screw::before {
  content: ""; position: absolute; inset: 2px 1px; height: 1.5px; top: 50%;
  margin-top: -.75px; background: rgba(0,0,0,.4);
}
.screw-tl { top: 9px;    left: 9px;   }
.screw-bl { bottom: 9px; left: 9px;   }
.screw-br { bottom: 9px; right: 9px;  }
.prod-card:hover .screw { transform: rotate(90deg); }

.prod-media {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; background: var(--paper-warm);
}
.prod-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.prod-card:hover .prod-media img { transform: scale(1.085); }

/* item-number tag, top left over the photo */
.prod-tag {
  position: absolute; left: 0; top: 14px; z-index: 2;
  background: var(--navy); color: var(--brass);
  padding: 5px 11px 5px 28px;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .13em;
}
.prod-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.prod-cat  { color: var(--brass-dark); margin-bottom: 8px; }
.prod-card h3 { font-size: 1.22rem; margin-bottom: 7px; }
.prod-card h3 a:hover { color: var(--brass-dark); }
.prod-sum {
  font-size: .88rem; color: var(--on-paper-muted); margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-clamp: 2; overflow: hidden;
}
.prod-actions { display: flex; gap: 9px; margin-top: auto; align-items: center; }
.prod-actions .btn { flex: 1; padding: 11px 14px; font-size: .86rem; }
.link-detail {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--on-paper-muted);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .25s var(--ease);
}
.link-detail:hover { color: var(--brass-dark); }

/* staggered reveal for cards */
.js .prod-card.reveal-item { opacity: 0; transform: translateY(26px); }
.js .prod-card.reveal-item.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* --------------------------------------------- 11. STATS STRIP & MARQUEE */
.stats-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.stat { text-align: center; padding: 22px 12px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px;
  background: rgba(201,162,75,.26);
}
.stat-num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.6rem, 5.4vw, 4rem); line-height: 1;
  color: var(--brass); display: block; margin-bottom: 8px;
}
.stat-label { color: var(--on-navy-muted); }

/* Infinite marquee of category names */
.marquee {
  overflow: hidden; border-block: 1px solid rgba(201,162,75,.26);
  background: var(--navy-deep); padding-block: 15px;
  position: relative; z-index: 1;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 24px;
  padding-inline: 24px; color: var(--on-navy-muted);
  font-family: var(--f-display); font-size: 1.28rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; white-space: nowrap;
}
.marquee-item::after {
  content: ""; width: 7px; height: 7px; background: var(--brass);
  transform: rotate(45deg); flex: 0 0 auto;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------- 12. PRODUCT DETAIL */
.pd-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: start; }

.pd-media {
  position: relative; border: 1px solid rgba(201,162,75,.3);
  background: var(--paper-warm); border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.pd-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pd-media .prod-tag { top: 20px; font-size: .68rem; }

.pd-cat { color: var(--brass); margin-bottom: 12px; display: inline-block; }
.pd-summary { font-size: 1.1rem; color: var(--on-navy-muted); margin-bottom: 20px; }
.pd-desc { color: var(--on-navy-muted); }

/* variants */
.variant-list { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.variant {
  padding: 8px 15px; border: 1px solid rgba(201,162,75,.4);
  border-radius: var(--radius); color: var(--brass-lite);
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.variant:hover { background: rgba(201,162,75,.12); border-color: var(--brass); }

/* specification table */
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 13px 14px; vertical-align: top;
  border-bottom: 1px dashed rgba(201,162,75,.22);
  font-size: .92rem;
}
.spec-table th {
  width: 36%; color: var(--brass);
  font-family: var(--f-mono); font-size: .71rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 500;
}
.spec-table td { color: var(--on-navy-muted); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.pd-buy { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin-block: 8px 18px; }
.pd-note { color: var(--on-navy-muted); font-size: .85rem; }

/* breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 26px; }
.crumbs a { color: var(--on-navy-muted); transition: color .25s var(--ease); }
.crumbs a:hover { color: var(--brass); }
.crumbs span { color: rgba(201,162,75,.45); }

/* not-found panel */
.notfound {
  text-align: center; max-width: 560px; margin-inline: auto;
  padding-block: clamp(50px, 9vw, 90px);
}
.notfound .code {
  font-family: var(--f-mono); font-size: 4rem; color: var(--brass); opacity: .35;
  display: block; margin-bottom: 10px;
}

/* --------------------------------------- 13. PRODUCTS LISTING CONTROLS */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  justify-content: space-between; margin-bottom: 30px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 9px 17px; border: 1px solid rgba(201,162,75,.34);
  border-radius: var(--radius); color: var(--on-navy-muted);
  font-family: var(--f-display); font-size: .96rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  background: transparent;
  transition: all .28s var(--ease);
}
.chip:hover { border-color: var(--brass); color: var(--brass); }
.chip.is-active {
  background: var(--brass-grad); color: var(--navy-deep);
  border-color: transparent; box-shadow: 0 2px 0 var(--brass-dark);
}

.search-wrap { position: relative; min-width: 260px; flex: 1 1 260px; max-width: 360px; }
.search-input {
  width: 100%; padding: 12px 40px 12px 15px;
  background: rgba(245,241,232,.05);
  border: 1px solid rgba(201,162,75,.3); border-radius: var(--radius);
  color: var(--paper); font-family: var(--f-body); font-size: .94rem;
}
.search-input::placeholder { color: rgba(245,241,232,.4); }
.search-input:focus { outline: none; border-color: var(--brass); background: rgba(245,241,232,.08); }
.search-icon {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  color: var(--brass); pointer-events: none;
}

.result-count { color: var(--on-navy-muted); margin-bottom: 20px; }

/* fade/reorder when the category changes */
.prod-grid.is-swapping { opacity: .2; transition: opacity .22s var(--ease); }
.prod-card.is-hidden { display: none; }

.empty-state {
  text-align: center; padding: 70px 20px; color: var(--on-navy-muted);
  border: 1px dashed rgba(201,162,75,.3); border-radius: var(--radius);
}

/* ---------------------------------------------------- 14. ABOUT & CONTACT */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.prose { max-width: 68ch; }
.prose p { color: var(--on-navy-muted); }
.sec-paper .prose p { color: var(--on-paper-muted); }
.prose h3 { margin-top: 1.6em; }

.feature-list { display: grid; gap: 16px; }
.feature {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid rgba(201,162,75,.22); border-radius: var(--radius);
  background: rgba(245,241,232,.025);
}
.sec-paper .feature { background: rgba(14,34,56,.022); border-color: rgba(14,34,56,.12); }
.feature-num {
  font-family: var(--f-mono); font-size: .7rem; color: var(--brass);
  flex: 0 0 auto; padding-top: 3px;
}
.feature h4 { margin: 0 0 5px; font-size: 1.1rem; }
.feature p  { margin: 0; font-size: .9rem; color: var(--on-navy-muted); }
.sec-paper .feature p { color: var(--on-paper-muted); }

/* contact strip + cards */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact-card {
  padding: 26px 24px; border: 1px solid rgba(201,162,75,.26);
  border-radius: var(--radius); background: rgba(245,241,232,.03);
}
.contact-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.contact-card .mono { color: var(--brass); display: block; margin-bottom: 12px; }
.contact-card address { font-style: normal; color: var(--on-navy-muted); line-height: 1.8; }
.contact-card a.linkish { color: var(--brass); border-bottom: 1px solid rgba(201,162,75,.4); }
.contact-card a.linkish:hover { border-bottom-color: var(--brass); }

.map-frame {
  position: relative; border: 1px solid rgba(201,162,75,.3); border-radius: var(--radius);
  overflow: hidden; background: var(--navy-deep); min-height: 380px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(.9); }

/* ------------------------------------------------------------ 15. FOOTER */
.site-footer {
  position: relative; z-index: 1;
  background: var(--navy-deep); border-top: 1px solid rgba(201,162,75,.25);
  padding-top: 56px;
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  padding-bottom: 42px;
}
.footer-brand .logo-svg { height: 44px; margin-bottom: 14px; }
.footer-tag { color: var(--brass); font-family: var(--f-mono); font-size: .68rem;
              letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-address { font-style: normal; display: grid; gap: 3px; color: var(--on-navy-muted);
                  font-size: .92rem; margin-bottom: 14px; }
.footer-mail { display: block; color: var(--brass); font-size: .92rem; margin-bottom: 4px; word-break: break-word; }
.footer-mail:hover { text-decoration: underline; }
.footer-head {
  font-size: 1.02rem; color: var(--paper); margin-bottom: 15px;
  padding-bottom: 9px; border-bottom: 1px solid rgba(201,162,75,.22);
}
.footer-list { display: grid; gap: 9px; }
.footer-list a { color: var(--on-navy-muted); font-size: .92rem; transition: color .25s var(--ease), padding-left .25s var(--ease); }
.footer-list a:hover { color: var(--brass); padding-left: 5px; }
.footer-hours li { color: var(--on-navy-muted); font-size: .92rem; }
.footer-hours .mono { color: var(--brass); }
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a { color: var(--brass); font-size: .85rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  padding-block: 20px; border-top: 1px solid rgba(201,162,75,.16);
  color: var(--on-navy-muted);
}
.footer-dim { color: rgba(201,162,75,.5); }

/* ------------------------------------------------- 16. SCROLL REVEAL */
.js .reveal { opacity: 0; transform: translateY(30px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* --------------------------------------------------------- 17. RESPONSIVE */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 42px; }
  .hero-art   { max-width: 430px; margin-inline: auto; order: -1; }
  .pd-top     { grid-template-columns: 1fr; gap: 30px; }
  .two-col    { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-desktop, .header-cta { display: none; }
  .burger     { display: flex; }
  .nav-mobile { display: block; }
  .pipe-rail  { display: none; }           /* no room for it on a phone */
  .stat + .stat::before { display: none; }
}

@media (max-width: 560px) {
  :root { --gut: 16px; }
  .footer-grid  { grid-template-columns: 1fr; gap: 28px; }
  .prod-grid    { grid-template-columns: 1fr; }
  .filter-bar   { flex-direction: column; align-items: stretch; }
  .search-wrap  { max-width: none; }
  .chips        { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .chip         { white-space: nowrap; }
  .prod-actions { flex-direction: column; align-items: stretch; }
  .link-detail  { text-align: center; }
  .footer-bottom { flex-direction: column; }
}

/* ------------------------------------------- 18. REDUCED MOTION */
/* Everything still works; it simply stops moving. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .draw-path   { stroke-dashoffset: 0; }
  .hero-copy > * { opacity: 1; transform: none; }
  .hero-art .dim-text, .hero-art .dim-line { opacity: .75; }
  .js .reveal, .js .prod-card.reveal-item { opacity: 1; transform: none; }
  .js body { opacity: 1; }
  .marquee-track { animation: none; }
  .pipe-rail-fill { stroke-dashoffset: 0; }
  .hero-gear, .hero-gear-2 { animation: none; }
}
