/* Reference-matched HMI composition (v16).
   The cabinet photograph is only the enclosure; every control inside the
   glass is real, selectable HTML and remains linked to the existing site. */
.hero {
  position: relative;
  width: min(1215px, 100%);
  max-width: 1215px;
  aspect-ratio: 1215/1295;
  margin: 0 auto;
  padding: 15.25% 4.1% 22.4% 24.75%;
  display: grid;
  grid-template-columns: 13.6% minmax(0, 86.4%);
  grid-template-rows: 20.5% minmax(0, 79.5%);
  gap: 0;
  overflow: hidden;
  border: 0;
  background: #11191f url("images/control-cabinet-shell-v16.webp") center/100%
    100% no-repeat;
  box-shadow: 0 28px 70px rgba(1, 6, 10, 0.48);
}
.hero .hmi-nav {
  grid-column: 1;
  grid-row: 1/3;
  z-index: 2;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(95, 167, 207, 0.035), transparent 58%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.011) 0 1px,
      rgba(0, 0, 0, 0.025) 1px 3px
    ),
    linear-gradient(155deg, rgba(28, 43, 54, 0.99), rgba(7, 15, 21, 0.99));
  border: 1px solid rgba(107, 190, 235, 0.38);
  border-right-color: rgba(139, 205, 239, 0.55);
  border-radius: 0;
  box-shadow:
    inset 0 0 0 2px rgba(2, 8, 12, 0.52),
    inset -1px 0 rgba(135, 205, 242, 0.08);
}
.hero .hmi-nav a {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px solid rgba(105, 178, 218, 0.28);
  color: #d3dde3;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(7px, 0.77vw, 12px);
  font-weight: 500;
  line-height: 1.12;
  text-decoration: none;
}
.hero .hmi-nav a:last-child {
  border-bottom: 0;
}
.hero .hmi-nav a:hover,
.hero .hmi-nav a[aria-current="page"] {
  color: #f4fbff;
  background: linear-gradient(
    90deg,
    rgba(30, 148, 213, 0.24),
    rgba(28, 107, 151, 0.07)
  );
}
.hero .hmi-nav a span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: #a4dcf8;
  border: 1px solid rgba(133, 207, 246, 0.42);
  border-radius: 2px;
  background: rgba(4, 13, 19, 0.34);
  font:
    700 11px/1 "Barlow Condensed",
    "Arial Narrow",
    sans-serif;
}
.hero .identity-hero {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  z-index: 1;
  display: block;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(125, 198, 236, 0.42);
  border-left: 0;
  border-radius: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 13, 19, 0.86) 0%,
      rgba(5, 13, 19, 0.48) 54%,
      rgba(5, 13, 19, 0.12) 100%
    ),
    url("images/wafer-color-v1.webp") 62% 52% / cover no-repeat;
  box-shadow:
    inset 0 -1px rgba(203, 230, 244, 0.28),
    inset 0 0 22px rgba(2, 8, 12, 0.42);
}
.hero .identity-hero > a {
  position: absolute;
  inset: 7% auto 29% 4%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 53%;
  height: auto;
  min-height: 0;
  padding: 0;
}
.hero .identity-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: saturate(0.88) contrast(1.06)
    drop-shadow(0 2px 5px rgba(0, 0, 0, 0.58));
}
.hero .identity-hero .art-top {
  position: absolute;
  left: 5%;
  right: auto;
  top: auto;
  bottom: 7%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0;
  color: #f2f5f6;
  border: 0;
  background: none;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  text-shadow: 0 1px 3px #000;
}
.hero .identity-hero .art-top span:first-child {
  font-size: clamp(10px, 1.25vw, 19px);
  letter-spacing: 0.12em;
  font-weight: 600;
}
.hero .identity-hero .art-top span:last-child {
  font-size: clamp(5px, 0.52vw, 8px);
  letter-spacing: 0.17em;
  color: #c8d5dc;
}
.hero .identity-hero .art-bottom {
  display: none;
}
.hmi-feature-stack {
  grid-column: 2;
  grid-row: 2;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 12px 13px 9px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(61, 106, 132, 0.08), transparent 38%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0 1px,
      rgba(0, 0, 0, 0.025) 1px 3px
    ),
    linear-gradient(145deg, #17242d, #0b151b 70%);
  border-right: 1px solid rgba(127, 195, 231, 0.4);
  border-bottom: 1px solid rgba(127, 195, 231, 0.4);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.4);
}
.hmi-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 61%) minmax(0, 39%);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(89, 190, 243, 0.78);
  border-radius: 9px;
  background:
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.05),
      transparent 28%,
      rgba(129, 194, 227, 0.025) 72%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.011) 0 1px,
      rgba(0, 0, 0, 0.022) 1px 3px
    ),
    linear-gradient(145deg, #2a3943, #17242d 69%, #111b22);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.13),
    inset 0 0 0 2px rgba(4, 12, 17, 0.28),
    0 0 13px rgba(43, 151, 211, 0.12);
}
.hmi-feature-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 15px 12px 12px 17px;
  background: linear-gradient(
    90deg,
    rgba(18, 29, 37, 0.96) 0%,
    rgba(22, 34, 42, 0.92) 84%,
    rgba(22, 34, 42, 0.18) 100%
  );
}
.hmi-feature h2 {
  margin: 0 0 8px;
  color: #f3f7f9;
  font-size: clamp(16px, 2.05vw, 31px);
  line-height: 1;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}
.hmi-feature p {
  margin: 0 0 9px;
  color: #e1e8eb;
  font-size: clamp(7px, 0.78vw, 12px);
  line-height: 1.48;
}
.hmi-feature ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: #e8eef1;
  list-style: none;
  font-size: clamp(7px, 0.76vw, 12px);
  line-height: 1.35;
}
.hmi-feature li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.hmi-feature li::before {
  content: "+";
  color: #e06c60;
  font-size: 1.25em;
  line-height: 1;
  font-weight: 700;
}
.hmi-feature figure {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #202d35;
}
.hmi-feature figure::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 18px 0 22px -18px rgba(5, 12, 17, 0.9);
  pointer-events: none;
}
.hmi-feature img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hmi-scope {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 3px 5px 0 18px;
  color: #d6e0e5;
  font-size: clamp(6px, 0.72vw, 11px);
  line-height: 1.35;
}
.hmi-scope::before {
  content: "†";
  margin-right: 10px;
  color: #54c5f2;
  font-size: 1.4em;
}
.hero-summary {
  width: min(1215px, 100%);
  margin: 0 auto 34px;
  padding: 34px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 35px;
  color: var(--cabinet-copy);
  border: 1px solid rgba(120, 185, 220, 0.35);
  border-top: 0;
  background: var(--cabinet-panel);
  box-shadow: 0 18px 42px rgba(2, 7, 10, 0.28);
}
.hero-summary h1 {
  margin: 10px 0 13px;
  color: #f0f5f7;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 0.96;
}
.hero-summary p {
  max-width: 720px;
  margin: 0;
  color: var(--cabinet-muted);
  font-size: 13px;
  line-height: 1.7;
}
.hero-summary .button {
  white-space: nowrap;
}

@media (max-width: 900px) and (min-width: 721px) {
  .hero .hmi-nav a {
    gap: 4px;
    padding: 4px;
    font-size: 7px;
  }
  .hero .hmi-nav a span {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    font-size: 8px;
  }
  .hmi-feature-stack {
    gap: 6px;
    padding: 7px 8px 5px;
  }
  .hmi-feature-copy {
    padding: 9px 7px 6px 10px;
  }
  .hmi-feature h2 {
    margin-bottom: 5px;
  }
  .hmi-feature p {
    margin-bottom: 5px;
    line-height: 1.35;
  }
  .hmi-feature ul {
    gap: 3px;
  }
  .hmi-scope {
    min-height: 18px;
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    margin: 0;
    padding: 107% 4% 24px;
    overflow: visible;
    background-color: #11191f;
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    box-shadow: 0 18px 42px rgba(1, 6, 10, 0.4);
  }
  .hero .identity-hero {
    position: absolute;
    top: 15.3%;
    left: 24.75%;
    right: 4.1%;
    width: auto;
    height: 16.4vw;
    margin: 0;
    border-left: 1px solid rgba(125, 198, 236, 0.42);
  }
  .hero .identity-hero > a {
    inset: 7% auto 29% 4%;
    width: 55%;
  }
  .hero .identity-hero .art-top {
    bottom: 5%;
  }
  .hero .identity-hero .art-top span:first-child {
    font-size: 2.1vw;
  }
  .hero .identity-hero .art-top span:last-child {
    font-size: 0.9vw;
  }
  .hero .hmi-nav {
    order: 1;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0 0 12px;
    border-right: 1px solid rgba(107, 190, 235, 0.38);
  }
  .hero .hmi-nav a {
    min-height: 52px;
    padding: 9px 11px;
    border-right: 1px solid rgba(105, 178, 218, 0.24);
    border-bottom: 1px solid rgba(105, 178, 218, 0.24);
    font-size: 11px;
  }
  .hero .hmi-nav a:nth-child(even) {
    border-right: 0;
  }
  .hero .hmi-nav a:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .hero .hmi-nav a span {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    font-size: 10px;
  }
  .hmi-feature-stack {
    order: 2;
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 12px;
    width: 100%;
    padding: 12px;
    overflow: visible;
    border: 1px solid rgba(127, 195, 231, 0.4);
  }
  .hmi-feature {
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .hmi-feature-copy {
    padding: 22px 19px 18px;
    background: linear-gradient(
      145deg,
      rgba(37, 52, 62, 0.98),
      rgba(16, 27, 34, 0.98)
    );
  }
  .hmi-feature h2 {
    font-size: 32px;
    margin-bottom: 12px;
  }
  .hmi-feature p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 13px;
  }
  .hmi-feature ul {
    gap: 9px;
    font-size: 12px;
    line-height: 1.5;
  }
  .hmi-feature figure {
    height: 210px;
  }
  .hmi-scope {
    min-height: 42px;
    padding: 7px 7px 3px 13px;
    font-size: 10px;
  }
  .hero-summary {
    grid-template-columns: 1fr;
    margin: 0;
    padding: 31px 6%;
    gap: 23px;
    border-left: 0;
    border-right: 0;
  }
  .hero-summary h1 {
    font-size: 44px;
  }
  .hero-summary p {
    font-size: 12px;
  }
  .hero-summary .button {
    width: 100%;
  }
}

/* Functional HMI service categories (v17). */
.hero .hmi-nav button {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px solid rgba(105, 178, 218, 0.28);
  border-radius: 0;
  color: #d3dde3;
  background: transparent;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(7px, 0.77vw, 12px);
  font-weight: 500;
  line-height: 1.12;
  text-align: left;
  cursor: pointer;
}
.hero .hmi-nav button:last-child {
  border-bottom: 0;
}
.hero .hmi-nav button:hover,
.hero .hmi-nav button[aria-selected="true"] {
  color: #f4fbff;
  background: linear-gradient(
    90deg,
    rgba(30, 148, 213, 0.26),
    rgba(28, 107, 151, 0.08)
  );
}
.hero .hmi-nav button:focus-visible,
.hmi-subnav button:focus-visible {
  outline: 2px solid #9bdcff;
  outline-offset: -3px;
}
.hero .hmi-nav button span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: #a4dcf8;
  border: 1px solid rgba(133, 207, 246, 0.42);
  border-radius: 2px;
  background: rgba(4, 13, 19, 0.34);
  font:
    700 11px/1 "Barlow Condensed",
    "Arial Narrow",
    sans-serif;
}
.hmi-screen-content {
  grid-column: 2;
  grid-row: 2;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(61, 106, 132, 0.08), transparent 38%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0 1px,
      rgba(0, 0, 0, 0.025) 1px 3px
    ),
    linear-gradient(145deg, #17242d, #0b151b 70%);
  border-right: 1px solid rgba(127, 195, 231, 0.4);
  border-bottom: 1px solid rgba(127, 195, 231, 0.4);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.4);
}
.hmi-screen-content [hidden] {
  display: none !important;
}
.hmi-view {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.hmi-view > .hmi-feature-stack {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.hmi-category-code {
  margin: 0 0 6px;
  color: #8fc9e7;
  font:
    600 clamp(5px, 0.55vw, 8px)/1.2 "DM Sans",
    Arial,
    sans-serif;
  letter-spacing: 0.13em;
}
.hmi-qualified {
  color: #aec0c9 !important;
  font-size: clamp(6px, 0.64vw, 10px) !important;
}
.hmi-feature-large {
  grid-template-columns: minmax(0, 59%) minmax(0, 41%);
}
.hmi-feature-compact {
  grid-template-columns: minmax(0, 67%) minmax(0, 33%);
}
.hmi-feature-compact h2 {
  font-size: clamp(14px, 1.7vw, 25px);
}
.hmi-feature-compact figure img {
  object-position: center 42%;
}

#hmi-repairs {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 9px;
  padding: 11px 13px 9px;
}
.hmi-subnav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.hmi-subnav button {
  min-width: 0;
  min-height: 29px;
  padding: 5px 7px;
  border: 1px solid rgba(115, 190, 230, 0.34);
  border-radius: 2px;
  color: #cbd9e0;
  background: linear-gradient(
    145deg,
    rgba(42, 58, 68, 0.94),
    rgba(16, 27, 34, 0.96)
  );
  font:
    600 clamp(6px, 0.69vw, 10px)/1.15 "DM Sans",
    Arial,
    sans-serif;
  cursor: pointer;
}
.hmi-subnav button:hover,
.hmi-subnav button[aria-selected="true"] {
  color: #fff;
  border-color: #66c8f3;
  background: linear-gradient(145deg, #28546d, #152c39);
}
.hmi-detail {
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(89, 190, 243, 0.78);
  border-radius: 9px;
  background: linear-gradient(145deg, #2a3943, #17242d 69%, #111b22);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.13),
    inset 0 0 0 2px rgba(4, 12, 17, 0.28),
    0 0 13px rgba(43, 151, 211, 0.12);
}
.hmi-detail-copy {
  min-width: 0;
  padding: 22px 17px;
  background: linear-gradient(
    90deg,
    rgba(18, 29, 37, 0.98),
    rgba(22, 34, 42, 0.9)
  );
}
.hmi-detail h2,
.hmi-info-card h2 {
  margin: 0 0 10px;
  color: #f3f7f9;
  font-size: clamp(21px, 2.35vw, 36px);
  line-height: 1;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}
.hmi-detail p,
.hmi-info-card p {
  margin: 0 0 12px;
  color: #e1e8eb;
  font-size: clamp(8px, 0.79vw, 12px);
  line-height: 1.5;
}
.hmi-detail ul,
.hmi-info-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  color: #e8eef1;
  list-style: none;
  font-size: clamp(8px, 0.78vw, 12px);
  line-height: 1.4;
}
.hmi-detail li,
.hmi-info-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.hmi-detail li::before,
.hmi-info-card li::before {
  content: "+";
  color: #e06c60;
  font-size: 1.25em;
  line-height: 1;
  font-weight: 700;
}
.hmi-detail figure {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #202d35;
}
.hmi-detail figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
#hmi-repairs > .hmi-scope {
  min-height: 24px;
  padding-top: 0;
}

.hmi-information-stack {
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto;
}
.hmi-info-card {
  padding: 17px 19px;
  overflow: hidden;
  border: 1px solid rgba(89, 190, 243, 0.72);
  border-radius: 8px;
  background: linear-gradient(145deg, #2a3943, #17242d 69%, #111b22);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.11),
    inset 0 0 0 2px rgba(4, 12, 17, 0.24);
}
.hmi-info-card h2 {
  font-size: clamp(18px, 2vw, 30px);
}
.hmi-info-card ul {
  grid-template-columns: 1fr 1fr;
  gap: 7px 14px;
  margin-bottom: 0;
}
.hmi-action {
  display: inline-flex;
  margin-top: 6px;
  padding: 8px 11px;
  border: 1px solid rgba(101, 199, 242, 0.58);
  color: #e9f7fd;
  background: rgba(42, 117, 157, 0.18);
  font-size: clamp(7px, 0.72vw, 11px);
  font-weight: 600;
}
.hmi-action:hover {
  background: rgba(42, 137, 190, 0.31);
}

@media (max-width: 900px) and (min-width: 721px) {
  .hero .hmi-nav button {
    gap: 4px;
    padding: 4px;
    font-size: 7px;
  }
  .hero .hmi-nav button span {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    font-size: 8px;
  }
  #hmi-repairs {
    gap: 5px;
    padding: 6px 7px 5px;
  }
  .hmi-subnav {
    gap: 4px;
  }
  .hmi-subnav button {
    min-height: 21px;
    padding: 3px;
  }
  .hmi-detail-copy {
    padding: 10px 9px;
  }
  .hmi-detail h2 {
    margin-bottom: 5px;
  }
  .hmi-detail p {
    margin-bottom: 5px;
    line-height: 1.3;
  }
  .hmi-detail ul {
    gap: 3px;
    margin-bottom: 4px;
  }
  .hmi-info-card {
    padding: 9px 10px;
  }
  .hmi-info-card h2 {
    margin-bottom: 5px;
  }
}

@media (max-width: 720px) {
  .hero .hmi-nav button {
    min-height: 52px;
    padding: 9px 11px;
    border-right: 1px solid rgba(105, 178, 218, 0.24);
    border-bottom: 1px solid rgba(105, 178, 218, 0.24);
    font-size: 11px;
  }
  .hero .hmi-nav button:nth-child(even) {
    border-right: 0;
  }
  .hero .hmi-nav button:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .hero .hmi-nav button span {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    font-size: 10px;
  }
  .hmi-screen-content {
    order: 2;
    width: 100%;
    overflow: visible;
    border: 1px solid rgba(127, 195, 231, 0.4);
  }
  .hmi-view {
    height: auto;
  }
  .hmi-view > .hmi-feature-stack {
    height: auto;
  }
  .hmi-category-code {
    font-size: 9px;
    margin-bottom: 7px;
  }
  #hmi-repairs {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 12px;
    padding: 12px;
  }
  .hmi-subnav {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .hmi-subnav button {
    min-height: 44px;
    padding: 10px;
    font-size: 11px;
  }
  .hmi-detail {
    grid-template-columns: 1fr;
  }
  .hmi-detail-copy {
    padding: 22px 19px 18px;
  }
  .hmi-detail h2,
  .hmi-info-card h2 {
    font-size: 31px;
  }
  .hmi-detail p,
  .hmi-info-card p {
    font-size: 13px;
    line-height: 1.6;
  }
  .hmi-detail ul,
  .hmi-info-card ul {
    grid-template-columns: 1fr;
    gap: 9px;
    font-size: 12px;
    line-height: 1.5;
  }
  .hmi-detail figure {
    height: 230px;
  }
  .hmi-info-card {
    padding: 22px 19px;
  }
  .hmi-action {
    min-height: 44px;
    align-items: center;
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 11px;
  }
}

/* Mobile HMI enclosure (v18).
   The logo, navigation, service categories, copy, and equipment imagery are
   one scrollable operator interface instead of content placed below a blank
   cabinet photograph. Desktop cabinet geometry remains unchanged. */
@media (max-width: 720px) {
  .hero {
    position: relative;
    display: grid;
    grid-template-areas:
      "identity"
      "navigation"
      "screen";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 118px auto minmax(0, 1fr);
    gap: 0;
    width: calc(100% - 16px);
    max-width: 680px;
    height: calc(100svh - 24px);
    min-height: 690px;
    max-height: 920px;
    margin: 8px auto 28px;
    padding: 15px;
    overflow: hidden;
    border: 1px solid #5d666c;
    border-radius: 14px;
    background:
      linear-gradient(
        105deg,
        rgba(255, 255, 255, 0.17),
        transparent 20%,
        rgba(255, 255, 255, 0.045) 44%,
        transparent 66%,
        rgba(0, 0, 0, 0.24)
      ),
      repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.025) 0 1px,
        rgba(0, 0, 0, 0.035) 1px 3px
      ),
      linear-gradient(145deg, #596168, #242a2f 34%, #12181c 78%, #454d52);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.3),
      inset 0 0 0 5px rgba(7, 11, 14, 0.46),
      inset 0 0 0 7px rgba(151, 162, 169, 0.16),
      0 20px 46px rgba(1, 6, 10, 0.48);
  }

  .hero::before,
  .hero::after {
    content: "";
    position: absolute;
    z-index: 5;
    top: 7px;
    width: 6px;
    height: 6px;
    border: 1px solid rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    background: radial-gradient(
      circle at 35% 30%,
      #c8d0d4,
      #596168 45%,
      #151a1e 78%
    );
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    pointer-events: none;
  }

  .hero::before {
    left: 7px;
  }

  .hero::after {
    right: 7px;
  }

  .hero .identity-hero {
    position: relative;
    inset: auto;
    grid-area: identity;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(117, 196, 237, 0.52);
    border-bottom-color: rgba(196, 223, 237, 0.5);
    border-radius: 5px 5px 0 0;
    background:
      linear-gradient(
        90deg,
        rgba(4, 12, 18, 0.92) 0%,
        rgba(4, 12, 18, 0.52) 58%,
        rgba(4, 12, 18, 0.12) 100%
      ),
      url("images/wafer-color-v1.webp") 62% 52% / cover no-repeat;
    box-shadow:
      inset 0 -1px rgba(203, 230, 244, 0.32),
      inset 0 0 22px rgba(2, 8, 12, 0.52),
      0 0 15px rgba(25, 143, 206, 0.1);
  }

  .hero .identity-hero > a {
    inset: 9px auto 30px 12px;
    width: min(66%, 360px);
    height: auto;
  }

  .hero .identity-hero .art-top {
    left: 14px;
    bottom: 9px;
  }

  .hero .identity-hero .art-top span:first-child {
    font-size: clamp(12px, 3.8vw, 18px);
  }

  .hero .identity-hero .art-top span:last-child {
    font-size: clamp(6px, 1.75vw, 9px);
  }

  .hero .hmi-nav {
    position: relative;
    grid-area: navigation;
    order: initial;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(107, 190, 235, 0.48);
    border-top: 0;
    border-right-color: rgba(139, 205, 239, 0.5);
    border-radius: 0;
  }

  .hero .hmi-nav button {
    min-height: 45px;
    padding: 7px 9px;
    border-right: 1px solid rgba(105, 178, 218, 0.24);
    border-bottom: 1px solid rgba(105, 178, 218, 0.24);
    font-size: clamp(10px, 2.9vw, 12px);
  }

  .hero .hmi-nav button:nth-child(even) {
    border-right: 0;
  }

  .hero .hmi-nav button:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .hero .hmi-nav button span {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    font-size: 10px;
  }

  .hmi-screen-content {
    position: relative;
    grid-area: screen;
    order: initial;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-color: rgba(112, 196, 239, 0.72) rgba(4, 12, 17, 0.72);
    border: 1px solid rgba(127, 195, 231, 0.46);
    border-top: 0;
    border-radius: 0 0 5px 5px;
    background:
      linear-gradient(135deg, rgba(61, 106, 132, 0.09), transparent 38%),
      repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.012) 0 1px,
        rgba(0, 0, 0, 0.025) 1px 3px
      ),
      linear-gradient(145deg, #17242d, #0b151b 70%);
    box-shadow:
      inset 0 0 26px rgba(0, 0, 0, 0.5),
      0 0 16px rgba(40, 160, 220, 0.08);
  }

  .hmi-screen-content::-webkit-scrollbar {
    width: 8px;
  }

  .hmi-screen-content::-webkit-scrollbar-track {
    background: rgba(4, 12, 17, 0.72);
  }

  .hmi-screen-content::-webkit-scrollbar-thumb {
    border: 2px solid rgba(4, 12, 17, 0.72);
    border-radius: 999px;
    background: rgba(112, 196, 239, 0.72);
  }

  .hmi-view,
  .hmi-view > .hmi-feature-stack {
    height: auto;
    min-height: 100%;
  }

  .hmi-feature-stack {
    order: initial;
    width: 100%;
    padding: 12px;
    overflow: visible;
    border: 0;
  }

  .hmi-feature,
  .hmi-feature-large,
  .hmi-feature-compact,
  .hmi-detail {
    grid-template-columns: 1fr;
  }

  .hmi-feature figure,
  .hmi-detail figure {
    height: clamp(180px, 51vw, 250px);
  }

  #hmi-repairs {
    min-height: 100%;
  }
}
