#index {
  --hm-ink: #162629;
  --hm-text: #465555;
  --hm-accent: #175746;
  --hm-mist: #f2f5f3;
  --hm-line: #d7e0dc;
}

#index .page-content--home { row-gap: 0; }

#index .hm-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 27rem;
  background: #172724;
  color: white;
}

#index .hm-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  z-index: -2;
}

#index .hm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #101e1c 0%, rgba(16, 30, 28, .95) 27%, rgba(16, 30, 28, .65) 51%, rgba(16, 30, 28, .12) 82%);
}

#index .hm-hero__inner { padding-block: 3rem; }
#index .hm-hero__brand { margin: 0 0 1rem; color: #c9eddd; font-size: .875rem; font-weight: 700; text-transform: uppercase; }
#index .hm-hero h1 { max-width: 19ch; margin: 0 0 1.125rem; color: white; font-size: 3.5rem; line-height: 1.06; letter-spacing: 0; overflow-wrap: anywhere; }
#index .hm-hero__intro { max-width: 36ch; margin: 0 0 1.5rem; color: #e7eeea; font-size: 1.0625rem; }
#index .hm-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
#index .hm-hero__actions .btn { min-height: 44px; padding: .6875rem 1.125rem; border-radius: .25rem; font-weight: 650; }
#index .hm-home-outline { border-color: #dce8e3; color: white; background: #192d27; }
#index .hm-home-outline:hover { background: #27483d; color: white; }
#index .hm-home-primary { border-color: #e0f2e8; color: #153c2e; background: #e0f2e8; }
#index .hm-home-primary:hover { background: white; color: #153c2e; }

#index .hm-spotlight { max-width: none; margin: 0; padding-block: 2.5rem 3rem; background: var(--hm-mist); }
#index .hm-spotlight__title { margin: 0 0 1rem; color: var(--hm-ink); font-size: 1.75rem; }
#index .hm-spotlight .carousel-inner { background: white; border: 1px solid var(--hm-line); }
#index .hm-spotlight .ps-imageslider__figure { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; height: auto; min-height: 19rem; margin: 0; }
#index .hm-spotlight .ps-imageslider__link { display: block; }
#index .hm-spotlight img { display: block; width: 100%; height: auto; aspect-ratio: 779 / 448; object-fit: contain; background: #e3e9e6; }
#index .hm-spotlight .ps-imageslider__figcaption { position: static; display: block !important; max-width: none; padding: 1.5rem; color: var(--hm-ink); background: none !important; text-align: left; }
@layer utilities {
  #index .hm-spotlight .ps-imageslider__figcaption > div > :first-child { display: block !important; }
}
#index .hm-spotlight h3 { color: var(--hm-ink); font-size: 1.375rem; text-transform: none; }
#index .hm-spotlight p, #index .hm-spotlight .ps-imageslider__figcaption a { color: var(--hm-text); font-size: 1rem; }
#index .hm-spotlight .ps-imageslider__figcaption p:last-child { margin-bottom: 0; }
#index .hm-spotlight .ps-imageslider__figcaption .btn { border-color: var(--hm-line); }
#index .hm-spotlight__controls { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin-top: .75rem; }
#index .hm-spotlight__controls .carousel-control-prev,
#index .hm-spotlight__controls .carousel-control-next { position: static; transform: none; box-shadow: none; border: 1px solid var(--hm-line); }
#index .hm-spotlight .carousel-indicators { position: static; align-items: center; gap: .125rem; margin: 0 .25rem; }
#index .hm-spotlight .carousel-indicators [data-bs-target] { width: 22px; height: 4px; margin: 0; background: #70857c; border: 10px solid transparent; background-clip: padding-box; box-sizing: content-box; opacity: 1; }
#index .hm-spotlight .carousel-indicators .active { background-color: var(--hm-accent); }

#index .hm-core { margin: 0; padding-block: 3rem 1.5rem; }
#index .hm-core__title, #index .hm-core__name, #index .hm-core__symbol { color: var(--hm-ink); }
#index .hm-core__card { border-color: var(--hm-line); border-top-width: 1px; border-radius: .25rem; }
#index .hm-core__card:hover { transform: none; border-color: var(--hm-accent); box-shadow: none; }
#index .hm-core__link { color: var(--hm-accent); }
#index .hm-core__body { padding: .875rem; }
#index :is(.ps-featuredproducts, .ps-bestsellers, .ps-specials) { margin-block: 0; padding-block: 2rem; }
#index :is(.ps-featuredproducts, .ps-bestsellers, .ps-specials) h2 { color: var(--hm-ink); }
#index :is(.ps-bestsellers, .hm-cta) { background: var(--hm-mist); }

#index .ps-customtext { background: #fff; }
#index .ps-customtext > .container > div { padding-block: 0 3rem !important; }
#index .ps-customtext > .container > div > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: 4rem;
  padding-block: 3rem !important;
  border-block: 1px solid var(--hm-line) !important;
  background: var(--hm-mist) !important;
  box-shadow: 0 0 0 100vmax var(--hm-mist);
  clip-path: inset(0 -100vmax);
}
#index .ps-customtext > .container > div > div:first-child > * { grid-column: 1; }
#index .ps-customtext > .container > div > div:first-child::before {
  content: "";
  grid-area: 1 / 2 / span 4;
  aspect-ratio: 16 / 9;
  align-self: start;
  border-radius: .25rem;
  background: #dfdfd5 url(/img/cms/W/Tungsten-Crucible-HeegerMaterials.JPG) center 43% / cover no-repeat;
}
#index .ps-customtext > .container > div > div:first-child > :nth-child(n+5) { grid-column: 2; }
#index .ps-customtext > .container > div > div:first-child > h2:nth-of-type(3) { margin-top: 1.25rem !important; }

#index .ps-customtext > .container > div > div + div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
  padding-top: 3rem !important;
}
#index .ps-customtext > .container > div > div + div > * { grid-column: 1 / -1; }
#index .ps-customtext > .container > div > div + div > p:has(> strong) {
  grid-column: auto;
  margin: 0 !important;
  padding-block: 1rem;
  border-top: 1px solid var(--hm-line);
}
#index .ps-customtext p, #index .ps-customtext dd { color: var(--hm-text); overflow-wrap: anywhere; }
#index .ps-customtext strong { color: var(--hm-accent); }
#index .ps-customtext h2 { margin: 0 0 .75rem !important; color: var(--hm-ink) !important; font-weight: 700 !important; }
#index .ps-customtext h2:has(+ h3) { margin-top: 2.5rem !important; }
#index .ps-customtext h3, #index .ps-customtext h3 + p { border-top: 1px solid var(--hm-line) !important; }
#index .ps-customtext > .container > div > div + div > h3 { grid-column: 1; color: var(--hm-ink) !important; font-weight: 700 !important; margin: 0 !important; padding-block: 1rem !important; line-height: 1.4 !important; }
#index .ps-customtext > .container > div > div + div > h3 + p { grid-column: 2; margin: 0 !important; padding-block: .875rem 1rem !important; }
#index .hm-home-definitions { display: grid; grid-template-columns: minmax(9rem, .25fr) minmax(0, 1fr); align-items: stretch; }
#index .hm-home-definitions > :is(dt, dd) { margin: 0 !important; border-top: 1px solid var(--hm-line) !important; padding: .75rem 0 !important; font-size: .9375rem; }
#index .hm-home-definitions dt { padding-right: .75rem !important; color: var(--hm-ink); }

#index .hm-cta { margin: 0; padding: 3.25rem 0; border-top: 1px solid var(--hm-line); background: #e5eee8; }
#index .hm-cta__title { color: var(--hm-ink); }
#index .hm-cta__text { color: var(--hm-text); }
#index .hm-cta__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem; margin: 0 auto 1.5rem; padding-left: 1.375rem; color: var(--hm-ink); list-style: decimal; }
#index .hm-cta__steps li { padding-left: .125rem; }
#index .hm-cta__steps li::marker { color: var(--hm-accent); font-weight: 800; }
#index .hm-cta__btn { background: var(--hm-accent); border-color: var(--hm-accent); color: white; }
#index .hm-cta__btn:hover { background: #114335; color: white; }
#index :is(.hm-hero, .hm-spotlight, .hm-core, .hm-cta) :is(a, button):focus-visible { outline: 2px solid #178963; outline-offset: 3px; }

@media (max-width: 767.98px) {
  #index .hm-hero { min-height: 21rem; }
  #index .hm-hero__inner { padding-block: 2rem; }
  #index .hm-hero h1 { max-width: 16ch; font-size: 2.375rem; }
  #index .hm-hero::before { background: rgba(16, 30, 28, .74); }
  #index .hm-spotlight, #index .hm-core { padding-block: 1.5rem; }
  #index .hm-spotlight .ps-imageslider__figure { grid-template-columns: minmax(0, 1fr); align-items: start; }
  #index .hm-spotlight .ps-imageslider__figcaption { min-height: 13rem; padding: 1rem; }
  #index .ps-customtext > .container > div > div:first-child,
  #index .ps-customtext > .container > div > div + div { grid-template-columns: minmax(0, 1fr); padding-top: 2rem !important; }
  #index .ps-customtext > .container > div > div:first-child > :nth-child(n+5) { grid-column: 1; }
  #index .ps-customtext > .container > div > div:first-child::before { grid-area: 5 / 1; margin-top: .5rem; }
  #index .ps-customtext > .container > div > div + div > h3 + p { grid-column: 1; padding-top: 0 !important; border-top: 0 !important; }
  #index .ps-customtext > .container > div > div + div > h3 { padding-bottom: .375rem !important; }
  #index .hm-home-definitions { display: block; }
  #index .hm-home-definitions > dt { padding-bottom: .25rem !important; }
  #index .hm-home-definitions > dd { border-top: 0 !important; padding-top: 0 !important; }
}

@media (max-width: 379.98px) {
  #index .hm-hero h1 { font-size: 2rem; }
  #index .hm-hero__actions .btn { padding-inline: .75rem; }
  #index .hm-core__grid { gap: .625rem; }
  #index .hm-core__body { padding: .625rem; overflow-wrap: anywhere; }
}
