/* BUILD: chat-5 — if you cannot see this line at
   /assets/css/site.css then this file did not upload. */
/* =====================================================================
   Asian Impex — stylesheet
   Design note: this is a parts catalogue for engineers, not a brochure.
   Type is set condensed (nameplate/drawing feel) for anything that names
   a part; body copy is a neutral grotesque so specs stay legible.
   ===================================================================== */

/* ------------------------------------------------------------ tokens */
:root {
  --ink:        #10263a;   /* primary navy — headings, header, footer */
  --ink-deep:   #0a1a27;   /* utility bar, hero ground */
  --steel:      #51646f;   /* body text */
  --steel-mid:  #7b8c97;   /* secondary text */
  --rule:       #d7dee3;   /* hairlines */
  --rule-soft:  #e7ecef;
  --paper:      #ffffff;
  --paper-cool: #f1f4f6;   /* section grounds, image beds */
  --signal:     #e0531b;   /* brand orange — interaction only */
  --signal-dk:  #b23f0f;
  --ok:         #1d7a4c;

  --w-page: 1220px;
  --gap:    clamp(1.25rem, 3vw, 2.5rem);

  --ff-display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --ff-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--steel);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--signal-dk); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.15em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.wrap { width: min(100% - 2.5rem, var(--w-page)); margin-inline: auto; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose a { color: var(--signal-dk); }
.prose img { margin: 1.5rem 0; border: 1px solid var(--rule); }
.prose .note {
  border-left: 3px solid var(--signal);
  background: var(--paper-cool);
  padding: 1rem 1.15rem;
  color: var(--ink);
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .72em 1.45em;
  border: 1px solid transparent;
  background: var(--signal);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--signal-dk); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--wide { width: 100%; text-align: center; }

/* ------------------------------------------------------------ header */
.utility {
  background: var(--ink-deep);
  color: #a9b8c2;
  font-size: .82rem;
  line-height: 1.4;
}
.utility .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; padding: .55rem 0; align-items: center; }
.utility a { color: #cdd8e0; text-decoration: none; }
.utility a:hover { color: #fff; }
.utility__spacer { margin-left: auto; }

/* The dock holds the header's original height so nothing jumps when it pins. */
.masthead-dock { position: relative; z-index: 60; }
.masthead {
  background: var(--paper);
  border-bottom: 3px solid var(--signal);
  position: relative;
  z-index: 60;
  transition: transform .32s cubic-bezier(.22,.61,.36,1),
              box-shadow .25s ease,
              padding .25s ease,
              opacity .24s ease;
}
/* Pinned: fixed to the top, dropped in from above. */
body.is-pinned .masthead {
  position: fixed; top: 0; left: 0; right: 0;
  box-shadow: 0 6px 24px rgba(10,26,39,.13);
}
body.is-pinned .masthead .wrap { padding: .55rem 0; }
body.is-pinned .brand__name { font-size: 1.55rem; }
body.is-pinned .brand__sub { display: none; }
/* The header stays visible in both scroll directions once pinned. */
body.is-pinned .masthead { transform: none; opacity: 1; }
.masthead .wrap { display: flex; align-items: center; gap: 1.5rem; padding: .9rem 0; }
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: .015em;
  color: var(--ink);
}
.brand__sub { font-size: .68rem; letter-spacing: .12em; color: var(--steel-mid); margin-top: .3rem; }
.brand img { max-height: 54px; width: auto; }

.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
/* Lists inside a dropdown or the mega panel stack; only the top bar is a row. */
/* Reset appearance only. Do NOT set display here: `.mega ul` would outrank
   `.mega__grid` and flatten the grid back to a plain list. */
.nav ul ul, .mega ul { list-style: none; margin: 0; padding: 0; }
.nav .submenu ul { display: block; }
.nav > ul > li { position: relative; }
.nav a {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: .6rem .78rem;
}
.nav a:hover, .nav a:focus-visible { color: var(--signal-dk); }
.nav .is-active > a { color: var(--signal-dk); box-shadow: inset 0 -2px 0 var(--signal); }

/* Dropdowns animate rather than snap. Visibility + opacity + a small lift,
   so the panel can transition (display:none cannot). */
.nav .submenu {
  display: flex;
  position: absolute;
  top: 100%; left: 0;
  min-width: 268px;
  background: var(--ink);
  padding: .4rem 0;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 16px 38px rgba(10,26,39,.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-9px);
  /* Closing is delayed slightly so moving the pointer diagonally towards the
     panel does not snap it shut halfway. Opening stays near-instant. */
  transition: opacity .18s ease, transform .22s cubic-bezier(.22,.61,.36,1), visibility .22s;
  transition-delay: .22s;
}
.nav li:hover > .submenu,
.nav li:focus-within > .submenu,
.nav li.is-open > .submenu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  transition-delay: .04s;
}
.nav .submenu a {
  color: #dbe3e9; font-size: 1rem; padding: .55rem 1.1rem;
  border-left: 2px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease, padding-left .16s ease;
}
.nav .submenu a:hover,
.nav .submenu a:focus-visible {
  background: rgba(255,255,255,.08); color: #fff;
  border-left-color: var(--signal); padding-left: 1.3rem;
}
.nav .submenu li { position: relative; }
.nav .submenu .submenu { top: -.4rem; left: 100%; transform: translateX(-9px); }
.nav .submenu li:hover > .submenu,
.nav .submenu li:focus-within > .submenu { transform: translateX(0); }

/* ------------------------------------------------------- mega menu */
.nav .has-mega { position: static; }
.mega {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 20px 44px rgba(10,26,39,.32);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .26s cubic-bezier(.22,.61,.36,1), visibility .26s;
  transition-delay: .22s;
}
.nav .has-mega:hover > .mega,
.nav .has-mega:focus-within > .mega,
.nav .has-mega.is-open > .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  transition-delay: .04s;
}

/* The header's own padding sits between the menu word and the panel below it.
   Crossing that strip used to count as leaving the menu. This invisible bridge
   spans the gap so the pointer never lands on dead ground. */
.nav .has-kids > .submenu::before,
.nav .has-mega > .mega::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -22px; height: 22px;
}
.mega__inner {
  display: grid; grid-template-columns: minmax(0,1fr) 250px;
  gap: 2.75rem; padding: 1.6rem 0 1.75rem;
}

/* Family names only — four tidy columns, nothing else competing for the eye. */
.mega ul.mega__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .1rem 1.5rem;
  align-content: start;
}
.mega__grid > li { margin: 0; }
.mega .mega__family {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.25;
  color: #e6ecf1;
  text-decoration: none;
  padding: .42rem .6rem .42rem .7rem;
  border-left: 2px solid transparent;
  transition: color .16s ease, border-color .16s ease, background .16s ease, padding-left .16s ease;
}
.mega .mega__family:hover,
.mega .mega__family:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-left-color: var(--signal);
  padding-left: .95rem;
}

.mega__aside { border-left: 1px solid rgba(255,255,255,.12); padding-left: 2rem; }
.mega__lead { font-family: var(--ff-display); font-size: 1.08rem; color: #fff; margin-bottom: .55rem; }
.mega__find { display: flex; margin-bottom: .75rem; }
.mega__find input {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--ff-display); font-size: 1rem; letter-spacing: .02em;
  padding: .48rem .7rem;
  border: 1px solid rgba(255,255,255,.26); border-right: 0;
  background: rgba(255,255,255,.07); color: #fff;
}
.mega__find input::placeholder { color: #7d919e; }
.mega__find input:focus { outline: none; background: rgba(255,255,255,.14); border-color: var(--signal); }
.mega__find .btn { padding: .48rem 1rem; font-size: .98rem; }
.mega__note { font-size: .84rem; color: #93a6b3; margin: 0; line-height: 1.55; }
.mega .mega__note a { display: inline; color: #cfdae2; }

/* Top-level items get a hover underline that grows from the left. */
.nav > ul > li > a { position: relative; }
.nav > ul > li > a::before {
  content: ""; position: absolute; left: .78rem; right: .78rem; bottom: .3rem;
  height: 2px; background: var(--signal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s cubic-bezier(.22,.61,.36,1);
}
.nav > ul > li:hover > a::before,
.nav > ul > li:focus-within > a::before { transform: scaleX(1); }
.nav .has-kids > a::after { transition: transform .22s ease; }
.nav > ul > li:hover > .has-kids::after { transform: translateY(-.15em) rotate(-135deg); }
.nav .has-kids > a::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.15em) rotate(45deg); }
.nav .submenu .has-kids > a::after { transform: translateY(-.1em) rotate(-45deg); float: right; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--rule);
  padding: .5rem .7rem; cursor: pointer;
  font-family: var(--ff-display); font-size: 1rem; color: var(--ink);
}

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  background: var(--ink-deep);
  color: #fff;
  overflow: hidden;
  --hero-speed: 900ms;
}
.hero--small  { min-height: 46vh; }
.hero--medium { min-height: 62vh; }
.hero--large  { min-height: 78vh; }
.hero--full   { min-height: 100vh; }

.hero__track { position: relative; display: grid; }
/* Every slide occupies the same grid cell, so the hero is always as tall as
   its tallest slide and nothing jumps as they change. */
.hero__slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  min-height: inherit;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--hero-speed) ease, visibility var(--hero-speed);
}
.hero__slide.is-current { opacity: 1; visibility: visible; pointer-events: auto; }

/* Slide sideways instead of cross-fading. */
.hero--fx-slide .hero__slide { transform: translateX(6%); transition: opacity var(--hero-speed) ease, transform var(--hero-speed) cubic-bezier(.4,0,.2,1), visibility var(--hero-speed); }
.hero--fx-slide .hero__slide.is-current { transform: translateX(0); }
.hero--fx-slide .hero__slide.is-leaving { transform: translateX(-6%); }

/* No animation at all. */
.hero--fx-none .hero__slide { transition: none; }

.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(95deg,
      rgba(8,20,31,calc(var(--overlay, .55) + .28)) 0%,
      rgba(8,20,31,calc(var(--overlay, .55) * .92)) 34%,
      rgba(8,20,31,calc(var(--overlay, .55) * .30)) 66%,
      rgba(8,20,31,calc(var(--overlay, .55) * .08)) 100%),
    linear-gradient(180deg, rgba(8,20,31,.34) 0%, rgba(8,20,31,.06) 40%, rgba(8,20,31,.34) 100%);
}
.hero__slide > .wrap { position: relative; z-index: 2; width: min(100% - 2.5rem, var(--w-page)); }
.hero .wrap { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3.25rem, 7vw, 5.5rem); }

.hero__inner { max-width: 43rem; }
.hero__slide--center { justify-content: center; }
.hero__slide--center .hero__inner { margin-inline: auto; text-align: center; }
.hero__slide--center .finder, .hero__slide--center .hero__actions { justify-content: center; margin-inline: auto; }
.hero__slide--right .hero__inner { margin-left: auto; text-align: right; }
.hero__slide--right .hero__actions { justify-content: flex-end; }

.hero h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: .45em; }
.hero p { color: #c9d5dd; font-size: 1.12rem; max-width: 42ch; }
.hero__slide--center p { margin-inline: auto; }
.hero__slide--right p { margin-left: auto; }
.hero h1, .hero p { text-shadow: 0 1px 14px rgba(6,16,25,.45); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }

/* the part finder — the one deliberately loud element on the page */
.finder { margin-top: 2.2rem; max-width: 34rem; }
.finder__label { display: block; font-size: .9rem; color: #a9bac6; margin-bottom: .5rem; }
.finder__row { display: flex; }
.finder input {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--ff-display);
  font-size: 1.25rem; font-weight: 500; letter-spacing: .02em;
  padding: .68rem .9rem;
  border: 1px solid rgba(255,255,255,.3); border-right: 0;
  background: rgba(255,255,255,.1); color: #fff;
}
.finder input::placeholder { color: #8ba0ad; letter-spacing: .04em; }
.finder input:focus { outline: none; background: rgba(255,255,255,.17); border-color: var(--signal); }
.finder button { border: 0; }

/* ---- controls ---- */
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(8,20,31,.42);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.hero__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__arrow:hover { background: var(--signal); border-color: var(--signal); }
.hero__arrow--prev { left: clamp(.5rem, 2vw, 1.5rem); }
.hero__arrow--next { right: clamp(.5rem, 2vw, 1.5rem); }
.hero__arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.hero__arrow--next:hover { transform: translateY(-50%) translateX(2px); }

.hero__dots {
  position: absolute; z-index: 3;
  left: 50%; transform: translateX(-50%);
  bottom: clamp(1rem, 3vw, 1.85rem);
  display: flex; gap: .45rem;
}
.hero__dot {
  width: 38px; height: 4px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,.34);
  transition: background .2s ease, transform .2s ease;
}
.hero__dot:hover { background: rgba(255,255,255,.6); }
.hero__dot[aria-selected="true"] { background: var(--signal); transform: scaleY(1.6); }

@media (max-width: 700px) {
  .hero__arrow { width: 38px; height: 38px; }
  .hero__arrow svg { width: 18px; height: 18px; }
  .hero__dot { width: 26px; }
  .hero--full { min-height: 88vh; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: opacity .01ms; }
}

/* ------------------------------------------------------------ page banner */
.banner { position: relative; background: var(--ink); color: #fff; }
.banner__media { position: absolute; inset: 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(8,20,31,.84) 0%, rgba(8,20,31,.58) 44%, rgba(8,20,31,.18) 100%);
}
.banner .wrap { position: relative; z-index: 2; }
.banner h1, .banner p { text-shadow: 0 1px 12px rgba(6,16,25,.4); }
.banner .wrap { position: relative; z-index: 2; padding: clamp(2.4rem, 5vw, 4rem) 0; }
.banner h1 { color: #fff; margin-bottom: .25em; }
.banner p { color: #b9c7d1; max-width: 56ch; margin: 0; }
.banner--plain { background: var(--paper-cool); color: var(--ink); border-bottom: 1px solid var(--rule); }
.banner--plain h1 { color: var(--ink); }
.banner--plain p { color: var(--steel); }

.crumbs { font-size: .84rem; padding: .85rem 0; border-bottom: 1px solid var(--rule-soft); color: var(--steel-mid); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--rule); }
.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--signal-dk); }

/* ------------------------------------------------------------ sections */
.section { padding: clamp(3rem, 6vw, 4.75rem) 0; }
.section--cool { background: var(--paper-cool); }
.section--ink { background: var(--ink); color: #c8d4dc; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }

.section__head { margin-bottom: 2.2rem; max-width: 60ch; }
.section__head p { margin-bottom: 0; }

/* ------------------------------------------------------------ category grid */
/* The hairline grid used to be a grey container showing through 1px gaps.
   That paints every EMPTY cell grey too — a row of two tiles in a four-column
   grid left two grey blocks. Each tile now carries its own border and the
   borders overlap, so unfilled cells show nothing at all. */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 0;
  background: transparent;
  border: 0;
}
.cat {
  background: var(--paper);
  display: flex; flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--rule);
  margin: 0 -1px -1px 0;        /* borders overlap into single hairlines */
  transition: background .15s ease;
}
.cat:hover { background: #fbfcfd; position: relative; z-index: 1; }
.cat:hover .cat__name { color: var(--signal-dk); }
.cat__bed {
  background: var(--paper-cool);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  padding: 1.1rem;
  overflow: hidden;
}
.cat__bed img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.cat__body { padding: .95rem 1.1rem 1.2rem; border-top: 1px solid var(--rule-soft); }
.cat__name { font-family: var(--ff-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); line-height: 1.15; }
.cat__count { font-size: .8rem; color: var(--steel-mid); margin-top: .3rem; }

/* ------------------------------------------------------------ part list */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding-bottom: 1.1rem; margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--rule);
}
.toolbar__count { font-size: .88rem; color: var(--steel-mid); }
.filter { margin-left: auto; display: flex; align-items: center; gap: .55rem; }
.filter label { font-size: .88rem; color: var(--steel-mid); }
.filter input {
  font-family: var(--ff-display); font-size: 1.05rem; letter-spacing: .02em;
  padding: .45rem .7rem; border: 1px solid var(--rule); background: #fff; color: var(--ink);
  width: 15rem; max-width: 44vw;
}
.filter input:focus { border-color: var(--signal); outline: none; }

.parts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 0;
  background: transparent;
  border: 0;
}
.part {
  background: var(--paper); text-decoration: none;
  display: flex; flex-direction: column;
  border: 1px solid var(--rule);
  margin: 0 -1px -1px 0;
  transition: background .15s ease;
}
.part:hover { background: #fbfcfd; position: relative; z-index: 1; }
.part__bed { background: var(--paper-cool); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 1rem; }
.part__bed img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.part__body { padding: .85rem 1rem 1.05rem; border-top: 1px solid var(--rule-soft); }
.part__no {
  font-family: var(--ff-display); font-weight: 600; font-size: 1.4rem;
  color: var(--ink); letter-spacing: .015em; line-height: 1.05;
}
.part:hover .part__no { color: var(--signal-dk); }
.part__cat { font-size: .78rem; color: var(--steel-mid); margin-top: .3rem; }
.parts__empty { padding: 2.5rem 0; color: var(--steel-mid); }

/* two-column catalogue layout */
.catalogue { display: grid; grid-template-columns: 256px 1fr; gap: clamp(1.5rem, 4vw, 3.25rem); align-items: start; }
.sidebar { position: sticky; top: 1.25rem; }
.sidebar h2 { font-size: 1.05rem; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); margin-bottom: .9rem; }
.sidebar ul { list-style: none; margin: 0 0 1.75rem; padding: 0; font-size: .95rem; }
.sidebar li { border-bottom: 1px solid var(--rule-soft); }
.sidebar a { display: block; padding: .5rem 0; text-decoration: none; color: var(--steel); }
.sidebar a:hover { color: var(--signal-dk); }
.sidebar .is-current > a { color: var(--ink); font-weight: 600; }
.sidebar ul ul { margin: 0 0 .4rem .9rem; font-size: .9rem; border-left: 1px solid var(--rule); padding-left: .7rem; }
.sidebar ul ul li { border: 0; }
.sidebar ul ul a { padding: .3rem 0; }

/* ------------------------------------------------------------ part detail */
.part-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.part-detail__figure { background: var(--paper-cool); border: 1px solid var(--rule); padding: clamp(1.5rem, 4vw, 3rem); display: grid; place-items: center; }
.part-detail__figure img { max-height: 420px; width: auto; mix-blend-mode: multiply; }
.part-detail h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); letter-spacing: .01em; margin-bottom: .2em; }
.part-detail__family { font-size: .95rem; color: var(--steel-mid); margin-bottom: 1.5rem; }
.part-detail__family a { color: var(--steel); }

.specs { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: .93rem; }
.specs caption { text-align: left; font-family: var(--ff-display); font-size: 1.1rem; color: var(--ink); padding-bottom: .5rem; }
.specs th, .specs td { padding: .55rem .7rem; border: 1px solid var(--rule); text-align: left; }
.specs thead th { background: var(--ink); color: #fff; font-weight: 600; font-family: var(--ff-display); font-size: 1rem; }
.specs tbody tr:nth-child(even) { background: var(--paper-cool); }
.table-scroll { overflow-x: auto; }

.callout {
  border: 1px solid var(--rule); border-top: 3px solid var(--signal);
  padding: 1.4rem 1.5rem; background: var(--paper-cool);
}
.callout h2, .callout h3 { margin-bottom: .4rem; }
.callout p:last-child { margin-bottom: 0; }

.neighbours { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.neighbours a {
  font-family: var(--ff-display); font-size: 1.02rem; font-weight: 500;
  border: 1px solid var(--rule); padding: .32rem .7rem; text-decoration: none; color: var(--ink);
  background: #fff;
}
.neighbours a:hover { border-color: var(--ink); }

/* ------------------------------------------------------------ industries */
.industry {
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.industry:first-of-type { border-top: 0; padding-top: 0; }
.industry__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); }
.industry h2 { margin-bottom: .35em; }
.industry .prose { max-width: 64ch; }

/* ------------------------------------------------------------ material strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: rgba(255,255,255,.14); }
.fact { background: var(--ink); padding: 1.5rem 1.4rem; }
.fact__figure { font-family: var(--ff-display); font-size: 2.5rem; font-weight: 600; color: #fff; line-height: 1; }
.fact p { margin: .45rem 0 0; font-size: .93rem; color: #a6b6c1; }

/* ------------------------------------------------------------ forms */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .88rem; color: var(--ink); font-weight: 500; margin-bottom: .3rem; }
.field .req { color: var(--signal); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--ff-body); font-size: 1rem;
  padding: .62rem .75rem; border: 1px solid var(--rule); background: #fff; color: var(--ink);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--signal); outline: none; }
.field__hint { font-size: .82rem; color: var(--steel-mid); margin-top: .3rem; }
.field--half { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field--half > div { margin: 0; }
.hp { position: absolute; left: -9999px; }

.alert { padding: .95rem 1.15rem; margin-bottom: 1.5rem; border-left: 3px solid; font-size: .95rem; }
.alert--ok  { border-color: var(--ok); background: #eef7f2; color: #135c3a; }
.alert--err { border-color: var(--signal); background: #fdf0eb; color: #96350c; }
.alert ul { margin: .4rem 0 0; }

/* ------------------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.contact-block { margin-bottom: 1.75rem; }
.contact-block h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.contact-block p { margin-bottom: .2rem; }
.contact-block a { color: var(--ink); }

/* ------------------------------------------------------------ footer */
.footer { background: var(--ink); color: #9eb0bc; font-size: .93rem; }
.footer a { color: #cbd6de; text-decoration: none; transition: color .16s ease; }
.footer a:hover { color: #fff; }

.footer__top {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.25fr;
  gap: 2.5rem;
  padding: clamp(2.75rem, 5vw, 3.75rem) 0 clamp(2rem, 4vw, 2.75rem);
}
.footer h3 {
  color: #fff; font-size: .82rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  padding-bottom: .6rem; margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
  position: relative;
}
.footer h3::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 34px; height: 2px; background: var(--signal);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .45rem; }

.footer__brand {
  font-family: var(--ff-display); font-size: 1.75rem; font-weight: 700;
  color: #fff; letter-spacing: .02em; line-height: 1;
}
.footer__blurb { margin: .9rem 0 1.25rem; max-width: 32ch; color: #92a5b1; }
.footer__principal {
  font-size: .87rem; line-height: 1.55; color: #92a5b1;
  padding-left: .85rem; border-left: 2px solid var(--signal); margin-bottom: 1rem;
}
.footer__principal a { color: #dbe4ea; }
.footer__creds {
  font-size: .76rem; letter-spacing: .06em; color: #6f8390; margin: 0;
}
.footer__more { color: #fff !important; font-weight: 500; }

.footer__contact address { font-style: normal; color: #92a5b1; margin-bottom: .9rem; line-height: 1.55; }
.footer__lines { margin-bottom: 1.15rem; }
.footer__lines li { margin-bottom: .3rem; }
.footer__cta { font-size: .95rem; padding: .55em 1.15em; }
.footer__social { margin: .9rem 0 0; font-size: .87rem; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.25rem 0 1.6rem;
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: flex-start;
  font-size: .82rem;
}
.footer__legal { margin: 0; line-height: 1.6; color: #7f939f; }
.footer__legal span { color: #6f8390; }
.footer__legal-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.35rem; margin-left: auto; }

/* ------------------------------------------------------------ misc blocks */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.media-frame { border: 1px solid var(--rule); background: var(--paper-cool); padding: 1.5rem; display: grid; place-items: center; }
.media-frame img { mix-blend-mode: multiply; }

.partner-card { border: 1px solid var(--rule); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; grid-template-columns: 190px 1fr; gap: 2rem; align-items: start; }
.partner-card__logo { background: #fff; display: grid; place-items: center; padding: .5rem; }

.pagination { display: flex; gap: .35rem; margin-top: 2rem; }
.pagination a, .pagination span {
  font-family: var(--ff-display); font-size: 1.05rem;
  padding: .35rem .75rem; border: 1px solid var(--rule); text-decoration: none; color: var(--ink);
}
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .catalogue { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .part-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .mega__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .mega__inner { grid-template-columns: minmax(0,1fr) 220px; gap: 2rem; }
  .industry { grid-template-columns: 1fr; }
  .industry__media img { max-width: 340px; }
}
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); padding: .5rem 0 1rem; max-height: 78vh; overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { color: #e2e9ee; padding: .65rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .is-active > a { box-shadow: none; color: var(--signal); }
  /* On narrow screens panels open by tap, so drop the hover transitions. */
  .nav .submenu, .mega {
    display: none; position: static; box-shadow: none; min-width: 0;
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    transition: none; transition-delay: 0s; background: rgba(0,0,0,.22); border-top: 0;
  }
  .nav .submenu.is-open, .mega.is-open { display: block; }
  .nav .submenu.is-open { display: flex; }
  .nav li:hover > .submenu, .nav .has-mega:hover > .mega { display: none; }
  .nav li:hover > .submenu.is-open { display: flex; }
  .nav .has-mega:hover > .mega.is-open { display: block; }
  .nav > ul > li > a::before { display: none; }
  .mega__inner { grid-template-columns: 1fr; gap: 0; padding: .25rem 0 1rem; }
  .mega__grid { grid-template-columns: 1fr; gap: 0; }
  .mega__family { padding: .6rem 1.25rem; border-left: 0; }
  .mega__family:hover { padding-left: 1.25rem; }
  .mega__aside { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 1.25rem 0; margin-top: .5rem; }
  body.is-pinned .masthead { position: relative; }
  .nav .submenu a { padding-left: 2.25rem; }
  .nav .submenu .submenu a { padding-left: 3.25rem; }
  .nav .has-kids > a::after { float: right; margin-top: .5em; }
  .partner-card { grid-template-columns: 1fr; }
  .utility__hide-sm { display: none; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__legal-nav { margin-left: 0; }
  .field--half { grid-template-columns: 1fr; }
  .parts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .part__no { font-size: 1.2rem; }
  .brand__name { font-size: 1.5rem; }
}

/* ------------------------------------------------------------ print */
@media print {
  .utility, .nav, .nav-toggle, .footer, .finder, .callout form { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .part-detail { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------ assistant */
.chat { position: fixed; right: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.75rem, 2vw, 1.5rem); z-index: 90; }

.chat__launcher {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ff-display); font-size: 1rem; font-weight: 500;
  padding: .7rem 1.15rem; border: 0; border-radius: var(--btn-radius, 0);
  background: var(--signal); color: #fff; cursor: pointer;
  box-shadow: 0 8px 26px rgba(10,26,39,.26);
  transition: background .16s ease, transform .16s ease;
}
.chat__launcher:hover { background: var(--signal-dk); transform: translateY(-1px); }
.chat__launcher svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat.is-open .chat__launcher { display: none; }

.chat__panel {
  position: absolute; right: 0; bottom: 0;
  width: min(92vw, 390px); height: min(78vh, 570px);
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule);
  box-shadow: 0 20px 60px rgba(10,26,39,.3);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98);
  transform-origin: bottom right; pointer-events: none;
  transition: opacity .2s ease, transform .24s cubic-bezier(.22,.61,.36,1), visibility .24s;
}
.chat.is-open .chat__panel { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

.chat__head {
  background: var(--ink); color: #fff;
  padding: .85rem 1rem; display: flex; align-items: center; gap: .6rem; flex: 0 0 auto;
}
.chat__head h2 { color: #fff; font-size: 1.08rem; margin: 0; line-height: 1.2; }
.chat__head p { margin: 0; font-size: .76rem; color: #9fb3c0; }
.chat__close {
  margin-left: auto; background: none; border: 0; color: #9fb3c0;
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 .2rem;
}
.chat__close:hover { color: #fff; }

.chat__log { flex: 1 1 auto; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; background: var(--paper-cool); }
.chat__msg { max-width: 88%; padding: .62rem .85rem; font-size: .93rem; line-height: 1.55; }
.chat__msg--assistant { background: var(--paper); border: 1px solid var(--rule); color: var(--steel); align-self: flex-start; }
.chat__msg--user { background: var(--ink); color: #e8eef3; align-self: flex-end; }
.chat__msg a { color: var(--signal-dk); }
.chat__msg--user a { color: #ffc7ad; }

.chat__typing { display: flex; gap: 4px; align-items: center; }
.chat__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--steel-mid); animation: chatdot 1.1s infinite; }
.chat__typing span:nth-child(2) { animation-delay: .16s; }
.chat__typing span:nth-child(3) { animation-delay: .32s; }
@keyframes chatdot { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat__form { flex: 0 0 auto; display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--rule); background: var(--paper); align-items: flex-end; }
.chat__input {
  flex: 1 1 auto; font-family: var(--ff-body); font-size: .93rem;
  padding: .55rem .65rem; border: 1px solid var(--rule); background: #fff; color: var(--ink);
  resize: none; min-height: 2.5rem; max-height: 120px; line-height: 1.45;
}
.chat__input:focus { outline: none; border-color: var(--signal); }
.chat__send { flex: 0 0 auto; border: 0; }
.chat__send:disabled { opacity: .5; cursor: default; }
.chat__foot { font-size: .72rem; color: var(--steel-mid); padding: 0 .7rem .6rem; background: var(--paper); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .chat__panel { transition: opacity .01ms; }
  .chat__typing span { animation: none; }
}
@media print { .chat { display: none; } }

/* ------------------------------------------------------------ button guard
   Link rules inside containers (.sidebar a, .prose a, .contact-block a …)
   are more specific than .btn and were turning button text orange-on-orange.
   These win wherever a button sits, in every state. */
a.btn:not(.btn--ghost):not(.btn--light),
a.btn:not(.btn--ghost):not(.btn--light):visited,
a.btn:not(.btn--ghost):not(.btn--light):hover,
a.btn:not(.btn--ghost):not(.btn--light):focus-visible { color: #fff; text-decoration: none; }
a.btn.btn--ghost:not(:hover) { color: var(--ink); }
a.btn.btn--ghost:hover, a.btn.btn--ghost:focus-visible { color: #fff; }
a.btn.btn--light:not(:hover) { color: #fff; }
a.btn.btn--light:hover, a.btn.btn--light:focus-visible { color: var(--ink); }
.sidebar a.btn { display: block; padding: .72em 1.45em; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* A hover you can actually see: a clearly deeper shade of the button colour. */
.btn:not(.btn--ghost):not(.btn--light):hover,
.btn:not(.btn--ghost):not(.btn--light):focus-visible {
  background: var(--signal-dk);
  background: color-mix(in srgb, var(--signal) 78%, #000);
  border-color: transparent;
}
