@font-face {
  font-family: Prata;
  src: url("fonts/prata-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Prata;
  src: url("fonts/prata-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2191, U+2193;
}

.editorial-layout {
  --editorial-text-inset: clamp(23px, 3.35vw, 64px);
  --hero-gutter: clamp(42px, 7%, 158px);
  --stage-edge: clamp(19px, 3.1vw, 59px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  padding: 32px 24px 56px;
  background: #eaeae6;
}

/* Keep the legacy theme's page-wide decoration off the editorial homepage. */
body.bl-editorial-home::before,
body.bl-editorial-home::after { content: none; }

.editorial-layout > :is(.editorial-hero, .product-categories, .editorial-industry, .editorial-project, .editorial-supply, .editorial-delivery, .editorial-questions) {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 32px 56px -28px #25302b35, 0 8px 18px -10px #25302b20, inset 0 1px #fff;
}

@media (max-width: 1399px) {
  .editorial-layout { gap: 48px; padding-block-start: 28px; }
}

@media (max-width: 767px) {
  .editorial-layout { gap: 36px; padding: 20px 12px 36px; }
}

.editorial-hero {
  --paper: #f3efe7;
  --ink: #211e19;
  --olive: #3d4532;
  display: grid;
  align-content: center;
  position: relative;
  isolation: isolate;
  min-height: clamp(542px, 44.1vw, 790px);
  overflow: clip;
  background-color: var(--paper);
  color: var(--ink);
  font-size: 16px;
}

.editorial-hero .editorial-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.editorial-art::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--paper) 0%,
    rgb(243 239 231 / .94) 17%,
    rgb(243 239 231 / .82) 31%,
    rgb(243 239 231 / .55) 43%,
    transparent 58%
  );
}

.editorial-backdrops,
.editorial-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.editorial-hero .editorial-scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.editorial-copy {
  width: min(36%, 620px);
  margin-inline-start: var(--hero-gutter);
  padding-block: 48px;
}

.editorial-hero .editorial-kicker {
  margin-block-end: 14px;
  color: #36322a;
  font-size: clamp(9px, .74vw, 12px);
  font-weight: 700;
  letter-spacing: .21em;
  line-height: 1.35;
  text-transform: uppercase;
}

.editorial-hero h1 {
  font: 400 clamp(53px, 6vw, 104px) / .99 Prata, Georgia, serif;
  letter-spacing: -.066em;
}

.bl-hs-main .hsb-page .editorial-hero h1 span {
  display: block;
  color: inherit;
}

.bl-hs-main .hsb-page .editorial-hero h1 .editorial-accent { color: #4a493b; }

.editorial-hero .editorial-lead {
  max-width: 326px;
  margin-block-start: 19px;
  font-size: clamp(15px, 1.32vw, 21px);
  color: #38332c;
  line-height: 1.5;
}

.editorial-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px clamp(11px, 1.2vw, 23px);
  margin-block-start: 23px;
}

.editorial-hero .editorial-primary,
.editorial-hero .editorial-secondary {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 9px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}

.editorial-hero .editorial-primary {
  padding-inline: 17px 15px;
  border-radius: 999px;
  background: var(--olive);
  color: #fff;
  transition: background-color .2s ease;
}

.editorial-hero .editorial-primary img { filter: invert(1); }
.editorial-hero .editorial-primary:hover { background: #2f3826; }
.editorial-hero .editorial-secondary:hover { text-decoration: underline; text-underline-offset: 4px; }

.editorial-circle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #5b594d53;
  border-radius: 50%;
  background: #fff9;
  transition: background-color .2s ease;
}

.editorial-hero .editorial-secondary:hover .editorial-circle { background: #fff; }

.editorial-hero .editorial-facts {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  margin-block-start: 25px;
  padding: 0;
  list-style: none;
}

.editorial-facts li { padding-inline-end: clamp(10px, 1.3vw, 22px); }

.editorial-facts li + li {
  padding-inline-start: clamp(10px, 1.3vw, 22px);
  border-inline-start: 1px solid #51483850;
}

.editorial-facts strong,
.editorial-facts span { display: block; }

.editorial-facts strong {
  font: 400 clamp(16px, 1.38vw, 23px) / 1.2 Prata, Georgia, serif;
  letter-spacing: -.045em;
}

.editorial-facts span { margin-block-start: 3px; color: #494137; font-size: 11px; line-height: 1.25; }

@media (min-width: 801px) and (max-width: 1110px) {
  .editorial-hero { --hero-gutter: 5%; }
  .editorial-copy { width: 40%; }
  .editorial-hero .editorial-backdrop[data-scene="warehouse"] .editorial-scene { object-position: 37% center; }
  .editorial-hero .editorial-primary,
  .editorial-hero .editorial-secondary { font-size: 13px; gap: 7px; }
  .editorial-hero .editorial-primary { padding-inline: 13px; }
  .editorial-circle { width: 31px; height: 31px; }
}

@media (max-width: 800px) {
  .editorial-hero {
    --hero-gutter: clamp(21px, 6%, 50px);
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    align-content: start;
  }
  .editorial-copy {
    grid-row: 1;
    width: auto;
    margin-inline: var(--hero-gutter);
    padding-block: 30px 23px;
  }
  .editorial-hero .editorial-art {
    position: relative;
    grid-row: 2;
    height: clamp(256px, 73vw, 408px);
  }
  .editorial-hero .editorial-backdrop[data-scene="warehouse"] .editorial-scene { object-position: 94% center; }
  .editorial-hero h1 { font-size: clamp(45px, 10.3vw, 80px); }
  .editorial-hero .editorial-kicker { font-size: 10px; }
  .editorial-hero .editorial-lead { margin-block-start: 13px; }
  .editorial-actions { gap: 2px 13px; margin-block-start: 16px; }
  .editorial-hero .editorial-primary,
  .editorial-hero .editorial-secondary { font-size: 13px; gap: 7px; min-height: 45px; }
  .editorial-hero .editorial-primary { padding-inline: 13px; }
  .editorial-circle { width: 30px; height: 30px; }
  .editorial-hero .editorial-facts { margin-block-start: 17px; }
  .editorial-facts span { font-size: 10px; }
}

@media (max-width: 380px) {
  .editorial-hero .editorial-facts { grid-template-columns: .95fr .76fr 1.24fr; }
  .editorial-facts li { padding-inline-end: 7px; }
  .editorial-facts li + li { padding-inline-start: 7px; }
  .editorial-facts strong { font-size: 14px; }
  .editorial-facts span { font-size: 9px; }
}

@media (min-width: 801px) and (max-height: 510px) {
  .editorial-hero { min-height: 312px; }
  .editorial-copy { padding-block: 16px; }
  .editorial-hero h1 { font-size: min(5.3vw, 39px); }
  .editorial-hero .editorial-kicker { margin-block-end: 8px; }
  .editorial-hero .editorial-lead,
  .editorial-actions { margin-block-start: 9px; }
  .editorial-hero .editorial-facts { margin-block-start: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-hero .editorial-primary, .editorial-circle { transition: none; }
}

.editorial-gallery {
  position: absolute;
  inset-inline-end: var(--stage-edge);
  inset-block-end: clamp(12px, 1.55vw, 27px);
  z-index: 2;
  width: min(47vw, 705px);
}

.editorial-card-rail {
  --card-gap: clamp(7px, 1vw, 14px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  overflow: hidden;
  touch-action: pan-y;
}

.editorial-tile { position: relative; min-width: 0; }

.editorial-rail-exit {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.editorial-hero .editorial-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: clamp(12px, 1.3vw, 23px);
  background: #3e4139;
  text-align: start;
  touch-action: pan-y;
}

.editorial-hero .editorial-preview:focus-visible { outline: 3px solid #fff9e9; outline-offset: -4px; }

.editorial-hero .editorial-preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transition: transform .25s ease;
}

.editorial-hero .editorial-preview:is([data-scene="warehouse"], [data-scene="magnetic"], [data-scene="folding"], [data-scene="elastic"]) .editorial-preview-image {
  object-position: 94% center;
}
.editorial-preview:hover .editorial-preview-image { transform: scale(1.04); }

.editorial-preview-caption {
  --caption-fade: 20px;
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  display: grid;
  gap: 3px;
  padding: var(--caption-fade) 45px 11px 11px;
  background: linear-gradient(180deg, transparent, rgb(13 20 23 / .81) var(--caption-fade), rgb(13 20 23 / .95));
  color: #fff;
  line-height: 1.16;
}

.editorial-preview-name { font-size: clamp(10px, 1.02vw, 17px); font-weight: 680; text-wrap: pretty; }
.editorial-preview-note { color: #e0e5de; font-size: clamp(9px, .84vw, 13px); text-wrap: pretty; }

.editorial-preview-arrow {
  position: absolute;
  inset-inline-end: 9px;
  inset-block-end: 9px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #fffc;
  border-radius: 50%;
  background: #f4f0e5ed;
}

.editorial-tile.editorial-expanded {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  pointer-events: none;
}

.editorial-hero .editorial-expanded .editorial-preview {
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  border-radius: inherit;
}

.editorial-hero .editorial-expanded .editorial-preview .editorial-preview-image {
  object-position: 58% center;
  transform: none;
  transition: none;
}

.editorial-expanded.editorial-background-ready :is(.editorial-preview-caption, .editorial-preview-arrow) {
  visibility: hidden;
}

.editorial-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-block-start: 11px;
}

.editorial-hero .editorial-switcher button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transition: background-color .2s ease, opacity .2s ease;
}

.editorial-switcher .editorial-switch-prev { background: #f6f2e8; }
.editorial-switcher .editorial-switch-prev img { transform: rotate(180deg); }
.editorial-switcher .editorial-switch-next { background: #3d4532; }
.editorial-switcher .editorial-switch-next img { filter: invert(1); }
.editorial-switcher .editorial-switch-prev:not([aria-disabled="true"]):hover { background: #fff; }
.editorial-switcher .editorial-switch-next:not([aria-disabled="true"]):hover { background: #27311f; }
.editorial-switcher button[aria-disabled="true"] { cursor: wait; }
.editorial-hero .editorial-switcher button:focus-visible { outline: 3px solid #f1f7e9; outline-offset: 3px; }

@media (max-width: 1110px) {
  .editorial-preview-caption { padding-inline: 8px; padding-block-end: 8px; }
  .editorial-preview-arrow { inset-inline-end: 6px; inset-block-start: 6px; inset-block-end: auto; width: 24px; height: 24px; }
}

@media (max-width: 800px) {
  .editorial-hero { --stage-edge: 12px; }
  .editorial-gallery { width: calc(100% - 2 * var(--stage-edge)); inset-block-end: 11px; }
  .editorial-hero .editorial-preview { aspect-ratio: .90; }
  .editorial-hero .editorial-expanded .editorial-preview { aspect-ratio: auto; }
  .editorial-hero .editorial-expanded .editorial-preview[data-scene="warehouse"] .editorial-preview-image { object-position: 94% center; }
  .editorial-art::after {
    background: linear-gradient(180deg, rgb(243 239 231 / .92), rgb(243 239 231 / .33) 12%, transparent 28%);
  }
  .editorial-preview-caption { --caption-fade: 13px; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-hero .editorial-preview-image,
  .editorial-hero .editorial-switcher button { transition: none; }
}

@media (orientation: landscape) and (max-height: 510px) and (max-width: 1000px) {
  .editorial-copy { padding-block: 12px; }
  .editorial-hero .editorial-kicker { margin-block-end: 6px; }
  .editorial-hero h1 { font-size: clamp(30px, 5.25vw, 43px); line-height: .96; }

  .editorial-hero .editorial-lead {
    margin-block-start: 8px;
    font-size: clamp(12px, 1.7vw, 15px);
    line-height: 1.35;
  }

  .editorial-actions { gap: 3px 9px; margin-block-start: 9px; }
  .editorial-hero :is(.editorial-primary, .editorial-secondary) { gap: 6px; min-height: 44px; font-size: 12px; }
  .editorial-hero .editorial-primary { padding-inline: 12px; }
  .editorial-circle { width: 28px; height: 28px; }

  .editorial-hero .editorial-facts { margin-block-start: 8px; }
  .editorial-facts li { padding-inline-end: 7px; }
  .editorial-facts li + li { padding-inline-start: 7px; }
  .editorial-facts strong { font-size: clamp(12px, 1.7vw, 17px); }
  .editorial-facts span { font-size: 9px; }
}

@media (orientation: landscape) and (max-height: 510px) and (min-width: 540px) and (max-width: 1000px) {
  .editorial-hero {
    --hero-gutter: clamp(15px, 3.2vw, 30px);
    --stage-edge: clamp(10px, 1.9vw, 19px);
    min-height: max(252px, calc(100svh - 117px));
    align-content: center;
  }

  .editorial-copy {
    width: calc(50% - var(--hero-gutter));
    margin-inline: var(--hero-gutter) 0;
  }

  .editorial-hero .editorial-art {
    position: absolute;
    grid-row: auto;
    height: auto;
  }

  .editorial-art::after {
    background: linear-gradient(90deg, var(--paper) 0%, #f3efe7f7 31%, #f3efe7aa 49%, transparent 66%);
  }

  .editorial-hero .editorial-backdrop[data-scene="warehouse"] .editorial-scene { object-position: 68% center; }
  .editorial-gallery { width: 46%; inset-block-end: 10px; }
  .editorial-hero .editorial-preview { aspect-ratio: 1.05; }
  .editorial-hero .editorial-expanded .editorial-preview { aspect-ratio: auto; }
}

@media (orientation: landscape) and (max-height: 510px) {
  .bl-hs-main-route .bl-catalog-contact-modal { padding: 12px; }

  .bl-hs-main-route .bl-catalog-contact-modal__dialog {
    box-sizing: border-box;
    width: min(780px, 100%);
    max-height: calc(100dvh - 24px);
    padding: 18px;
  }

  .bl-hs-main-route .bl-catalog-contact-modal__head h2 { font-size: clamp(22px, 3.5vw, 28px); }
  .bl-hs-main-route .bl-catalog-contact-modal__head p { margin-block-start: 6px; font-size: 13px; }
  .bl-hs-main-route .bl-catalog-contact-modal__grid { gap: 8px; margin-block-start: 12px; }
}

@media (orientation: landscape) and (max-height: 510px) and (min-width: 480px) {
  .bl-hs-main-route .bl-catalog-contact-modal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .bl-hs-main-route .bl-catalog-contact-card {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 7px;
    min-height: 0;
    padding: 10px;
  }

  .bl-hs-main-route .bl-catalog-contact-card__icon { width: 32px; height: 32px; font-size: 16px; }
  .bl-hs-main-route .bl-catalog-contact-card__icon img { width: 18px; height: 18px; }
  .bl-hs-main-route .bl-catalog-contact-card__body { grid-column: 1 / -1; grid-row: 2; }
  .bl-hs-main-route .bl-catalog-contact-card__body strong { font-size: 13px; }
  .bl-hs-main-route .bl-catalog-contact-card__arrow { grid-column: 2; grid-row: 1; }
}

@media (orientation: landscape) and (max-height: 510px) and (min-width: 540px) and (max-width: 620px) {
  .editorial-actions { column-gap: 6px; }
  .editorial-hero :is(.editorial-primary, .editorial-secondary) { gap: 4px; font-size: 11px; }
  .editorial-hero .editorial-primary { padding-inline: 10px; }
  .editorial-hero .editorial-primary img { display: none; }
  .editorial-circle { width: 20px; height: 20px; }
}

@media (orientation: landscape) and (max-height: 510px) and (max-width: 539px) {
  .editorial-hero .editorial-art { height: clamp(196px, 50vw, 250px); }
  .editorial-hero .editorial-preview { aspect-ratio: 1.08; }
  .editorial-hero .editorial-expanded .editorial-preview { aspect-ratio: auto; }
}

@media (orientation: landscape) and (max-height: 340px) and (min-width: 540px) and (max-width: 620px) {
  .editorial-gallery { inset-block-end: 46px; }
}
