/* Homepage information density layer.
   The page keeps every explanation and destination, while long directories
   become compact indexes on desktop and keyboard-friendly swipe rails on
   smaller screens. */

.home-page {
  --home-index-gap: 12px;
  --home-index-edge: rgba(15, 30, 54, .13);
  --home-index-shadow: 0 12px 28px rgba(7, 17, 30, .07);
}

/* Premium authority gallery exception.
   The Home product and buyer-model directories are intentional editorial
   mosaics, so they must not inherit the compact horizontal index contract. */
.home-page .home-categories .home-category-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-flow: dense !important;
  grid-auto-rows: 240px !important;
  gap: 14px !important;
  overflow: visible !important;
}

.home-page .home-categories .home-category-grid > .home-category-card,
.home-page .home-categories .home-category-grid > .home-category-card.home-category-card--primary,
.home-page .home-categories .home-category-grid > .home-category-card.home-category-card--stack,
.home-page .home-categories .home-category-grid > .home-category-card.home-category-card--industrial,
.home-page .home-categories .home-category-grid > .home-category-card.home-category-card--wide {
  display: block !important;
  min-height: 0 !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-column: span 3 !important;
  grid-row: span 1 !important;
}

.home-page .home-categories .home-category-grid > .home-category-card:nth-child(1),
.home-page .home-categories .home-category-grid > .home-category-card:nth-child(6) {
  grid-column: span 6 !important;
  grid-row: span 2 !important;
}

.home-page .home-categories .home-category-grid > .home-category-card::before {
  display: grid !important;
  content: counter(home-category, decimal-leading-zero) !important;
}

.home-page .home-categories .home-category-grid > .home-category-card::after {
  display: block !important;
  content: "" !important;
}

.home-page .home-categories .home-category-grid > .home-category-card > img,
.home-page .home-categories .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  grid-row: auto !important;
}

.home-page .home-categories .home-category-grid > .home-category-card > span,
.home-page .home-categories .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) > span {
  position: absolute !important;
  inset: auto 0 0 !important;
  display: flex !important;
  grid-column: auto !important;
  grid-row: auto !important;
  justify-content: flex-start !important;
  padding: 24px !important;
  background: transparent !important;
  border-left: 0 !important;
}

.home-page .home-categories .home-category-grid > .home-category-card:nth-child(1) > span,
.home-page .home-categories .home-category-grid > .home-category-card:nth-child(6) > span {
  padding: clamp(28px, 3vw, 42px) !important;
}

.home-page .home-categories .home-category-grid > .home-category-card small,
.home-page .home-categories .home-category-grid > .home-category-card strong {
  color: var(--hp-gold-light) !important;
}

.home-page .home-categories .home-category-grid > .home-category-card h3,
.home-page .home-categories .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) h3 {
  color: #fff !important;
  font-size: clamp(1.35rem, 1.8vw, 1.72rem) !important;
}

.home-page .home-categories .home-category-grid > .home-category-card:nth-child(1) h3,
.home-page .home-categories .home-category-grid > .home-category-card:nth-child(6) h3 {
  font-size: clamp(2rem, 3vw, 2.85rem) !important;
}

.home-page .home-categories .home-category-grid > .home-category-card p {
  color: rgba(255, 255, 255, .72) !important;
}

@media (max-width: 1040px) {
  .home-page .home-categories .home-category-grid,
  .home-page .home-industries .home-industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-flow: row dense !important;
    grid-auto-rows: auto !important;
    overflow: visible !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--primary,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--stack,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--industrial,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--wide {
    min-height: 320px !important;
    grid-column: span 1 !important;
    grid-row: auto !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(1),
  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(6),
  .home-page .home-industries .home-industry-grid > a:nth-child(1),
  .home-page .home-industries .home-industry-grid > a:nth-child(9) {
    min-height: 420px !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 640px) {
  .home-page .home-categories .home-category-grid,
  .home-page .home-industries .home-industry-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    grid-auto-rows: auto !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--primary,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--stack,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--industrial,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--wide,
  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(1),
  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(6),
  .home-page .home-industries .home-industry-grid > a,
  .home-page .home-industries .home-industry-grid > .home-industry-card--final,
  .home-page .home-industries .home-industry-grid > a:nth-child(1),
  .home-page .home-industries .home-industry-grid > a:nth-child(2),
  .home-page .home-industries .home-industry-grid > a:nth-child(3),
  .home-page .home-industries .home-industry-grid > a:nth-child(4),
  .home-page .home-industries .home-industry-grid > a:nth-child(5),
  .home-page .home-industries .home-industry-grid > a:nth-child(9) {
    min-height: 370px !important;
    grid-column: 1 !important;
    grid-row: auto !important;
    scroll-snap-align: none !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card > img,
  .home-page .home-categories .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card > span,
  .home-page .home-categories .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) > span {
    position: absolute !important;
    inset: auto 0 0 !important;
    padding: 24px 22px !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card h3,
  .home-page .home-categories .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) h3 {
    font-size: 1.75rem !important;
  }
}

.home-page :is(
  .home-route-grid,
  .home-service-list,
  .home-dossier-stages,
  .home-category-grid,
  .home-industry-grid,
  .home-market-grid,
  .home-tool-grid
) {
  scrollbar-color: rgba(238, 212, 125, .72) rgba(15, 30, 54, .1);
  scrollbar-width: thin;
}

/* The proof band now reads as a compact operational summary. */
.home-page .home-signal-strip {
  min-height: 0;
}

.home-page .home-signal-item {
  min-width: 0;
  padding: 20px 18px;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
}

.home-page .home-signal-item .lifa-number-badge {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 6px;
  font-size: .9rem;
}

.home-page .home-signal-item h3 {
  font-size: 1rem;
}

.home-page .home-signal-item p {
  font-size: .76rem;
  line-height: 1.48;
}

/* Introductory route: open editorial columns with less unused card height. */
.home-page .home-route-step,
.home-page .home-route-step.light {
  min-height: 178px;
  padding: 22px 20px;
}

.home-page .home-route-step .step-number {
  font-size: 2.15rem;
}

.home-page .home-route-step h3 {
  margin-block: 12px 8px;
}

.home-page .home-route-step p {
  margin-bottom: 0;
}

/* Company introduction stays company-first and uses a denser fact index. */
.home-page .hp-company-grid {
  gap: 32px 44px;
}

.home-page .hp-company-visual,
.home-page .hp-company-visual img {
  min-height: 340px;
}

.home-page .hp-company-facts > a {
  min-height: 112px;
  padding: 18px;
}

.home-page .hp-company-facts strong {
  font-size: 1.24rem;
}

.home-page .hp-company-facts small {
  margin-top: 6px;
}

/* All service explanations remain present; only the record density changes. */
.home-page .home-service-ledger {
  gap: 12px;
  margin-top: 30px;
}

.home-page .home-service-group {
  grid-template-columns: minmax(190px, .58fr) minmax(0, 2.42fr);
}

.home-page .home-service-group > header {
  padding: 20px 18px;
}

.home-page .home-service-group header h3 {
  font-size: 1.16rem;
}

.home-page .home-service-list > a {
  min-height: 148px;
  padding: 18px 16px;
}

.home-page .home-service-list h4 {
  margin-bottom: 7px;
  font-size: 1.12rem;
}

.home-page .home-service-list p {
  margin-bottom: 12px;
  font-size: .72rem;
  line-height: 1.46;
}

.home-page .home-audience-service {
  margin-top: 12px;
  padding: 18px 22px;
}

/* Freight remains image-led, but the supporting route is more concise. */
.home-page .home-freight-layout {
  margin-top: 30px;
}

.home-page .home-freight-visual,
.home-page .home-freight-visual img {
  min-height: 420px !important;
}

.home-page .home-freight-manifest > a {
  padding: 20px 18px;
}

.home-page .home-freight-details > a {
  padding: 19px 20px;
}

/* Twelve documented stages fit in three desktop rows. */
.home-page .home-dossier-stages {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-page .home-dossier-stage > a {
  min-height: 278px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px 10px;
  padding: 19px 17px;
}

.home-page .home-dossier-stage > a > span {
  font-size: 1.12rem;
}

.home-page .home-dossier-stage h3 {
  font-size: 1.2rem;
}

.home-page .home-dossier-stage p {
  font-size: .76rem;
  line-height: 1.46;
}

.home-page .home-dossier-stage aside {
  gap: 4px 9px;
  padding-top: 11px;
}

.home-page .home-dossier-stage aside strong {
  font-size: .9rem;
}

.home-page .home-dossier-stage aside em {
  font-size: .64rem;
}

.home-page .home-role-band span {
  padding: 15px 18px;
}

/* Commercial commitments stay readable in a tighter decision grid. */
.home-page .home-commitment-grid {
  gap: 10px;
  margin-top: 30px;
}

.home-page .home-commitment-grid > a {
  min-height: 208px;
  padding: 21px;
}

.home-page .home-commitment-grid h3 {
  margin: 16px 0 8px;
  font-size: 1.28rem;
}

.home-page .home-commitment-grid p {
  margin-bottom: 13px;
}

/* Product and buyer-model directories: ten useful destinations in two rows. */
.home-page .home-category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  gap: var(--home-index-gap) !important;
}

.home-page .home-category-grid > .home-category-card,
.home-page .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) {
  min-height: 336px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 142px minmax(0, 1fr) !important;
  grid-column: auto !important;
}

.home-page .home-category-grid > .home-category-card > img,
.home-page .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) > img {
  width: 100% !important;
  height: 142px !important;
  min-height: 0 !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.home-page .home-category-grid > .home-category-card > span,
.home-page .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) > span {
  grid-column: 1 !important;
  grid-row: 2 !important;
  justify-content: flex-start !important;
  padding: 17px !important;
  border-top: 3px solid var(--readable-card-gold) !important;
  border-left: 0 !important;
}

.home-page .home-category-grid > .home-category-card h3,
.home-page .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) h3 {
  margin: 7px 0 6px;
  font-size: 1.23rem !important;
}

.home-page .home-category-grid > .home-category-card p {
  margin-bottom: 11px;
  font-size: .75rem !important;
  line-height: 1.46 !important;
}

.home-page .home-category-grid > .home-category-card strong {
  font-size: .64rem;
}

.home-page .home-industry-lead {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr);
  gap: 34px;
  margin-bottom: 30px;
}

.home-page .home-industry-lead figure {
  min-height: 300px;
}

.home-page .home-industry-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--home-index-gap);
}

.home-page .home-industries .home-industry-grid > a,
.home-page .home-industries .home-industry-grid > .home-industry-card--final {
  min-height: 330px;
  grid-template-rows: 130px minmax(0, 1fr);
}

.home-page .home-industry-grid > a > img {
  height: 130px;
}

.home-page .home-industry-grid > a > div {
  padding: 17px;
}

.home-page .home-industry-grid h3 {
  margin: 7px 0 6px;
  font-size: 1.22rem;
}

.home-page .home-industry-grid p {
  margin-bottom: 11px;
  font-size: .75rem;
  line-height: 1.46;
}

/* Country coverage is a connected index, not ten tall cards. */
.home-page .home-market-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-page .home-market-grid a,
.home-page .home-market-grid a:nth-child(1),
.home-page .home-market-grid a:nth-child(2) {
  min-height: 148px;
  grid-column: auto !important;
  grid-row: auto !important;
  padding: 18px;
}

.home-page .home-market-grid span {
  margin-bottom: 14px;
}

.home-page .home-market-grid strong {
  font-size: 1.12rem;
}

/* Tools and guides use balanced two-column records within each panel. */
.home-page .home-resource-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.home-page .home-tool-panel,
.home-page .home-knowledge-panel {
  padding: 24px;
}

.home-page .home-tool-grid a {
  min-height: 132px;
  padding: 16px;
}

.home-page .home-knowledge-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0 18px;
}

.home-page .home-knowledge-panel > .home-panel-heading,
.home-page .home-knowledge-panel > .home-knowledge-footer {
  grid-column: 1 / -1;
}

.home-page .home-knowledge-panel > a {
  display: flex;
  min-width: 0;
  min-height: 148px;
  flex-direction: column;
  padding: 14px 18px 14px 0;
}

.home-page .home-knowledge-panel > a > span,
.home-page .home-knowledge-panel > a > small {
  display: block;
  grid-column: auto;
  grid-row: auto;
}

.home-page .home-knowledge-panel > a > span {
  margin-bottom: 7px;
}

.home-page .home-knowledge-panel > a > small {
  margin-top: auto;
  padding-top: 8px;
}

.home-page .home-knowledge-panel > a h3 {
  font-size: 1.08rem;
}

.home-page .home-knowledge-panel > a p {
  font-size: .74rem;
  line-height: 1.46;
}

/* The detailed form stays complete but avoids oversized controls. */
.home-page .home-request-layout {
  gap: 38px;
}

.home-page .home-request-form-wrap {
  padding: 26px;
}

.home-page .home-form-grid {
  gap: 11px 13px;
}

.home-page .home-request-form textarea {
  min-height: 78px;
}

@media (max-width: 1180px) {
  .home-page .home-dossier-stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-page .home-category-grid,
  .home-page .home-industry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .home-page .home-market-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .home-page .home-signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .home-signal-item:nth-child(2)::after {
    display: none;
  }

  .home-page .home-signal-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(238, 212, 125, .18);
  }

  .home-page .hp-company-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .home-service-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .home-service-group > header {
    border-right: 0;
    border-bottom: 1px solid var(--home-rule);
  }

  .home-page .home-resource-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .home-page .home-signal-item {
    padding: 16px 13px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
  }

  .home-page .home-signal-item .lifa-number-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: .7rem;
  }

  .home-page .home-signal-item h3 {
    font-size: .9rem;
  }

  .home-page .home-signal-item p {
    font-size: .69rem;
    line-height: 1.42;
  }

  /* A visible portion of the next column makes each horizontal index
     discoverable without adding instructional copy. */
  .home-page .home-route-grid,
  .home-page .home-service-list,
  .home-page .home-dossier-stages,
  .home-page .home-category-grid,
  .home-page .home-industry-grid,
  .home-page .home-market-grid,
  .home-page .home-tool-grid {
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 2px;
    scroll-snap-type: inline mandatory;
  }

  .home-page .home-route-grid {
    display: grid;
    grid-template-columns: none !important;
    grid-auto-columns: minmax(252px, 82vw);
    grid-auto-flow: column;
    gap: 10px;
    padding: 0 18px 8px 0;
    overflow-x: auto;
    border-bottom: 0;
  }

  .home-page .home-route-step,
  .home-page .home-route-step.light,
  .home-page .home-route-step:nth-child(2n),
  .home-page .home-route-step:nth-child(-n + 2) {
    min-height: 240px;
    padding: 20px;
    border: 1px solid rgba(15, 30, 54, .13);
    scroll-snap-align: start;
  }

  .home-page .hp-company-grid {
    gap: 26px;
  }

  .home-page .hp-company-visual,
  .home-page .hp-company-visual img {
    min-height: 230px;
    height: 230px;
  }

  .home-page .hp-company-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-page .hp-company-facts > a,
  .home-page .hp-company-facts > a:nth-child(2n),
  .home-page .hp-company-facts > a:nth-child(-n + 2) {
    min-height: 122px;
    padding: 14px;
    border-right: 1px solid rgba(15, 30, 54, .13);
    border-bottom: 1px solid rgba(15, 30, 54, .13);
  }

  .home-page .hp-company-facts > a:nth-child(2n) {
    border-right: 0;
  }

  .home-page .hp-company-facts strong {
    font-size: 1rem;
  }

  .home-page .hp-company-facts small {
    font-size: .67rem;
  }

  .home-page .home-service-ledger {
    gap: 10px;
  }

  .home-page .home-service-group > header {
    padding: 17px 16px;
  }

  .home-page .home-service-list,
  .home-page .home-service-group-shipping .home-service-list {
    display: grid;
    grid-template-columns: none;
    grid-auto-columns: minmax(238px, 76vw);
    grid-auto-flow: column;
    gap: 0;
    overflow-x: auto;
  }

  .home-page .home-service-list > a {
    min-height: 190px;
    padding: 18px 16px;
    border-top: 0;
    border-right: 1px solid rgba(15, 30, 54, .1);
    scroll-snap-align: start;
  }

  .home-page .home-service-list p {
    font-size: .8rem;
    line-height: 1.5;
  }

  .home-page .home-audience-service {
    padding: 18px;
  }

  .home-page .home-freight-visual,
  .home-page .home-freight-visual img {
    min-height: 250px !important;
  }

  .home-page .home-freight-manifest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .home-freight-manifest > a {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 16px 14px;
  }

  .home-page .home-freight-details {
    display: grid;
    grid-template-columns: none;
    grid-auto-columns: minmax(250px, 82vw);
    grid-auto-flow: column;
    gap: 8px;
    padding-bottom: 8px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    border: 0;
  }

  .home-page .home-freight-details > a {
    padding: 17px;
    border: 1px solid rgba(238, 212, 125, .34);
    scroll-snap-align: start;
  }

  .home-page .home-dossier-status {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 17px;
  }

  .home-page .home-dossier-stages {
    display: grid;
    grid-template-columns: none !important;
    grid-auto-columns: minmax(270px, 84vw);
    grid-auto-flow: column;
    gap: 10px;
    padding: 0 18px 8px 0;
    overflow-x: auto;
  }

  .home-page .home-dossier-stage > a {
    min-height: 310px;
    padding: 19px 17px;
    scroll-snap-align: start;
  }

  .home-page .home-role-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .home-role-band span {
    padding: 13px 15px;
  }

  .home-page .home-commitment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home-page .home-commitment-grid > a {
    min-height: 270px;
    padding: 16px 14px;
  }

  .home-page .home-commitment-grid > a > span {
    min-width: 42px;
    height: 34px;
    font-size: .88rem;
  }

  .home-page .home-commitment-grid h3 {
    margin-top: 13px;
    font-size: 1.05rem;
  }

  .home-page .home-commitment-grid p {
    font-size: .7rem;
    line-height: 1.46;
  }

  .home-page .home-category-grid,
  .home-page .home-industry-grid {
    display: grid !important;
    grid-template-columns: none !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-columns: minmax(262px, 82vw) !important;
    grid-auto-flow: column !important;
    gap: 10px !important;
    padding: 1px 18px 8px 1px;
    overflow-x: auto !important;
  }

  .home-page .home-category-grid > .home-category-card,
  .home-page .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) {
    min-height: 296px !important;
    grid-template-rows: 116px minmax(0, 1fr) !important;
    scroll-snap-align: start;
  }

  .home-page .home-category-grid > .home-category-card > img,
  .home-page .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) > img {
    height: 116px !important;
  }

  .home-page .home-category-grid > .home-category-card > span,
  .home-page .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) > span {
    padding: 14px !important;
  }

  .home-page .home-category-grid > .home-category-card h3,
  .home-page .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) h3 {
    font-size: 1.1rem !important;
  }

  .home-page .home-industry-lead {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .home-page .home-industry-lead figure {
    min-height: 230px;
  }

  .home-page .home-industries .home-industry-grid > a,
  .home-page .home-industries .home-industry-grid > .home-industry-card--final {
    min-height: 300px;
    grid-template-rows: 112px minmax(0, 1fr);
    scroll-snap-align: start;
  }

  .home-page .home-industry-grid > a > img {
    height: 112px;
  }

  .home-page .home-industry-grid > a > div {
    padding: 14px;
  }

  .home-page .home-industry-grid h3 {
    font-size: 1.1rem;
  }

  .home-page .home-market-grid {
    display: grid;
    grid-template-columns: none;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-columns: minmax(252px, 80vw);
    grid-auto-flow: column;
    gap: 1px;
    padding: 0 18px 8px 0;
    overflow-x: auto;
  }

  .home-page .home-market-grid a,
  .home-page .home-market-grid a:nth-child(1),
  .home-page .home-market-grid a:nth-child(2) {
    min-height: 156px;
    grid-column: auto !important;
    grid-row: auto !important;
    padding: 15px;
    scroll-snap-align: start;
  }

  .home-page .home-tool-panel,
  .home-page .home-knowledge-panel {
    padding: 18px;
  }

  .home-page .home-tool-grid {
    display: grid;
    grid-template-columns: none;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-columns: minmax(225px, 72vw);
    grid-auto-flow: column;
    gap: 1px;
    padding-bottom: 8px;
    overflow-x: auto;
  }

  .home-page .home-tool-grid a,
  .home-page .home-tool-grid a:nth-child(2n) {
    min-height: 128px;
    padding: 14px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    scroll-snap-align: start;
  }

  .home-page .home-knowledge-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
  }

  .home-page .home-knowledge-panel > a {
    min-height: 166px;
    padding: 13px 14px 13px 0;
  }

  .home-page .home-knowledge-panel > a h3 {
    font-size: .98rem;
  }

  .home-page .home-knowledge-panel > a p {
    font-size: .69rem;
  }

  .home-page .home-request-layout {
    gap: 30px;
  }

  .home-page .home-request-form-wrap {
    padding: 20px 16px;
  }

  .home-page .home-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-page .home-request-form .field.full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .home-page .home-signal-item p {
    font-size: .66rem;
  }

  .home-page .home-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .home-request-form .field.full {
    grid-column: auto;
  }
}

/* Keep quick-contact actions available on phones without covering page copy. */
@media (max-width: 560px) {
  .home-page .floating-contact {
    position: static;
    z-index: auto;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 44px);
    grid-auto-flow: column;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px max(14px, env(safe-area-inset-bottom));
    opacity: 1;
    background: #07111f;
    transform: none;
  }

  .home-page .floating-contact .float-btn {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page :is(
    .home-route-grid,
    .home-service-list,
    .home-dossier-stages,
    .home-category-grid,
    .home-industry-grid,
    .home-market-grid,
    .home-tool-grid
  ) {
    scroll-behavior: auto;
  }
}

/* Founder-led product category gallery.
   This final section contract keeps photography, product evidence, and navigation
   visible as one editorial surface across desktop, tablet, and mobile. */
.home-page .home-categories {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 18%),
    #071526;
}

.home-page .home-categories::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(238, 212, 125, .08) 1px, transparent 1px) 50% 0 / min(10vw, 144px) 100%,
    linear-gradient(rgba(238, 212, 125, .035) 1px, transparent 1px) 0 0 / 100% 160px;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.home-page .home-categories .home-section-header {
  position: relative;
  z-index: 1;
}

.home-page .home-categories .home-category-grid {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-flow: row dense !important;
  grid-auto-rows: 278px !important;
  gap: 14px !important;
  padding: 0 !important;
  overflow: visible !important;
  counter-reset: home-category;
}

.home-page .home-categories .home-category-grid > .home-category-card,
.home-page .home-categories .home-category-grid > .home-category-card.home-category-card--primary,
.home-page .home-categories .home-category-grid > .home-category-card.home-category-card--stack,
.home-page .home-categories .home-category-grid > .home-category-card.home-category-card--industrial,
.home-page .home-categories .home-category-grid > .home-category-card.home-category-card--wide {
  position: relative !important;
  display: block !important;
  min-height: 0 !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-column: span 3 !important;
  grid-row: span 1 !important;
  overflow: hidden !important;
  color: #fff !important;
  background: #0b1b30 !important;
  border: 1px solid rgba(238, 212, 125, .38) !important;
  border-radius: 6px !important;
  box-shadow: 0 20px 46px rgba(1, 8, 18, .22) !important;
  counter-increment: home-category;
  transform: translateZ(0);
}

.home-page .home-categories .home-category-grid > .home-category-card:nth-child(1),
.home-page .home-categories .home-category-grid > .home-category-card:nth-child(6) {
  grid-column: span 6 !important;
  grid-row: span 2 !important;
}

.home-page .home-categories .home-category-grid > .home-category-card::before {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 4 !important;
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  place-items: center !important;
  padding: 0 !important;
  content: counter(home-category, decimal-leading-zero) !important;
  color: #eed47d !important;
  font: 800 .72rem/1 Arial, sans-serif !important;
  letter-spacing: 0 !important;
  background: rgba(5, 15, 28, .84) !important;
  border: 1px solid rgba(238, 212, 125, .58) !important;
  border-radius: 50% !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28) !important;
}

.home-page .home-categories .home-category-grid > .home-category-card::after {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  content: "" !important;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 13, 25, .04) 20%, rgba(4, 13, 25, .38) 52%, rgba(4, 13, 25, .97) 100%),
    linear-gradient(90deg, rgba(4, 13, 25, .28), transparent 62%);
  opacity: 1 !important;
  transition: opacity .45s ease !important;
}

.home-page .home-categories .home-category-grid > .home-category-card > img,
.home-page .home-categories .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: 50% 44% !important;
  filter: saturate(.94) contrast(1.04) brightness(.96) !important;
  transform: scale(1.002);
  transition: transform .75s cubic-bezier(.2, .72, .2, 1), filter .45s ease !important;
}

.home-page .home-categories .home-category-grid > .home-category-card > span,
.home-page .home-categories .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) > span {
  position: absolute !important;
  inset: auto 0 0 !important;
  z-index: 2 !important;
  display: flex !important;
  min-width: 0 !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  gap: 0 !important;
  padding: 24px 22px !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  transform: translateY(0);
  transition: transform .45s cubic-bezier(.2, .72, .2, 1) !important;
}

.home-page .home-categories .home-category-grid > .home-category-card:nth-child(1) > span,
.home-page .home-categories .home-category-grid > .home-category-card:nth-child(6) > span {
  max-width: 86%;
  padding: clamp(30px, 3vw, 44px) !important;
}

.home-page .home-categories .home-category-grid > .home-category-card small {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px !important;
  color: #eed47d !important;
  font: 800 .68rem/1.2 Arial, sans-serif !important;
  letter-spacing: .04em !important;
  text-transform: uppercase;
}

.home-page .home-categories .home-category-grid > .home-category-card small::before {
  width: 30px;
  height: 1px;
  content: "";
  background: currentColor;
}

.home-page .home-categories .home-category-grid > .home-category-card h3,
.home-page .home-categories .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) h3 {
  max-width: 100%;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(1.42rem, 1.65vw, 1.72rem) !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

.home-page .home-categories .home-category-grid > .home-category-card:nth-child(1) h3,
.home-page .home-categories .home-category-grid > .home-category-card:nth-child(6) h3 {
  font-size: clamp(2.25rem, 3.45vw, 3.5rem) !important;
  line-height: .98 !important;
}

.home-page .home-categories .home-category-grid > .home-category-card p {
  display: -webkit-box !important;
  max-width: 46ch;
  margin: 10px 0 0 !important;
  overflow: hidden;
  color: rgba(255, 255, 255, .78) !important;
  font-size: .76rem !important;
  line-height: 1.5 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-page .home-categories .home-category-grid > .home-category-card:nth-child(1) p,
.home-page .home-categories .home-category-grid > .home-category-card:nth-child(6) p {
  font-size: .9rem !important;
  -webkit-line-clamp: 3;
}

.home-page .home-categories .home-category-grid > .home-category-card strong {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 15px 0 0 !important;
  color: #eed47d !important;
  font: 800 .63rem/1.25 Arial, sans-serif !important;
  letter-spacing: .02em !important;
  text-transform: uppercase;
}

.home-page .home-categories .home-category-grid > .home-category-card strong::after {
  content: "\2192";
  font-size: .9rem;
  transition: transform .3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-page .home-categories .home-category-grid > .home-category-card:hover,
  .home-page .home-categories .home-category-grid > .home-category-card:focus-visible {
    border-color: rgba(238, 212, 125, .88) !important;
    box-shadow: 0 28px 64px rgba(1, 8, 18, .38), 0 0 0 1px rgba(238, 212, 125, .16) !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card:hover > img,
  .home-page .home-categories .home-category-grid > .home-category-card:focus-visible > img {
    filter: saturate(1.03) contrast(1.04) brightness(1.02) !important;
    transform: scale(1.045);
  }

  .home-page .home-categories .home-category-grid > .home-category-card:hover > span,
  .home-page .home-categories .home-category-grid > .home-category-card:focus-visible > span {
    transform: translateY(-5px);
  }

  .home-page .home-categories .home-category-grid > .home-category-card:hover strong::after,
  .home-page .home-categories .home-category-grid > .home-category-card:focus-visible strong::after {
    transform: translateX(4px);
  }
}

@media (max-width: 1040px) {
  .home-page .home-categories .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row dense !important;
    grid-auto-rows: auto !important;
    gap: 12px !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--primary,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--stack,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--industrial,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--wide {
    min-height: 390px !important;
    grid-column: span 1 !important;
    grid-row: auto !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(1),
  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(6) {
    min-height: 510px !important;
    grid-column: 1 / -1 !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(1) > span,
  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(6) > span {
    max-width: 78%;
  }
}

@media (max-width: 640px) {
  .home-page .home-categories .home-category-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: none !important;
    grid-auto-columns: auto !important;
    grid-auto-rows: auto !important;
    grid-auto-flow: row !important;
    gap: 10px !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--primary,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--stack,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--industrial,
  .home-page .home-categories .home-category-grid > .home-category-card.home-category-card--wide,
  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(1),
  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(6) {
    min-height: clamp(390px, 118vw, 470px) !important;
    grid-column: 1 !important;
    grid-row: auto !important;
    scroll-snap-align: none !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card > img,
  .home-page .home-categories .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) > img {
    object-position: 50% 40% !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card > span,
  .home-page .home-categories .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) > span,
  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(1) > span,
  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(6) > span {
    max-width: 100%;
    padding: 24px 22px !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card h3,
  .home-page .home-categories .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) h3,
  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(1) h3,
  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(6) h3 {
    font-size: clamp(1.75rem, 8vw, 2.3rem) !important;
    line-height: 1 !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card p,
  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(1) p,
  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(6) p {
    font-size: .83rem !important;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 420px) {
  .home-page .home-categories .home-category-grid > .home-category-card::before {
    top: 14px !important;
    right: 14px !important;
    width: 40px !important;
    height: 40px !important;
  }

  .home-page .home-categories .home-category-grid > .home-category-card > span,
  .home-page .home-categories .home-category-grid > :is(.home-category-card--primary, .home-category-card--industrial) > span,
  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(1) > span,
  .home-page .home-categories .home-category-grid > .home-category-card:nth-child(6) > span {
    padding: 22px 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-categories .home-category-grid > .home-category-card,
  .home-page .home-categories .home-category-grid > .home-category-card > img,
  .home-page .home-categories .home-category-grid > .home-category-card > span,
  .home-page .home-categories .home-category-grid > .home-category-card strong::after {
    transition: none !important;
  }
}

/* Balance the curated homepage records after the service inventory was reduced.
   Every standard service group carries four records, so four columns keep each
   desktop row full and remove the wrapped-card gap a three-column grid caused. */
@media (min-width: 701px) {
  .home-page .home-service-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Tablet: the base stylesheet drops the ledger to two columns; let the last
     shipping card span the row so no empty cell is left behind. */
  @media (max-width: 800px) {
    .home-page .home-service-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .home-service-group-shipping .home-service-list > a:last-child {
      grid-column: span 2;
    }
  }

  .home-page .home-tool-grid > a:last-child:nth-child(odd) {
    display: grid;
    min-height: 122px;
    grid-column: 1 / -1;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 18px;
  }

  .home-page .home-tool-grid > a:last-child:nth-child(odd) > span {
    grid-row: 1 / -1;
    margin: 0;
  }

  .home-page .home-tool-grid > a:last-child:nth-child(odd) h3 {
    grid-column: 2;
    margin-bottom: 5px;
  }

  .home-page .home-tool-grid > a:last-child:nth-child(odd) p {
    grid-column: 2;
    margin: 0;
  }

  .home-page .home-tool-grid > a:last-child:nth-child(odd) strong {
    grid-column: 3;
    grid-row: 1 / -1;
    margin: 0;
  }
}

@media (min-width: 1181px) {
  .home-page .home-market-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Ten country cards in four columns leave two empty cells on the last row;
     let the final two cards share the row so the index stays full. */
  .home-page .home-market-grid > a:nth-child(9),
  .home-page .home-market-grid > a:nth-child(10) {
    grid-column: span 2 !important;
  }
}

@media (min-width: 701px) and (max-width: 1180px) {
  .home-page .home-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-page .home-service-record {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 184px;
  flex-direction: column;
  padding: 18px 16px;
  background: linear-gradient(145deg, rgba(15, 30, 54, .025), rgba(255, 255, 255, .98));
  border-left: 1px solid rgba(15, 30, 54, .1);
  box-shadow: inset 3px 0 0 var(--service-accent);
}

.home-page .home-service-record > span {
  margin-bottom: 8px;
  color: var(--service-accent);
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-page .home-service-record h4 {
  margin-bottom: 13px;
  font-size: 1.02rem;
}

.home-page .home-service-record dl {
  display: grid;
  gap: 0;
  margin: auto 0 0;
}

.home-page .home-service-record dl > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid rgba(15, 30, 54, .1);
}

.home-page .home-service-record dt {
  color: var(--service-accent);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-page .home-service-record dd {
  margin: 0;
  color: #435566;
  font-size: .68rem;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .home-page .home-service-record {
    min-height: 190px;
    padding: 18px 16px;
    border-right: 1px solid rgba(15, 30, 54, .1);
    scroll-snap-align: start;
  }
}

/* Let the company visual carry the full sourcing story beside long-form copy. */
@media (min-width: 1041px) {
  .home-page .hp-company-grid {
    align-items: stretch;
  }

  .home-page .hp-company-visual {
    align-self: stretch;
    min-height: 620px;
  }

  .home-page .hp-company-visual img {
    position: absolute;
    inset: 0;
    min-height: 0;
    object-position: 52% center;
  }
}

@media (min-width: 701px) and (max-width: 1040px) {
  .home-page .hp-company-visual,
  .home-page .hp-company-visual img {
    min-height: clamp(400px, 52vw, 560px);
  }
}

/* Match the landscape source selected by the company picture on phones and tablets. */
@media (max-width: 1040px) {
  .home-page .hp-company-visual > picture > img {
    --content-source-ratio: 1280 / 800 !important;
  }
}

/* Supporting freight media stays subordinate to the section content. The
   source photograph is portrait; without an explicit stage its intrinsic
   ratio creates a second, page-height hero beside a compact four-record grid. */
:root {
  --home-freight-stage-desktop: clamp(460px, 40vw, 520px);
  --home-freight-stage-tablet: clamp(360px, 46vw, 420px);
  --home-freight-stage-mobile: 280px;
}

@media (min-width: 1041px) {
  html body.home-page .home-freight-layout {
    grid-template-rows: var(--home-freight-stage-desktop) !important;
    align-items: stretch !important;
  }

  html body.home-page .home-freight-visual,
  html body.home-page .home-freight-manifest {
    width: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    align-self: stretch !important;
  }

  html body.home-page .home-freight-manifest {
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  }
}

html body.home-page .home-freight-visual {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
}

html body.home-page .home-freight-visual > img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center 44% !important;
}

@media (min-width: 701px) and (max-width: 1040px) {
  html body.home-page .home-freight-visual {
    width: 100% !important;
    min-height: 0 !important;
    height: var(--home-freight-stage-tablet) !important;
  }
}

@media (max-width: 700px) {
  html body.home-page .home-freight-visual {
    width: 100% !important;
    min-height: 0 !important;
    height: var(--home-freight-stage-mobile) !important;
  }
}
