:root {
  --em-green-900: #0f2a1c;
  --em-green-800: #17402b;
  --em-green-600: #2d7a4f;
  --em-green-100: #e6f1ea;
  --em-accent: #ff8a1f;
  --em-text: #18221c;
  --em-muted: #55635b;
  --em-line: #dbe3de;
  --em-bg: #ffffff;
  --em-tint: #f4f7f5;
  --em-max: 72rem;
  --em-radius: 10px;
  --em-surface: #ffffff;
  --em-heading: #0f2a1c;
  --em-link: #2d7a4f;
  color-scheme: light dark;
  --em-shadow: 0 1px 2px rgb(15 42 28 / 8%), 0 8px 24px rgb(15 42 28 / 8%);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--em-text);
  background: var(--em-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--em-link); }
h1, h2, h3 { line-height: 1.2; color: var(--em-heading); }

.container { width: min(100% - 2rem, var(--em-max)); margin-inline: auto; }
.container--narrow { max-width: 48rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--em-accent); outline-offset: 2px; }

/* Buttons */
.btn, .em-btn {
  display: inline-block; padding: .75rem 1.4rem; border-radius: 6px; border: 2px solid var(--em-accent);
  background: var(--em-accent); color: var(--em-green-900); font-weight: 700; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: #fff; border-color: #fff; color: var(--em-green-900); }
.btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 55%); }
.btn--ghost:hover { background: #fff; color: var(--em-green-900); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--em-green-900); color: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; gap: 1rem; }
.site-title { color: #fff; font-size: 1.4rem; font-weight: 700; letter-spacing: .02em; text-decoration: none; }

.primary-nav .menu { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.menu__item { position: relative; display: flex; align-items: center; }
.menu__item > a, .menu__label { display: block; padding: 1.4rem .7rem; color: #fff; text-decoration: none; font-weight: 500; white-space: nowrap; }
.menu__item > a:hover, .menu__item.is-current > a, .menu__item.is-current > .menu__label { color: #8fd6ac; }

.submenu-toggle {
  width: 1.5rem; height: 1.5rem; margin-left: -.5rem; padding: 0; border: 0; background: none; cursor: pointer; color: #fff;
  display: grid; place-items: center;
}
.submenu-toggle::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentcolor; border-bottom: 2px solid currentcolor; transform: translateY(-2px) rotate(45deg); }

.submenu {
  position: absolute; top: 100%; left: 0; min-width: 16rem; margin: 0; padding: .5rem 0; list-style: none;
  background: var(--em-green-800); border-radius: 0 0 var(--em-radius) var(--em-radius); box-shadow: var(--em-shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.submenu a { display: block; padding: .65rem 1.25rem; color: #fff; text-decoration: none; }
.submenu a:hover, .submenu a:focus-visible { background: var(--em-green-600); }

@media (hover: hover) and (min-width: 62rem) {
  .menu__item.has-children:hover > .submenu,
  .menu__item.has-children:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
}
.menu__item.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid rgb(255 255 255 / 40%); border-radius: 6px; background: none; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 1.25rem; height: 2px; background: #fff; margin-inline: auto; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 61.99rem) {
  .nav-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--em-green-900); border-top: 1px solid rgb(255 255 255 / 15%); max-height: calc(100vh - 5rem); overflow: auto; }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem 1rem; }
  .menu__item { flex-wrap: wrap; }
  .menu__item > a, .menu__label { flex: 1; padding: .9rem .25rem; }
  .submenu-toggle { width: 2.75rem; height: 2.75rem; margin: 0; }
  .submenu { position: static; flex-basis: 100%; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; background: rgb(255 255 255 / 6%); }
  .menu__item.is-open > .submenu { display: block; }
}

/* Hero */
.hero { background: radial-gradient(120% 140% at 85% 0%, var(--em-green-600) 0%, var(--em-green-800) 45%, var(--em-green-900) 100%); color: #fff; padding: clamp(4rem, 10vw, 8rem) 0; }
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: image-set(url("../img/hero-overlay.webp") type("image/webp"), url("../img/hero-overlay.jpg") type("image/jpeg")) right center / auto 150% no-repeat;
  filter: grayscale(1); mix-blend-mode: screen; opacity: .3;
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / 25%) 25%, #000 80%);
  mask-image: linear-gradient(90deg, rgb(0 0 0 / 25%) 25%, #000 80%);
}
@media (max-width: 52rem) { .hero::before { background-position: center; opacity: .22; -webkit-mask-image: none; mask-image: none; } }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); max-width: 22ch; margin: 0 0 1rem; }
.hero__kicker, .page-hero__kicker { margin: 0 0 .75rem; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: #8fd6ac; }
.hero__lede { max-width: 42rem; font-size: 1.15rem; color: rgb(255 255 255 / 88%); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.page-hero { background: linear-gradient(135deg, var(--em-green-900), var(--em-green-800)); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  filter: grayscale(1); opacity: .4;
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / 55%), #000 70%);
  mask-image: linear-gradient(90deg, rgb(0 0 0 / 55%), #000 70%);
}
.page-hero--foundry::before { background-image: image-set(url("../img/banner-foundry.webp") type("image/webp"), url("../img/banner-foundry.jpg") type("image/jpeg")); }
.page-hero--furnace::before { background-image: image-set(url("../img/banner-furnace.webp") type("image/webp"), url("../img/banner-furnace.jpg") type("image/jpeg")); }
.page-hero--corridor::before { background-image: image-set(url("../img/banner-corridor.webp") type("image/webp"), url("../img/banner-corridor.jpg") type("image/jpeg")); background-position: center 40%; }
.page-hero--image::before { content: none; }
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero__lede { margin: .75rem 0 0; max-width: 40rem; color: rgb(255 255 255 / 85%); font-size: 1.1rem; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--em-tint); }
.section__title { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section__intro { max-width: 40rem; color: var(--em-muted); margin: 0 0 2rem; }
.section__title + .grid { margin-top: 2rem; }

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }

/* Cards: hover lifts the whole card; images are never scaled or skewed. */
.industry-card, .partner-card {
  display: flex; flex-direction: column; background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius);
  color: inherit; text-decoration: none; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.industry-card:hover, .industry-card:focus-visible, .partner-card:hover, .partner-card:focus-visible {
  transform: translateY(-4px); box-shadow: var(--em-shadow); border-color: var(--em-green-600);
}
.industry-card { border-top: 4px solid var(--em-green-600); }
.industry-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--em-green-100); }
.industry-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.industry-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.industry-card h3 { margin: 0 0 .5rem; }
.industry-card p { margin: 0 0 1rem; color: var(--em-muted); flex: 1; }
.industry-card__more { font-weight: 700; color: var(--em-green-600); }

.partner-card__logo { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 1.5rem; background: #fff; border-bottom: 1px solid var(--em-line); }
.partner-card__logo { position: relative; overflow: hidden; }
.partner-card__logo img { position: absolute; inset: 1.25rem; width: calc(100% - 2.5rem); height: calc(100% - 2.5rem); object-fit: contain; }
.partner-card__wordmark { font-size: 1.35rem; font-weight: 700; text-align: center; color: var(--em-green-800); }
.partner-card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.5rem 1.5rem; }
.partner-card__title { font-size: 1.15rem; font-weight: 700; color: var(--em-heading); }
.partner-card__body { flex: 1; }
.partner-card__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: calc(2 * 1.65em); color: var(--em-muted); }
.partner-card__meta { margin-top: auto; font-size: .85rem; color: var(--em-link); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .industry-card:hover, .partner-card:hover { transform: none; }
}

/* CTA */
.cta { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--em-radius); background: var(--em-green-100); }
.cta h2 { margin: 0 0 .5rem; }
.cta p { margin: 0; color: var(--em-muted); }
.cta .btn:hover { background: var(--em-green-900); border-color: var(--em-green-900); color: #fff; }

/* Partner single */
.partner-single { display: grid; gap: 3rem; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); align-items: start; }
.partner-single__aside { padding: 1.5rem; border: 1px solid var(--em-line); border-radius: var(--em-radius); background: var(--em-tint); }
.partner-single__logo { display: grid; border: 1px solid var(--em-line); place-items: center; aspect-ratio: 3 / 2; padding: 1rem; margin-bottom: 1rem; background: #fff; border-radius: 8px; }
.partner-single__logo { position: relative; overflow: hidden; }
.partner-single__logo img { position: absolute; inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); object-fit: contain; }
.partner-single dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--em-muted); }
.partner-single dd { margin: 0 0 1rem; font-weight: 600; }
.partner-single .btn:hover { background: var(--em-green-900); border-color: var(--em-green-900); color: #fff; }
@media (max-width: 52rem) { .partner-single { grid-template-columns: 1fr; } }

.entry > *:first-child { margin-top: 0; }
.entry p { max-width: 65ch; }

/* Footer */
.site-footer { background: var(--em-green-900); color: rgb(255 255 255 / 85%); padding: 3rem 0 1.5rem; }
.site-footer a { color: #fff; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.site-footer__brand { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0 0 .5rem; }
.site-footer p { margin: 0 0 .35rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 15%); font-size: .875rem; }

/* Products */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip { padding: .4rem .9rem; border: 1px solid var(--em-line); border-radius: 99px; background: var(--em-surface); color: var(--em-heading); font-size: .9rem; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s; }
.chip:hover, .chip.is-active { background: var(--em-green-800); border-color: var(--em-green-800); color: #fff; }

.product-card { display: flex; flex-direction: column; background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius); overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.product-card:hover, .product-card:focus-visible { transform: translateY(-4px); box-shadow: var(--em-shadow); border-color: var(--em-green-600); }
.product-card__media { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 1rem; background: var(--em-tint); border-bottom: 1px solid var(--em-line); }
.product-card__media { position: relative; overflow: hidden; }
.product-card__media img { position: absolute; inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); object-fit: contain; }
.product-card__placeholder { font-weight: 700; text-align: center; color: var(--em-green-600); opacity: .7; }
.product-card__body { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.25rem 1.25rem; }
.product-card__body { flex: 1; }
.product-card__partner { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--em-link); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; min-height: calc(3 * 1.65em); font-weight: 600; color: var(--em-heading); }
@media (prefers-reduced-motion: reduce) { .product-card:hover { transform: none; } }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 40rem; }
.spec-table th, .spec-table td { padding: .65rem .85rem; border-bottom: 1px solid var(--em-line); text-align: left; }
.spec-table thead th { background: var(--em-green-900); color: #fff; }
.spec-table tbody th { font-weight: 600; }
.spec-table tbody tr:nth-child(even) { background: var(--em-tint); }

.page-hero--image { background-size: cover; background-position: center; }
.product-card__media { background: #fff; }

/* Logo */
.site-logo { display: block; flex: 0 0 auto; line-height: 0; }
.site-logo__img { display: block; height: 5rem; width: auto; max-width: none; margin-block: -.25rem; }
.site-footer__brand { margin: 0 0 .75rem; line-height: 0; }
.site-footer__brand .site-logo__img { height: 5.5rem; margin: 0 0 0 -.5rem; }

.site-credit a { color: inherit; opacity: .75; text-decoration: none; }
.site-credit a:hover, .site-credit a:focus-visible { opacity: 1; text-decoration: underline; }

/* ==========================================================
   UX layer: header actions, quote list, search, breadcrumbs,
   filters, mobile bar, motion
   ========================================================== */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn--small { padding: .5rem 1rem; font-size: .9rem; white-space: nowrap; }
.btn--outline { background: transparent; color: var(--em-heading); border-color: var(--em-green-800); }
.btn--outline:hover { background: var(--em-green-900); border-color: var(--em-green-900); color: #fff; }

/* Header actions + shrink on scroll */
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background-color .15s; }
.icon-btn:hover, .icon-btn:focus-visible { background: rgb(255 255 255 / 14%); }
.icon-btn--dark { color: var(--em-heading); font-size: 1.6rem; line-height: 1; }
.icon-btn--dark:hover, .icon-btn--dark:focus-visible { background: var(--em-green-100); }
.quote-count { position: absolute; top: -.1rem; right: -.1rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem; border-radius: 99px; background: var(--em-accent); color: var(--em-green-900); font-size: .7rem; font-weight: 800; line-height: 1.15rem; text-align: center; }
.quote-count[hidden] { display: none; }
.site-header { transition: box-shadow .2s; }
.site-header__inner, .site-logo__img, .menu__item > a, .menu__label { transition: min-height .2s ease, height .2s ease, padding .2s ease; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgb(0 0 0 / 25%); }
.site-header.is-scrolled .site-header__inner { min-height: 3.75rem; }
.site-header.is-scrolled .site-logo__img { height: 3.25rem; }
.site-header.is-scrolled .menu__item > a, .site-header.is-scrolled .menu__label { padding-block: .9rem; }
@media (max-width: 71.99rem) { .header-cta { display: none; } }
/* Larger header at the top of the page (desktop); shrinks to the compact size on scroll. */
@media (min-width: 82rem) {
  .site-header__inner { min-height: 5.5rem; width: min(100% - 3rem, 90rem); gap: .5rem; }
  .menu__item > a, .menu__label { padding-inline: .55rem; }
  .site-logo__img { height: 5.5rem; }
  .menu__item > a, .menu__label { font-size: 1.1rem; padding-block: 1.55rem; }
  .menu__item > a, .menu__label, .site-header__inner, .site-logo__img { transition: min-height .2s ease, height .2s ease, padding .2s ease, font-size .2s ease; }
  .site-header.is-scrolled .site-header__inner { min-height: 3.75rem; }
  .site-header.is-scrolled .site-logo__img { height: 3.25rem; }
  .site-header.is-scrolled .menu__item > a, .site-header.is-scrolled .menu__label { font-size: 1rem; padding-block: .9rem; }
}
@media (max-width: 61.99rem) {
  .header-actions { margin-left: auto; }
  .site-header__inner { justify-content: flex-start; }
}

/* Dialogs */
dialog { padding: 0; border: 0; color: var(--em-text); }
dialog::backdrop { background: rgb(8 24 15 / 62%); backdrop-filter: blur(3px); }
.link-btn { padding: 0; border: 0; background: none; color: var(--em-green-600); font: inherit; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--em-heading); }

/* Quote tray (slide-out) */
.quote-tray { position: fixed; inset: 0 0 0 auto; width: min(26rem, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0; background: var(--em-surface); box-shadow: -12px 0 40px rgb(0 0 0 / 25%); }
.quote-tray[open] { display: flex; flex-direction: column; animation: em-slide-in .25s ease-out; }
@keyframes em-slide-in { from { transform: translateX(100%); } to { transform: none; } }
.quote-tray__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--em-line); }
.quote-tray__head h2 { margin: 0; font-size: 1.25rem; }
.quote-tray__empty { padding: 1.25rem; color: var(--em-muted); }
.quote-tray__list { flex: 1; margin: 0; padding: 0; list-style: none; overflow: auto; }
.quote-tray__list li { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .85rem 1.25rem; border-bottom: 1px solid var(--em-line); }
.quote-tray__list a { font-weight: 600; color: var(--em-heading); text-decoration: none; }
.quote-tray__list a:hover { text-decoration: underline; }
.quote-tray__list span { display: block; font-size: .8rem; color: var(--em-muted); }
.quote-tray__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--em-line); background: var(--em-tint); }
.quote-tray__foot[hidden], .quote-tray__empty[hidden] { display: none; }

.quote-toast { position: fixed; z-index: 90; left: 50%; bottom: 1.5rem; translate: -50% 0; padding: .65rem 1.1rem; border-radius: 99px; background: var(--em-green-900); color: #fff; font-size: .9rem; box-shadow: var(--em-shadow); animation: em-toast .2s ease-out; }
.quote-toast[hidden] { display: none; }
@keyframes em-toast { from { opacity: 0; translate: -50% .75rem; } }

/* Add-to-quote buttons */
.product-card { position: relative; }
.product-card__link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.quote-add { margin: 0 1.25rem 1.25rem; padding: .5rem .75rem; border: 2px solid var(--em-green-800); border-radius: 6px; background: transparent; color: var(--em-heading); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.quote-add:hover, .quote-add:focus-visible { background: var(--em-green-800); color: #fff; }
.quote-add.is-added { background: var(--em-green-100); border-color: var(--em-green-600); color: var(--em-heading); }
.quote-add.is-added:hover { background: var(--em-green-800); color: #fff; }
.quote-add [hidden] { display: none; }
.quote-add--lg { display: block; width: 100%; margin: 0 0 .75rem; padding: .75rem 1.4rem; font-size: 1rem; background: var(--em-accent); border-color: var(--em-accent); }
.quote-add--lg:hover { background: var(--em-green-900); border-color: var(--em-green-900); }
.quote-add--lg.is-added { background: var(--em-green-100); border-color: var(--em-green-600); }
.partner-single__aside .btn--outline { display: block; text-align: center; }
.product-card:hover, .product-card:focus-within { transform: translateY(-4px); box-shadow: var(--em-shadow); border-color: var(--em-green-600); }

/* Search */
.search-dialog { width: min(40rem, calc(100% - 2rem)); margin: 10vh auto auto; border-radius: var(--em-radius); background: var(--em-surface); box-shadow: 0 20px 60px rgb(0 0 0 / 35%); overflow: hidden; }
.search-dialog[open] { animation: em-pop .18s ease-out; }
@keyframes em-pop { from { opacity: 0; transform: translateY(-.75rem) scale(.98); } }
.search-dialog__form { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem .5rem 1.25rem; border-bottom: 1px solid var(--em-line); }
.search-dialog__form input { flex: 1; min-width: 0; padding: .85rem 0; border: 0; outline: 0; font: inherit; font-size: 1.15rem; background: transparent; }
.search-dialog__results { max-height: 22rem; margin: 0; padding: .35rem; list-style: none; overflow: auto; }
.search-dialog__results:empty { display: none; }
.search-dialog__results a { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .85rem; border-radius: 8px; color: var(--em-heading); text-decoration: none; }
.search-dialog__results [aria-selected="true"] a, .search-dialog__results a:hover { background: var(--em-green-100); }
.search-dialog__title { font-weight: 600; }
.search-dialog__meta { font-size: .8rem; color: var(--em-muted); }
.search-dialog__none { padding: 1rem; color: var(--em-muted); }
.search-dialog__hint { margin: 0; padding: .6rem 1.25rem; background: var(--em-tint); color: var(--em-muted); font-size: .8rem; }
.search-dialog__hint kbd { padding: .05rem .35rem; border: 1px solid var(--em-line); border-radius: 4px; background: var(--em-surface); font: inherit; font-size: .75rem; }
@media (hover: none) { .search-dialog__hint { display: none; } }

/* Breadcrumbs */
.breadcrumbs { margin: 0 0 1rem; font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .15rem .5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .5rem; opacity: .5; }
.breadcrumbs a { color: rgb(255 255 255 / 80%); text-decoration: none; }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current] span { color: #8fd6ac; }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 0 0 1.5rem; }
.filter-bar label { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--em-muted); }
.filter-bar select { min-width: 14rem; padding: .5rem .75rem; border: 1px solid var(--em-line); border-radius: 6px; background: var(--em-surface); color: var(--em-heading); font: inherit; }
.filter-bar__count { margin-left: auto; color: var(--em-muted); font-size: .9rem; }
.filter-bar__reset { font-size: .9rem; }

/* Mobile quick-action bar */
.mobile-bar { display: none; }
@media (max-width: 52rem) {
  body { padding-bottom: 4rem; }
  .mobile-bar { position: fixed; z-index: 60; inset: auto 0 0; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: .5rem; padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom)); background: var(--em-green-900); box-shadow: 0 -6px 20px rgb(0 0 0 / 25%); }
  .mobile-bar__item { position: relative; display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem; border: 1px solid rgb(255 255 255 / 30%); border-radius: 8px; background: transparent; color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
  .mobile-bar__item--primary { background: var(--em-accent); border-color: var(--em-accent); color: var(--em-green-900); font-weight: 800; }
  .mobile-bar .quote-count { position: static; background: var(--em-green-900); color: #fff; }
  .quote-toast { bottom: 5rem; }
}

/* ---------- Motion & loading ---------- */

/* Page-to-page view transitions (progressive enhancement). */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
::view-transition-group(*) { animation-duration: .35s; }

/* Image skeleton shimmer behind images; fade-in once loaded (only when JS is on). */
.product-card__media, .industry-card__media, .partner-card__logo, .partner-single__logo {
  background-image: linear-gradient(100deg, transparent 30%, rgb(15 42 28 / 6%) 50%, transparent 70%);
  background-size: 200% 100%; animation: em-shimmer 1.4s linear infinite;
}
@keyframes em-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.js img[loading="lazy"] { opacity: 0; transition: opacity .35s ease; }
.js img[loading="lazy"].is-loaded { opacity: 1; }

/* Scroll-driven reveal (CSS only, where supported). */
@keyframes em-reveal { from { opacity: 0; translate: 0 1.5rem; } to { opacity: 1; translate: 0 0; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .grid > *, .cta, .section__title, .section__intro, .spec-table, .partner-single__aside {
      animation: em-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .product-card__media, .industry-card__media, .partner-card__logo, .partner-single__logo { animation: none; }
  .quote-tray[open], .search-dialog[open], .quote-toast { animation: none; }
  .product-card:hover { transform: none; }
  .js img[loading="lazy"] { transition: none; }
}
.search-dialog__form input::-webkit-search-cancel-button { display: none; }

/* Industry cards: full-bleed photo with a legible text scrim */
.industry-card { position: relative; aspect-ratio: 4 / 5; min-height: 22rem; border: 0; border-top: 0; color: #fff; background: var(--em-green-900); isolation: isolate; }
.industry-card__media { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; background: var(--em-green-900); }
.industry-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.industry-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(15 42 28 / 0%) 25%, rgb(15 42 28 / 78%) 62%, rgb(15 42 28 / 96%) 100%); }
.industry-card__body { flex: 0 0 auto; margin-top: auto; padding: 1.5rem; }
.industry-card h3 { color: #fff; font-size: 1.4rem; text-shadow: 0 1px 8px rgb(0 0 0 / 45%); }
.industry-card p { flex: none; color: rgb(255 255 255 / 92%); text-shadow: 0 1px 6px rgb(0 0 0 / 45%); }
.industry-card__more { color: var(--em-accent); }
.industry-card:hover, .industry-card:focus-visible { border-color: transparent; }
.industry-card:hover .industry-card__more, .industry-card:focus-visible .industry-card__more { text-decoration: underline; }
@media (min-width: 40rem) { .industry-card p { min-height: calc(3 * 1.65em); } }

/* Product carousel (native scroll-snap: swipe, trackpad, keyboard or buttons) */
.carousel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.carousel__head .section__title { margin: 0; }
.carousel__controls { display: flex; gap: .5rem; }
.carousel__btn { width: 2.75rem; height: 2.75rem; border: 2px solid var(--em-green-800); border-radius: 50%; background: var(--em-surface); color: var(--em-heading); font-size: 1.2rem; line-height: 1; cursor: pointer; transition: background-color .15s, color .15s, opacity .15s; }
.carousel__btn:hover:not(:disabled), .carousel__btn:focus-visible { background: var(--em-green-800); color: #fff; }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__track { display: flex; gap: 1.5rem; margin: 0; padding: .5rem .25rem 1.25rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: .25rem; scrollbar-width: thin; scrollbar-color: var(--em-green-600) transparent; overscroll-behavior-x: contain; }
.carousel__slide { flex: 0 0 calc((100% - 3rem) / 3); display: flex; scroll-snap-align: start; }
.carousel__slide .product-card { width: 100%; }
@media (max-width: 62rem) { .carousel__slide { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (max-width: 40rem) { .carousel__slide { flex-basis: 82%; } .carousel__btn { display: none; } }
.carousel__more { margin: 1rem 0 0; text-align: center; }
.carousel__track:focus-visible { outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) { .carousel__track { scroll-behavior: smooth; } }

/* ==========================================================
   Product page extras, compare, lightbox, trust band, consent,
   404, empty states
   ========================================================== */
.product-subhead { margin: 2rem 0 .75rem; font-size: 1.3rem; }
.spec-table--kv { min-width: 0; }
.spec-table--kv th { width: 38%; font-weight: 600; background: var(--em-tint); }
.doc-list { display: grid; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.doc-list a { display: flex; align-items: center; gap: .85rem; padding: .7rem 1rem; border: 1px solid var(--em-line); border-radius: 8px; background: var(--em-surface); color: var(--em-heading); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.doc-list a:hover, .doc-list a:focus-visible { border-color: var(--em-green-600); box-shadow: var(--em-shadow); }
.doc-list__icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 6px; background: #c0392b; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.doc-list__label { flex: 1; font-weight: 600; }
.doc-list__size { color: var(--em-muted); font-size: .85rem; }

.product-gallery { margin-bottom: 1rem; }
.product-gallery__main { width: 100%; margin: 0 0 .5rem; cursor: zoom-in; font: inherit; }
.partner-single__logo.product-gallery__main { padding: 1rem; background: #fff; }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.product-gallery__thumbs button { display: block; width: 100%; aspect-ratio: 1; padding: .25rem; border: 1px solid var(--em-line); border-radius: 6px; background: #fff; cursor: zoom-in; }
.product-gallery__thumbs button:hover, .product-gallery__thumbs button:focus-visible { border-color: var(--em-green-600); }
.product-gallery__thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; }

.lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(5 15 10 / 88%); }
.lightbox__img { max-width: min(92vw, 70rem); max-height: 86vh; object-fit: contain; border-radius: 8px; background: #fff; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / 92%); color: #0f2a1c; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: var(--em-accent); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__btn[hidden] { display: none; }

.recent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.recent-list a { display: flex; flex-direction: column; gap: .5rem; align-items: center; height: 100%; padding: .75rem; border: 1px solid var(--em-line); border-radius: 8px; background: var(--em-surface); color: var(--em-heading); font-size: .9rem; font-weight: 600; text-align: center; text-decoration: none; }
.recent-list a:hover, .recent-list a:focus-visible { border-color: var(--em-green-600); }
.recent-list img { width: 6rem; height: 4.5rem; object-fit: contain; background: #fff; border-radius: 4px; }
[data-recent][hidden] { display: none; }

.qty-input { width: 4.25rem; padding: .3rem .4rem; border: 1px solid var(--em-line); border-radius: 6px; background: var(--em-surface); color: var(--em-text); font: inherit; }
.quote-tray__side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }

.compare-check { display: flex; align-items: center; gap: .4rem; margin: 0 1.25rem 1rem; font-size: .85rem; color: var(--em-muted); cursor: pointer; }
.compare-check input { width: 1rem; height: 1rem; accent-color: var(--em-green-600); }
.compare-check--lg { margin: .75rem 0 0; font-size: .95rem; }
.compare-bar { position: fixed; z-index: 70; left: 50%; bottom: 1.25rem; translate: -50% 0; display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; max-width: calc(100% - 2rem); padding: .65rem 1rem; border-radius: 99px; background: var(--em-green-900); color: #fff; box-shadow: 0 8px 28px rgb(0 0 0 / 35%); }
.compare-bar[hidden] { display: none; }
.compare-bar .is-disabled { opacity: .45; pointer-events: none; }
.link-btn--light { color: #fff; }
.em-compare-table th, .em-compare-table td { vertical-align: top; }
.em-compare-table thead th a { color: #fff; }
.em-compare-table img { display: block; width: 6rem; height: auto; background: #fff; border-radius: 4px; }
.em-compare__remove { font-size: .8rem; font-weight: 400; opacity: .85; }
@media (max-width: 52rem) { .compare-bar { bottom: 5rem; } }

.empty-state { padding: clamp(1.5rem, 4vw, 3rem); border: 1px dashed var(--em-line); border-radius: var(--em-radius); background: var(--em-tint); text-align: center; }
.empty-state h3 { margin: 0 0 .5rem; font-size: 1.4rem; }
.empty-state p { max-width: 36rem; margin-inline: auto; color: var(--em-muted); }
.empty-state__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }


.notfound__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.notfound__actions .btn--outline { color: var(--em-heading); border-color: var(--em-green-800); }

.consent { position: fixed; z-index: 80; left: 1rem; bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; max-width: 36rem; padding: 1rem 1.25rem; border-radius: var(--em-radius); background: var(--em-green-900); color: #fff; box-shadow: 0 10px 34px rgb(0 0 0 / 40%); }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 16rem; margin: 0; font-size: .9rem; }
.consent a { color: #8fd6ac; }
.consent__actions { display: flex; gap: .5rem; }
@media (max-width: 52rem) { .consent { bottom: 4.75rem; } }

.partner-card__logo img { filter: grayscale(1); opacity: .8; transition: filter .25s ease, opacity .25s ease; }
.partner-card:hover .partner-card__logo img, .partner-card:focus-visible .partner-card__logo img { filter: none; opacity: 1; }
.partner-single__logo img { filter: none; opacity: 1; }

/* ---------- Dark mode (follows the visitor's system setting) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --em-bg: #0d1611;
    --em-surface: #15211a;
    --em-text: #e4ede7;
    --em-muted: #a5b6ab;
    --em-line: #2b3b32;
    --em-tint: #111c16;
    --em-green-100: #1c2e23;
    --em-heading: #f1f7f3;
    --em-link: #6fcf9a;
    --em-shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 40%);
  }
  .btn--outline, .notfound__actions .btn--outline { color: var(--em-heading); border-color: #3c5a49; }
  .btn--outline:hover { background: var(--em-green-600); border-color: var(--em-green-600); color: #fff; }
  .cta .btn:hover, .partner-single .btn:hover { background: #fff; border-color: #fff; color: #0f2a1c; }
  .chip:hover, .chip.is-active { background: var(--em-green-600); border-color: var(--em-green-600); color: #fff; }
  .quote-add { border-color: #3c5a49; }
  .quote-add:hover, .quote-add:focus-visible { background: var(--em-green-600); border-color: var(--em-green-600); color: #fff; }
  .quote-add.is-added { color: var(--em-heading); border-color: var(--em-green-600); }
  .quote-add--lg { color: #0f2a1c; }
  .quote-add--lg.is-added { color: var(--em-heading); }
  .carousel__btn { border-color: #3c5a49; }
  .carousel__btn:hover:not(:disabled), .carousel__btn:focus-visible { background: var(--em-green-600); color: #fff; }
  .filter-bar select { border-color: var(--em-line); }
  .search-dialog__hint kbd { color: var(--em-text); }
  .site-credit a, .site-footer a { color: #fff; }
  .spec-table--kv th { background: var(--em-green-100); }
  .product-card__media, .industry-card__media { background-color: #fff; }
  .partner-card__logo img { filter: grayscale(1) contrast(.95); }
  .lightbox__img { background: #fff; }
  .quote-count { color: #0f2a1c; }
  .breadcrumbs a { color: rgb(255 255 255 / 85%); }
  .em-compare-table thead th { background: var(--em-green-800); }
}

/* ---------- Print: datasheet-friendly pages ---------- */
@media print {
  .site-header, .site-footer, .mobile-bar, .compare-bar, .consent, .quote-toast, .quote-add, .compare-check, .carousel__controls,
  .filter-bar, .chips, .breadcrumbs, .nav-toggle, .header-actions, .cta, [data-recent], .lightbox, dialog, .skip-link { display: none !important; }
  body { padding: 0 !important; background: #fff; color: #000; font-size: 11pt; }
  .page-hero, .hero { padding: 0 0 .75rem; background: none !important; color: #000; }
  .page-hero::before, .hero::before { content: none !important; }
  .page-hero h1, .hero h1, h1, h2, h3 { color: #000; }
  .page-hero__kicker, .hero__kicker { color: #444; }
  .section { padding: 1rem 0; background: none !important; }
  .partner-single { display: block; }
  .partner-single__aside { border: 0; padding: 0; background: none; margin-top: 1rem; }
  a { color: #000; text-decoration: underline; }
  .entry a[href^="http"]::after, .doc-list a::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; }
  .spec-table thead th { background: #eee !important; color: #000; }
  img { max-width: 100%; page-break-inside: avoid; }
  .grid > *, .carousel__slide, .product-card, .partner-card { animation: none !important; opacity: 1 !important; translate: none !important; }
}

/* Partner enquiry dialog */
.enquiry-dialog { width: min(34rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem); margin: auto; padding: 1.25rem 1.5rem 1.5rem; border-radius: var(--em-radius); background: var(--em-surface); color: var(--em-text); box-shadow: 0 20px 60px rgb(0 0 0 / 35%); overflow: auto; }
.enquiry-dialog[open] { animation: em-pop .18s ease-out; }
.enquiry-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.enquiry-dialog__head h2 { margin: 0; font-size: 1.35rem; }
.enquiry-dialog .em-portal { max-width: none; }
@media (prefers-reduced-motion: reduce) { .enquiry-dialog[open] { animation: none; } }
@media (prefers-color-scheme: dark) {
  .em-topic { border-color: #3c5a49; }
  .em-topic[aria-pressed="true"] { background: var(--em-green-600); border-color: var(--em-green-600); }
  .enquiry-dialog .em-form input[type="text"], .enquiry-dialog .em-form input[type="email"], .enquiry-dialog .em-form input[type="tel"], .enquiry-dialog .em-form textarea { background: #0f1914; color: #e4ede7; border-color: #3c5a49; }
}

/* Loading shimmer only until the image has loaded */
.product-card__media:has(img.is-loaded, img:not([loading="lazy"])), .industry-card__media:has(img.is-loaded, img:not([loading="lazy"])), .partner-card__logo:has(img.is-loaded, img:not([loading="lazy"])), .partner-single__logo:has(img.is-loaded, img:not([loading="lazy"])) { animation: none; background-image: none; }
