/* Homepage industry showcase */
.home-industry {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 7.5vw, 96px);
  color: #fff;
  background: linear-gradient(180deg, #0c1726b8 0%, #101d2fa3 49%, #0c1726d6 100%), #101c2c;
  background-image: linear-gradient(180deg, #0c1726b8 0%, #101d2fa3 49%, #0c1726d6 100%),
    url("danbo-factory-night.webp");
  background-position: center, center 53%;
  background-size: cover;
}
.home-industry-heading {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}
.home-industry-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(29px, 3.5vw, 46px);
  line-height: 1.18;
  letter-spacing: -.02em;
}
.home-industry-heading p {
  margin: .8rem 0 0;
  color: #e5edff;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.65;
}
.home-industry-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 26px 0 26px;
}
.home-industry-tab {
  min-width: 74px;
  padding: 8px 17px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 6px;
  background: rgba(10, 22, 37, .56);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.home-industry-tab:hover {
  background: rgba(35, 58, 88, .86);
}
.home-industry-tab[aria-selected="true"] {
  border-color: #fff;
  background: #fff;
  color: #152c4d;
  font-weight: 650;
}
.home-industry-tab:focus-visible,
.home-industry-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.home-industry-panel[hidden] { display: none; }
.home-industry-panel:not([hidden]) { animation: home-industry-reveal .23s ease-out; }
.home-industry-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-bottom: 14px;
}
.home-industry-panel-header h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 680;
}
.home-industry-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 590;
  text-decoration: none;
}
.home-industry-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-industry-link svg { width: 15px; height: 15px; }
.home-industry-photo {
  display: block;
  margin-bottom: 14px;
  border: 1px solid #d8e6f744;
  border-radius: 11px;
  overflow: hidden;
  background: #111d2a;
}
.home-industry-photo:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.home-industry-photo img {
  display: block;
  width: 100%;
  height: clamp(145px, 18vw, 258px);
  object-fit: cover;
  object-position: center;
}
.home-industry-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 21px);
}
.home-industry-card {
  min-width: 0;
  padding: clamp(17px, 2.4vw, 27px);
  border: 1px solid rgba(221, 234, 255, .9);
  border-radius: 11px;
  background: linear-gradient(152deg, #fff 64%, #f1f7ff);
  color: #16284d;
  box-shadow: 0 12px 26px rgba(4, 12, 23, .29);
}
.home-industry-card-icon {
  display: grid;
  width: 37px;
  height: 37px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 9px;
  background: #eaf1ff;
  color: #1d56d8;
}
.home-industry-card:nth-child(2) .home-industry-card-icon {
  background: #eeeaff;
  color: #6248c9;
}
.home-industry-card:nth-child(3) .home-industry-card-icon {
  background: #e0f5ff;
  color: #1768b7;
}
.home-industry-card-icon svg { width: 20px; height: 20px; }
.home-industry-card h4 {
  margin: 0 0 5px;
  color: #152951;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.45;
}
.home-industry-card p {
  margin: 0;
  color: #486084;
  font-size: 14px;
  line-height: 1.65;
}
@keyframes home-industry-reveal {
  from { opacity: .46; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 670px) {
  .home-industry-cards { grid-template-columns: minmax(0, 1fr); }
  .home-industry-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 4px 13px;
  }
  .home-industry-card-icon { grid-row: 1 / 3; margin: 0; }
  .home-industry-card h4 { margin: 0; }
  .home-industry-tabs { gap: 7px; margin-bottom: 22px; }
  .home-industry-tab { min-width: 0; padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-industry-panel:not([hidden]) { animation: none; }
  .home-industry-tab { transition: none; }
}
