/* Beresford professional interface layer — shared across marketplace templates. */
:root {
  --bm-pro-ink: #0a0e0d;
  --bm-pro-ink-soft: #111715;
  --bm-pro-paper: #f5f6f2;
  --bm-pro-white: #ffffff;
  --bm-pro-text: #171c19;
  --bm-pro-muted: #68706b;
  --bm-pro-line: #d9ddd8;
  --bm-pro-line-dark: rgba(255, 255, 255, 0.15);
  --bm-pro-accent: #9dcc3b;
  --bm-pro-accent-dark: #526b1d;
  --bm-pro-radius: 14px;
  --bm-pro-shell: 1440px;
  --bm-pro-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@view-transition { navigation: auto; }

::selection {
  background: var(--bm-pro-accent);
  color: var(--bm-pro-ink);
}

:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) {
  background: var(--bm-pro-paper);
  font-family: "Montserrat", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) :focus-visible {
  outline: 2px solid var(--bm-pro-accent);
  outline-offset: 4px;
}

/* Navigation */
:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: none;
  min-height: 78px;
  margin: 0;
  padding: 13px max(24px, calc((100% - 1320px) / 2));
  border: 0;
  border-bottom: 1px solid rgba(22, 28, 24, 0.1);
  background: rgba(249, 250, 247, 0.93);
  box-shadow: none;
  color: var(--bm-pro-text);
  backdrop-filter: blur(18px) saturate(130%);
  transition: min-height 260ms var(--bm-pro-ease), background 260ms ease, box-shadow 260ms ease;
}

:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-header.is-pro-compact {
  min-height: 66px;
  background: rgba(249, 250, 247, 0.98);
  box-shadow: 0 10px 32px rgba(18, 25, 20, 0.08);
}

.tmd-detail-page .tmd-header,
.tmd-detail-page .tmd-header.is-pro-compact {
  border-color: var(--bm-pro-line-dark);
  background: rgba(7, 10, 9, 0.93);
  color: #fff;
}

:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-logo {
  width: 188px;
  transition: transform 260ms var(--bm-pro-ease);
}

:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-logo:hover {
  transform: translateY(-1px);
}

:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page) .tmd-nav a {
  position: relative;
  color: #202621;
}

.tmd-detail-page .tmd-nav a { color: rgba(255, 255, 255, 0.84); }

:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-nav > a::after,
:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-nav-trigger::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--bm-pro-accent-dark);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--bm-pro-ease);
}

:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-nav > a:hover::after,
:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-nav-trigger:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-quote {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #1b211d;
  border-radius: 4px;
  background: #1b211d;
  color: #fff;
  box-shadow: none;
  transition: color 220ms ease, background 220ms ease, transform 220ms var(--bm-pro-ease);
}

:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-quote:hover {
  background: var(--bm-pro-accent);
  color: var(--bm-pro-ink);
  transform: translateY(-2px);
}

/* Shared editorial structure */
:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page) main {
  overflow: clip;
}

:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page) h1,
:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page) h2,
.tmd-detail-page h1,
.tmd-detail-page h2 {
  text-wrap: balance;
}

:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page) .product-eyebrow,
:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page) main section > p:first-child,
.tmd-detail-page main section > div > p:first-child {
  letter-spacing: 0.16em;
}

/* Home hero */
.tmd-home .tmd-hero {
  width: min(calc(100% - 48px), var(--bm-pro-shell));
  min-height: 650px;
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: var(--bm-pro-ink);
  box-shadow: 0 22px 64px rgba(20, 28, 22, 0.12);
}

.tmd-home .tmd-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  content: "";
}

.tmd-home .tmd-hero > img {
  border-radius: inherit;
  transform: scale(1.025) translate3d(var(--bm-hero-x, 0), var(--bm-hero-y, 0), 0);
  transform-origin: center;
  transition: transform 1.1s var(--bm-pro-ease);
  animation: none;
}

.tmd-home .tmd-hero-copy {
  padding: clamp(44px, 5vw, 72px);
}

.tmd-home .tmd-hero-copy h1 {
  max-width: 730px;
  font-size: clamp(48px, 5.3vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.tmd-home .tmd-hero-panel > strong {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 14px;
  line-height: 1.65;
}

.tmd-home .tmd-hero-switch {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.24);
}

.tmd-home .tmd-hero-search {
  order: 2;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.tmd-home .tmd-hero-search button {
  transition: background 220ms ease, transform 220ms var(--bm-pro-ease);
}

.tmd-home .tmd-hero-search button:hover { background: #b2df54; }

.tmd-home .tmd-chat {
  bottom: var(--bm-chat-bottom, 18px);
  transition: bottom 260ms var(--bm-pro-ease);
}

@media (min-width: 981px) {
  .tmd-home .tmd-hero-search {
    position: relative;
    order: 2;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(1190px, calc(100% - 96px));
    margin: -22px auto 0;
  }
}

/* Cards and section geometry */
.tmd-home .tmd-featured,
.tmd-home .tmd-categories,
.tmd-home .tmd-sell-machinery,
.tmd-home .tmd-buyer-alerts,
.tmd-home .tmd-contact,
.tmd-about-page :is(.about-intro, .about-mission, .about-values, .about-proof, .tmd-stock-strip, .about-cta) {
  position: relative;
}

.tmd-home .tmd-machine-card,
.tmd-home .tmd-catalogue-card,
.tmd-catalogue-page .tmd-catalogue-card,
.tmd-related-card,
.about-mission-grid article,
.about-coverage article,
.bm-sell-channel-grid article {
  border-color: var(--bm-pro-line);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 320ms var(--bm-pro-ease);
}

.tmd-home .tmd-machine-card:hover,
.tmd-home .tmd-catalogue-card:hover,
.tmd-catalogue-page .tmd-catalogue-card:hover,
.tmd-related-card:hover,
.about-mission-grid article:hover,
.about-coverage article:hover,
.bm-sell-channel-grid article:hover {
  border-color: #b9c3b9;
  box-shadow: 0 18px 46px rgba(20, 30, 23, 0.09);
  transform: translateY(-5px);
}

:is(.tmd-machine-card, .tmd-catalogue-card, .tmd-related-card) img {
  transition: transform 700ms var(--bm-pro-ease), filter 400ms ease;
}

:is(.tmd-machine-card, .tmd-catalogue-card, .tmd-related-card):hover img {
  transform: scale(1.035);
}

.tmd-home .tmd-featured-heading,
.tmd-home .tmd-section-heading,
.tmd-about-page .tmd-section-heading,
.tmd-catalogue-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bm-pro-line);
}

/* Auto Trader's restrained listing-card depth, adapted to Beresford. */
.tmd-home .tmd-home-stock .tmd-catalogue-card {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 1px 5px 0 rgb(232, 231, 230);
  transition: box-shadow 220ms ease, transform 220ms var(--bm-pro-ease);
}

.tmd-home .tmd-home-stock .tmd-catalogue-card:hover {
  border: 0;
  box-shadow: 0 4px 12px rgba(36, 45, 61, 0.12);
  transform: translateY(-2px);
}

.tmd-home .tmd-home-stock .tmd-catalogue-card img {
  transition: transform 320ms var(--bm-pro-ease), filter 260ms ease;
}

.tmd-home .tmd-home-stock .tmd-catalogue-card:hover img {
  transform: scale(1.012);
}

/* Catalogue */
.tmd-catalogue-page .tmd-catalogue-hero {
  width: min(calc(100% - 48px), var(--bm-pro-shell));
  min-height: 470px;
  margin: 24px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  box-shadow: 0 22px 64px rgba(20, 28, 22, 0.12);
}

.tmd-catalogue-page .tmd-catalogue-hero h1 {
  font-size: clamp(46px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.tmd-catalogue-page .tmd-catalogue-hero aside {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 10, 8, 0.72);
  backdrop-filter: blur(12px);
}

.tmd-catalogue-page .tmd-catalogue-shell {
  width: min(calc(100% - 48px), var(--bm-pro-shell));
}

.tmd-catalogue-page .tmd-catalogue-toolbar {
  position: sticky;
  top: 78px;
  z-index: 30;
  border: 1px solid var(--bm-pro-line);
  border-radius: 8px;
  background: rgba(249, 250, 247, 0.96);
  box-shadow: 0 12px 34px rgba(22, 30, 24, 0.07);
  backdrop-filter: blur(16px);
}

.tmd-catalogue-page .tmd-catalogue-toolbar :is(input, select) {
  border-radius: 4px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.tmd-catalogue-page .tmd-catalogue-toolbar :is(input, select):focus {
  border-color: var(--bm-pro-accent-dark);
  box-shadow: 0 0 0 3px rgba(157, 204, 59, 0.14);
}

.tmd-catalogue-page .tmd-catalogue-grid {
  gap: 18px;
}

.tmd-catalogue-page .tmd-catalogue-card {
  overflow: hidden;
  background: #fff;
}

/* Seller and about pages */
.bm-sell-page .bm-sell-hero,
.tmd-about-page .about-hero {
  width: min(calc(100% - 48px), var(--bm-pro-shell));
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  box-shadow: 0 22px 64px rgba(20, 28, 22, 0.12);
}

.bm-sell-page .bm-sell-hero h1,
.tmd-about-page .about-hero h1 {
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.bm-sell-page .bm-sell-process,
.bm-sell-page .bm-sell-application,
.tmd-about-page .about-intro {
  background-color: var(--bm-pro-ink);
}

.bm-sell-page .bm-sell-process li {
  transition: background 260ms ease;
}

.bm-sell-page .bm-sell-process li:hover {
  background: rgba(157, 204, 59, 0.06);
}

.bm-sell-page .bm-sell-faq details {
  transition: background 220ms ease, padding 220ms var(--bm-pro-ease);
}

.bm-sell-page .bm-sell-faq details[open] {
  padding-inline: 18px;
  background: #eef1ea;
}

.bm-intake-form,
.tmd-lead-form {
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(18, 26, 20, 0.1);
}

:is(.bm-intake-form, .tmd-lead-form) :is(input, select, textarea) {
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

:is(.bm-intake-form, .tmd-lead-form) :is(input, select, textarea):focus {
  border-color: var(--bm-pro-accent-dark);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(157, 204, 59, 0.13);
}

/* Machine detail: premium product-page system */
.tmd-detail-page {
  background: #080b0a;
  color: #fff;
}

.tmd-detail-page main { overflow: clip; }

.tmd-detail-page .tmd-breadcrumbs {
  width: min(calc(100% - 48px), var(--bm-pro-shell));
  margin: 0 auto;
  padding: 22px 0;
  border-bottom: 1px solid var(--bm-pro-line-dark);
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.tmd-detail-page .tmd-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, 0.75fr);
  gap: 1px;
  width: min(calc(100% - 48px), var(--bm-pro-shell));
  margin: 0 auto;
  padding: 0;
  border-right: 1px solid var(--bm-pro-line-dark);
  border-bottom: 1px solid var(--bm-pro-line-dark);
  border-left: 1px solid var(--bm-pro-line-dark);
  background: var(--bm-pro-line-dark);
}

.tmd-detail-page .tmd-detail-gallery {
  display: grid;
  grid-template-rows: minmax(500px, 68vh) auto;
  min-width: 0;
  background: #0d1210;
}

.tmd-detail-page .tmd-detail-main-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  object-fit: contain;
  background: #f4f5f2;
}

.tmd-detail-page .tmd-detail-gallery > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--bm-pro-line-dark);
  background: var(--bm-pro-line-dark);
}

.tmd-detail-page .tmd-detail-gallery > div:empty { display: none; }

.tmd-detail-page .tmd-detail-gallery > div img {
  width: 100%;
  height: 124px;
  padding: 12px;
  object-fit: contain;
  background: #f4f5f2;
  cursor: pointer;
  transition: background 180ms ease, opacity 180ms ease;
}

.tmd-detail-page .tmd-detail-gallery > div img:hover { background: #ffffff; }

.tmd-detail-page .tmd-detail-summary {
  position: relative;
  align-self: stretch;
  padding: clamp(36px, 5vw, 70px) clamp(28px, 4vw, 54px);
  background: #0a0e0d;
}

.tmd-detail-page .tmd-detail-summary h1 {
  max-width: 620px;
  margin-top: 18px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(42px, 4.5vw, 68px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-transform: none;
}

.tmd-detail-page .tmd-detail-summary > p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.tmd-detail-page .tmd-detail-price {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.04em;
}

.tmd-detail-page .tmd-detail-summary dl {
  margin: 34px 0;
  border-top: 1px solid var(--bm-pro-line-dark);
}

.tmd-detail-page .tmd-detail-summary dl div {
  padding: 14px 0;
  border-bottom: 1px solid var(--bm-pro-line-dark);
}

.tmd-detail-page :is(.tmd-primary-button, .tmd-whatsapp-link, .tmd-call-link, .tmd-video-link) {
  min-height: 48px;
  border-radius: 3px;
  transition: background 200ms ease, color 200ms ease, transform 220ms var(--bm-pro-ease);
}

.tmd-detail-page :is(.tmd-primary-button, .tmd-whatsapp-link, .tmd-call-link, .tmd-video-link):hover {
  transform: translateY(-2px);
}

.tmd-detail-page .tmd-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 1px;
  width: min(100%, var(--bm-pro-shell));
  margin: 0 auto;
  padding: 0;
  background: var(--bm-pro-line);
  color: var(--bm-pro-text);
}

.tmd-detail-page .tmd-detail-content > * {
  min-height: 460px;
  padding: clamp(44px, 6vw, 88px);
  background: var(--bm-pro-white);
}

.tmd-detail-page .tmd-detail-content h2 {
  max-width: 760px;
  color: var(--bm-pro-text);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-transform: none;
}

.tmd-detail-page .tmd-detail-content article > p,
.tmd-detail-page .tmd-detail-content article li {
  color: var(--bm-pro-muted);
  font-size: 14px;
  line-height: 1.75;
}

.tmd-detail-page .tmd-detail-content aside { background: #eef1eb; }

.tmd-detail-page .tmd-detail-content aside dl div {
  padding: 15px 0;
  border-color: #d7dcd5;
}

.tmd-detail-page .tmd-related-machinery {
  width: min(100%, var(--bm-pro-shell));
  margin: 0 auto;
  padding: clamp(60px, 8vw, 110px) clamp(24px, 5vw, 70px);
  background: var(--bm-pro-paper);
  color: var(--bm-pro-text);
}

.tmd-detail-page .tmd-related-machinery > div:first-child {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--bm-pro-line);
}

.tmd-detail-page .tmd-related-machinery h2 {
  color: var(--bm-pro-text);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: none;
}

.tmd-detail-page .tmd-related-grid { gap: 18px; }

.tmd-detail-page .tmd-related-card {
  overflow: hidden;
  border: 1px solid var(--bm-pro-line);
  background: #fff;
}

.tmd-detail-page .tmd-related-card > div { padding: 20px; }
.tmd-detail-page .tmd-related-card h3,
.tmd-detail-page .tmd-related-card strong { color: var(--bm-pro-text); }
.tmd-detail-page .tmd-related-card p,
.tmd-detail-page .tmd-related-card small { color: var(--bm-pro-muted); }

.tmd-detail-page .tmd-machine-wanted,
.tmd-detail-page .tmd-machine-enquiry {
  width: min(100%, var(--bm-pro-shell));
  margin: 0 auto;
  border-radius: 0;
}

.tmd-detail-page .tmd-machine-wanted {
  border-top: 1px solid var(--bm-pro-line-dark);
  background: #111715;
}

.tmd-detail-page .tmd-machine-enquiry {
  border-top: 1px solid var(--bm-pro-line-dark);
  background: #090d0b;
}

/* Footer */
:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-footer {
  border-top: 1px solid var(--bm-pro-line-dark);
  background: #090d0b;
}

:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-footer-main,
:is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-footer-bottom {
  width: min(calc(100% - 48px), var(--bm-pro-shell));
  margin-inline: auto;
}

/* Motion system */
.bm-pro-ui.bm-pro-motion .bm-pro-reveal {
  opacity: 0;
  filter: blur(4px);
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 780ms var(--bm-pro-ease),
    filter 780ms var(--bm-pro-ease),
    transform 780ms var(--bm-pro-ease);
  transition-delay: var(--bm-reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

.bm-pro-ui.bm-pro-motion .bm-pro-reveal.is-pro-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.bm-pro-ui .bm-pro-hero {
  animation: bmProHeroIn 980ms var(--bm-pro-ease) both;
}

@keyframes bmProHeroIn {
  from { opacity: 0; transform: translateY(16px) scale(0.992); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  :is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-header {
    min-height: 70px;
    padding-inline: 20px;
  }

  .tmd-catalogue-page .tmd-catalogue-toolbar { position: static; }

  .tmd-home .tmd-hero {
    width: calc(100% - 32px);
    min-height: 620px;
    margin: 16px auto 0;
  }

  .tmd-home .tmd-hero-search {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(1190px, calc(100% - 96px));
    margin: -22px auto 0;
  }

  .tmd-detail-page .tmd-detail-hero,
  .tmd-detail-page .tmd-detail-content {
    grid-template-columns: 1fr;
  }

  .tmd-detail-page .tmd-detail-gallery { grid-template-rows: minmax(440px, 62vh) auto; }
  .tmd-detail-page .tmd-detail-content > * { min-height: 0; }
}

@media (max-width: 640px) {
  :is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  :is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-logo { width: 156px; }

  .tmd-home .tmd-hero,
  .tmd-catalogue-page .tmd-catalogue-hero,
  .bm-sell-page .bm-sell-hero,
  .tmd-about-page .about-hero {
    width: calc(100% - 16px);
    margin-top: 8px;
    border-radius: 10px;
  }

  .tmd-home .tmd-hero {
    width: calc(100% - 24px);
    min-height: 610px;
    margin: 12px auto 0;
  }

  .tmd-home .tmd-hero-search {
    width: calc(100% - 40px);
  }

  .tmd-home .tmd-hero-copy { padding: 24px 20px 22px; }
  .tmd-home .tmd-hero-copy h1 { font-size: clamp(42px, 12.8vw, 56px); }

  .tmd-catalogue-page .tmd-catalogue-shell,
  .tmd-detail-page .tmd-breadcrumbs,
  .tmd-detail-page .tmd-detail-hero {
    width: calc(100% - 16px);
  }

  .tmd-detail-page .tmd-breadcrumbs {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .tmd-detail-page .tmd-detail-gallery { grid-template-rows: minmax(360px, 52vh) auto; }
  .tmd-detail-page .tmd-detail-main-image { padding: 0; }
  .tmd-detail-page .tmd-detail-gallery > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmd-detail-page .tmd-detail-summary { padding: 32px 22px 38px; }
  .tmd-detail-page .tmd-detail-summary h1 { font-size: clamp(38px, 11vw, 52px); }
  .tmd-detail-page .tmd-detail-content > * { padding: 42px 22px; }
  .tmd-detail-page .tmd-related-machinery { padding: 54px 16px; }

  :is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-footer-main,
  :is(.tmd-home, .tmd-about-page, .tmd-catalogue-page, .tmd-seller-page, .tmd-detail-page) .tmd-footer-bottom {
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }

  .bm-pro-ui *,
  .bm-pro-ui *::before,
  .bm-pro-ui *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bm-pro-ui.bm-pro-motion .bm-pro-reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* About page — honest imagery and the same editorial system as the main journeys. */
body.tmd-about-page .about-page { overflow: hidden; background: #f7f8f5; }

body.tmd-about-page .about-hero {
  position: relative; display: grid; align-items: end; isolation: isolate;
  width: min(calc(100% - 48px), var(--bm-pro-shell)); min-height: clamp(620px, 67vw, 720px);
  margin: 24px auto 0; padding: clamp(52px, 6vw, 88px);
  background: #050706 !important; color: #fff;
}
body.tmd-about-page .about-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(3,5,4,.98) 0%, rgba(3,5,4,.9) 39%, rgba(3,5,4,.42) 69%, rgba(3,5,4,.08) 100%), linear-gradient(0deg, rgba(3,5,4,.72), transparent 46%);
}
body.tmd-about-page .about-hero-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
body.tmd-about-page .about-hero-copy { position: relative; z-index: 1; max-width: 760px; }
body.tmd-about-page .about-hero .product-eyebrow,
body.tmd-about-page .about-cta .product-eyebrow { color: var(--bm-pro-accent); }
body.tmd-about-page .about-hero h1 {
  max-width: 760px; margin: 0; font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(54px, 6.1vw, 88px); font-weight: 800; line-height: .96;
  letter-spacing: -.062em; text-transform: none;
}
body.tmd-about-page .about-hero h1 span { display: block; color: #fff; }
body.tmd-about-page .about-hero h1 i { color: var(--bm-pro-accent); font-style: normal; }
body.tmd-about-page .about-hero p:not(.product-eyebrow) {
  max-width: 660px; margin: 26px 0 0; color: rgba(255,255,255,.78);
  font: 500 16px/1.72 "Montserrat", Arial, sans-serif;
}
body.tmd-about-page .about-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
body.tmd-about-page .about-hero-actions .button {
  min-width: 210px; min-height: 56px; margin: 0; justify-content: space-between; border-radius: 7px;
}
body.tmd-about-page .about-hero-actions .secondary {
  border: 1px solid rgba(255,255,255,.35); background: rgba(5,8,6,.56); color: #fff; backdrop-filter: blur(12px);
}

body.tmd-about-page .about-hero-facts {
  position: relative; z-index: 4; display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  width: min(calc(100% - 144px), 1120px); margin: -42px auto 0; overflow: hidden;
  border: 1px solid var(--bm-pro-line); border-radius: 10px; background: #fff;
  box-shadow: 0 22px 54px rgba(18,26,20,.12);
}
body.tmd-about-page .about-hero-facts article {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; min-height: 126px;
  padding: 27px 30px; border-left: 1px solid var(--bm-pro-line);
}
body.tmd-about-page .about-hero-facts article:first-child { border-left: 0; }
body.tmd-about-page .about-hero-facts span {
  grid-row: 1 / 3; color: var(--bm-pro-accent-dark); font: 800 12px/1.3 "Montserrat", Arial, sans-serif; letter-spacing: .08em;
}
body.tmd-about-page .about-hero-facts strong { color: var(--bm-pro-ink); font: 800 16px/1.25 "Montserrat", Arial, sans-serif; }
body.tmd-about-page .about-hero-facts small { color: #697069; font: 500 12px/1.55 "Montserrat", Arial, sans-serif; }

body.tmd-about-page .about-intro {
  display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: clamp(52px,7vw,94px); align-items: center;
  width: min(calc(100% - 48px),1190px); margin: 0 auto; padding: 112px 0 104px;
  background: transparent; color: var(--bm-pro-ink);
}
body.tmd-about-page .about-intro h2,
body.tmd-about-page .about-values h2 {
  margin: 0; color: var(--bm-pro-ink); font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(40px,4.4vw,60px); font-weight: 800; line-height: 1.02;
  letter-spacing: -.052em; text-transform: none;
}
body.tmd-about-page :is(.about-intro h2,.about-values h2) span { display: block; color: var(--bm-pro-accent-dark); }
body.tmd-about-page .about-intro p:not(.product-eyebrow),
body.tmd-about-page .about-values-heading > p:last-child {
  margin: 22px 0 0; color: #5f675f; font: 500 15px/1.78 "Montserrat", Arial, sans-serif;
}
body.tmd-about-page .about-text-link {
  display: inline-flex; gap: 24px; align-items: center; margin-top: 28px; padding-bottom: 6px;
  border-bottom: 1px solid #9ba49a; color: var(--bm-pro-ink);
  font: 800 13px/1.3 "Montserrat", Arial, sans-serif; text-decoration: none;
  transition: gap 240ms var(--bm-pro-ease), border-color 200ms ease;
}
body.tmd-about-page .about-text-link:hover { gap: 32px; border-color: var(--bm-pro-accent-dark); }
body.tmd-about-page .about-intro-media {
  position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: #050706;
  box-shadow: 0 24px 64px rgba(18,26,20,.14);
}
body.tmd-about-page .about-main-image {
  display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 0;
  object-fit: cover; object-position: center; box-shadow: none;
}
body.tmd-about-page .about-intro-media figcaption {
  position: absolute; right: 18px; bottom: 18px; left: 18px; display: flex; justify-content: space-between; gap: 24px;
  padding: 18px 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px;
  background: rgba(5,8,6,.78); color: #fff; backdrop-filter: blur(14px);
}
body.tmd-about-page .about-intro-media figcaption span {
  color: var(--bm-pro-accent); font: 800 10px/1.4 "Montserrat", Arial, sans-serif; letter-spacing: .09em; text-transform: uppercase;
}
body.tmd-about-page .about-intro-media figcaption strong {
  max-width: 280px; font: 700 13px/1.45 "Montserrat", Arial, sans-serif; text-align: right;
}

body.tmd-about-page .about-mission {
  display: grid; grid-template-columns: minmax(270px,.72fr) minmax(0,1.28fr); gap: clamp(46px,6vw,84px); align-items: start;
  width: 100%; margin: 0; padding: 104px max(42px,calc((100% - 1190px) / 2));
  background: radial-gradient(circle at 88% 6%,rgba(157,204,59,.1),transparent 25%), #080b09; color: #fff;
}
body.tmd-about-page .about-mission h2 {
  margin: 0; color: #fff; font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(40px,4.4vw,58px); font-weight: 800; line-height: 1.02;
  letter-spacing: -.052em; text-transform: none;
}
body.tmd-about-page .about-mission h2 span { display: block; color: var(--bm-pro-accent); }
body.tmd-about-page .about-mission > div:first-child p:not(.product-eyebrow) {
  margin: 22px 0 0; color: rgba(255,255,255,.68); font: 500 15px/1.75 "Montserrat", Arial, sans-serif;
}
body.tmd-about-page .about-mission .about-text-link { color: #fff; border-color: rgba(255,255,255,.3); }
body.tmd-about-page .about-mission-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; border: 0; }
body.tmd-about-page .about-mission-grid article {
  min-height: 280px; padding: 30px 26px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; background: rgba(255,255,255,.035); box-shadow: none;
}
body.tmd-about-page .about-mission-grid article:hover {
  border-color: rgba(157,204,59,.42); background: rgba(157,204,59,.055); box-shadow: none; transform: translateY(-3px);
}
body.tmd-about-page .about-step {
  display: block; margin-bottom: 70px; color: var(--bm-pro-accent);
  font: 800 11px/1 "Montserrat", Arial, sans-serif; letter-spacing: .12em;
}
body.tmd-about-page .about-mission-grid strong { color: #fff; font: 800 20px/1.3 "Montserrat", Arial, sans-serif; }
body.tmd-about-page .about-mission-grid p { margin: 12px 0 0; color: rgba(255,255,255,.62); font: 500 13px/1.65 "Montserrat", Arial, sans-serif; }

body.tmd-about-page .about-values {
  padding: 104px max(42px,calc((100% - 1190px) / 2)); background: #fff; color: var(--bm-pro-ink);
}
body.tmd-about-page .about-values-heading {
  display: grid; grid-template-columns: minmax(0,.9fr) minmax(260px,.55fr);
  gap: 20px clamp(46px,8vw,110px); align-items: end; margin-bottom: 52px;
}
body.tmd-about-page .about-values-heading .product-eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
body.tmd-about-page .about-values-heading > p:last-child { margin: 0 0 5px; }
body.tmd-about-page .about-coverage { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) .82fr; gap: 12px; }
body.tmd-about-page .about-coverage article,
body.tmd-about-page .about-coverage aside {
  min-height: 235px; border: 1px solid var(--bm-pro-line); border-radius: 8px; box-shadow: none;
}
body.tmd-about-page .about-coverage article {
  display: flex; flex-direction: column; padding: 27px 25px; background: #f8f9f6;
}
body.tmd-about-page .about-coverage article:hover {
  border-color: #b9c3b9; box-shadow: 0 16px 38px rgba(20,30,23,.075); transform: translateY(-3px);
}
body.tmd-about-page .about-principle {
  margin-bottom: auto; color: var(--bm-pro-accent-dark); font: 800 11px/1 "Montserrat", Arial, sans-serif; letter-spacing: .1em;
}
body.tmd-about-page .about-coverage strong {
  margin: 50px 0 0; color: var(--bm-pro-ink); font: 800 16px/1.35 "Montserrat", Arial, sans-serif; text-transform: none;
}
body.tmd-about-page .about-coverage p { margin: 11px 0 0; color: #626a62; font: 500 12px/1.65 "Montserrat", Arial, sans-serif; }
body.tmd-about-page .about-coverage aside {
  display: flex; flex-direction: column; justify-content: flex-end; padding: 27px 25px;
  background: var(--bm-pro-accent-dark); color: #fff;
}
body.tmd-about-page .about-coverage aside span {
  margin-bottom: auto; color: rgba(255,255,255,.72); font: 800 10px/1 "Montserrat", Arial, sans-serif; letter-spacing: .1em;
}
body.tmd-about-page .about-coverage aside strong { margin: 50px 0 0; color: #fff; font: 800 18px/1.2 "Montserrat", Arial, sans-serif; }
body.tmd-about-page .about-coverage aside b {
  margin: 11px 0 0; color: rgba(255,255,255,.78); font: 600 12px/1.55 "Montserrat", Arial, sans-serif; text-transform: none;
}

body.tmd-about-page .about-proof {
  display: grid; grid-template-columns: minmax(300px,1.45fr) repeat(3,minmax(150px,.72fr));
  width: min(calc(100% - 48px),1190px); margin: 0 auto 94px; border-radius: 10px;
  background: #f1f3ee; box-shadow: none;
}
body.tmd-about-page .about-proof > div,
body.tmd-about-page .about-proof article {
  display: flex; flex-direction: column; justify-content: center; min-height: 190px;
  padding: 30px; border-left: 1px solid #dce1d9;
}
body.tmd-about-page .about-proof > div { border-left: 0; }
body.tmd-about-page .about-proof h2 {
  margin: 0; color: var(--bm-pro-ink); font: 800 clamp(29px,3vw,40px)/1.05 "Montserrat", Arial, sans-serif; letter-spacing: -.045em;
}
body.tmd-about-page .about-proof h2 span { display: block; color: var(--bm-pro-accent-dark); }
body.tmd-about-page .about-proof article strong {
  color: var(--bm-pro-ink); font: 800 clamp(22px,2.2vw,30px)/1.05 "Montserrat", Arial, sans-serif; letter-spacing: -.04em;
}
body.tmd-about-page .about-proof article span { margin-top: 12px; color: #687068; font: 600 11px/1.5 "Montserrat", Arial, sans-serif; }
body.tmd-about-page .tmd-stock-strip { padding-top: 96px; padding-bottom: 96px; background: #fff; }

body.tmd-about-page .about-cta {
  display: grid; grid-template-columns: minmax(320px,1.15fr) repeat(2,minmax(230px,.72fr)); gap: 12px;
  width: min(calc(100% - 48px),1190px); margin: 94px auto; padding: 18px;
  border: 0; border-radius: 12px; background: #080b09; box-shadow: 0 24px 64px rgba(18,26,20,.16);
}
body.tmd-about-page .about-cta-heading { padding: 36px 34px; }
body.tmd-about-page .about-cta h2 {
  margin: 0; color: #fff; font: 800 clamp(34px,3.6vw,48px)/1.03 "Montserrat", Arial, sans-serif;
  letter-spacing: -.05em; text-transform: none;
}
body.tmd-about-page .about-cta h2 span { display: block; color: var(--bm-pro-accent); }
body.tmd-about-page .about-cta-card {
  position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 28px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.045);
  color: #fff; text-decoration: none;
  transition: border-color 220ms ease, background 220ms ease, transform 280ms var(--bm-pro-ease);
}
body.tmd-about-page .about-cta-card:hover {
  border-color: rgba(157,204,59,.46); background: rgba(157,204,59,.065); transform: translateY(-3px);
}
body.tmd-about-page .about-cta-card span {
  color: var(--bm-pro-accent); font: 800 10px/1 "Montserrat", Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase;
}
body.tmd-about-page .about-cta-card strong { margin-top: auto; font: 800 18px/1.3 "Montserrat", Arial, sans-serif; }
body.tmd-about-page .about-cta-card small {
  margin-top: 9px; padding-right: 25px; color: rgba(255,255,255,.6); font: 500 12px/1.6 "Montserrat", Arial, sans-serif;
}
body.tmd-about-page .about-cta-card b { position: absolute; right: 24px; bottom: 26px; color: var(--bm-pro-accent); font-size: 20px; }

@media (max-width: 980px) {
  body.tmd-about-page .about-hero-facts { width: min(calc(100% - 72px),880px); }
  body.tmd-about-page .about-intro,
  body.tmd-about-page .about-mission { grid-template-columns: 1fr; }
  body.tmd-about-page .about-intro-copy { max-width: 700px; }
  body.tmd-about-page .about-mission-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.tmd-about-page .about-values-heading { grid-template-columns: 1fr; }
  body.tmd-about-page .about-values-heading > p:last-child { max-width: 650px; }
  body.tmd-about-page .about-coverage { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.tmd-about-page .about-proof { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.tmd-about-page .about-proof > div { grid-column: 1 / -1; min-height: 150px; }
  body.tmd-about-page .about-cta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.tmd-about-page .about-cta-heading { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body.tmd-about-page .about-hero {
    width: calc(100% - 16px); min-height: 610px; margin-top: 8px; padding: 38px 22px; border-radius: 10px;
  }
  body.tmd-about-page .about-hero::before {
    background: linear-gradient(0deg,rgba(3,5,4,.98) 0%,rgba(3,5,4,.84) 58%,rgba(3,5,4,.26) 100%), linear-gradient(90deg,rgba(3,5,4,.45),transparent);
  }
  body.tmd-about-page .about-hero-media { object-position: 64% center; }
  body.tmd-about-page .about-hero h1 { max-width: 340px; font-size: clamp(45px,13vw,57px); }
  body.tmd-about-page .about-hero p:not(.product-eyebrow) { margin-top: 20px; font-size: 13px; line-height: 1.65; }
  body.tmd-about-page .about-hero-actions { display: grid; grid-template-columns: 1fr; margin-top: 22px; }
  body.tmd-about-page .about-hero-actions .button { width: 100%; min-width: 0; min-height: 51px; }
  body.tmd-about-page .about-hero-facts { grid-template-columns: 1fr; width: calc(100% - 38px); margin-top: -20px; }
  body.tmd-about-page .about-hero-facts article { min-height: 0; padding: 21px 22px; border-top: 1px solid var(--bm-pro-line); border-left: 0; }
  body.tmd-about-page .about-hero-facts article:first-child { border-top: 0; }
  body.tmd-about-page .about-intro { gap: 44px; width: calc(100% - 32px); padding: 76px 0; }
  body.tmd-about-page .about-intro h2,
  body.tmd-about-page .about-values h2,
  body.tmd-about-page .about-mission h2 { font-size: clamp(37px,11vw,47px); }
  body.tmd-about-page .about-intro-media figcaption { right: 10px; bottom: 10px; left: 10px; display: block; padding: 14px; }
  body.tmd-about-page .about-intro-media figcaption strong { display: block; margin-top: 5px; text-align: left; }
  body.tmd-about-page .about-mission,
  body.tmd-about-page .about-values { gap: 42px; padding: 76px 16px; }
  body.tmd-about-page .about-mission-grid,
  body.tmd-about-page .about-coverage,
  body.tmd-about-page .about-proof,
  body.tmd-about-page .about-cta { grid-template-columns: 1fr; }
  body.tmd-about-page .about-mission-grid article { min-height: 220px; }
  body.tmd-about-page .about-step { margin-bottom: 44px; }
  body.tmd-about-page .about-values-heading { margin-bottom: 38px; }
  body.tmd-about-page .about-coverage article,
  body.tmd-about-page .about-coverage aside { min-height: 205px; }
  body.tmd-about-page .about-proof { width: calc(100% - 32px); margin-bottom: 72px; }
  body.tmd-about-page .about-proof > div,
  body.tmd-about-page .about-proof article { min-height: 130px; border-top: 1px solid #dce1d9; border-left: 0; }
  body.tmd-about-page .about-proof > div { grid-column: auto; border-top: 0; }
  body.tmd-about-page .tmd-stock-strip { padding-top: 72px; padding-bottom: 72px; }
  body.tmd-about-page .about-cta { width: calc(100% - 32px); margin: 72px auto; padding: 10px; }
  body.tmd-about-page .about-cta-heading { grid-column: auto; padding: 24px 16px 30px; }
  body.tmd-about-page .about-cta-card { min-height: 210px; }
}
