/* Coordinates follow the cabinet reference. Only the enclosure is raster;
   logo, labels, tabs, service copy and all forms remain live HTML. */
.terminal-ready {background:#10161a;}
.terminal-ready>header,.terminal-ready>footer,.terminal-ready>.mascot-finale,
.terminal-ready main>.chip-reveal,.terminal-ready main>.hero-summary,
.terminal-ready main>.trust-strip {display:none;}
.terminal-ready main {max-width:none;margin:0;}
.terminal-ready .hero {
  display:block;position:relative;width:min(1215px,100%);max-width:1215px;
  height:auto;min-height:0;max-height:none;aspect-ratio:1215/1295;
  margin:0 auto;padding:0;border:0;border-radius:0;overflow:hidden;
  background:#11191f url('images/control-cabinet-shell-v16.webp') center/100% 100% no-repeat;
}
.terminal-ready .hero::before,.terminal-ready .hero::after {display:none;}
.terminal-ready .terminal-surface .identity-hero {
  position:absolute;inset:15.25% 4.1% auto 24.75%;width:auto;height:13.3%;
  margin:0;max-height:none;border:1px solid #7dacc4;border-radius:0;
}
.terminal-ready .terminal-surface .identity-hero>a {inset:7% auto 29% 4%;width:49%;}
.terminal-ready .terminal-surface .hmi-nav {
  position:absolute;inset:28.55% auto 22.4% 24.75%;width:9.3%;height:auto;max-height:none;
  display:flex;flex-direction:column;gap:0;margin:0;overflow-y:auto;
  border:1px solid #628ba2;border-radius:0;scrollbar-width:thin;scrollbar-color:#527e97 #101e28;
}
.terminal-ready .terminal-surface .hmi-nav button {
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  flex:1 0 11%;width:100%;min-height:44px;gap:4px;padding:6px 2px;
  font-size:clamp(8px,.9vw,12px);line-height:1.15;text-align:center;
  border:0;border-bottom:1px solid #4d778e;color:#e5edf2;
}
.terminal-ready .terminal-surface .hmi-nav button span {border:0;background:none;width:25px;height:25px;flex-basis:25px;font-size:19px;}
.terminal-ready .terminal-surface .hmi-nav button svg {display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;}
.terminal-ready .terminal-surface .hmi-nav button[aria-selected=true] {color:#53c5ff;background:linear-gradient(90deg,#16384e,#152730);box-shadow:inset 3px 0 #4cbaff;}
.terminal-ready .hmi-screen-content {
  position:absolute;inset:28.55% 4.1% 22.4% 34.05%;width:auto;
  overflow:auto;overscroll-behavior:contain;border:1px solid #628ba2;border-left:0;border-radius:0;
  scrollbar-width:thin;scrollbar-color:#568da9 #0a1821;
}
.terminal-ready .hmi-view{height:auto;min-height:100%;}
.terminal-ready .hmi-view>.hmi-feature-stack{height:auto;min-height:100%;grid-template-rows:auto auto auto;}
.terminal-ready #hmi-home>.hmi-feature-stack {height:100%;min-height:100%;grid-template-rows:minmax(0,1fr) minmax(0,1fr) auto;}
.terminal-ready #hmi-home{min-height:calc(100% - 42px);}
.terminal-ready .hmi-feature {min-height:235px;}
.terminal-ready .hmi-feature h2 {font-size:clamp(18px,2.25vw,30px);}
.terminal-ready .hmi-feature p,.terminal-ready .hmi-feature li {font-size:clamp(10px,1.12vw,15px);}
.terminal-ready .hmi-feature figure img{object-fit:cover;}
.terminal-ready .hmi-feature figure img[src*="repair-work/v41/"],
.terminal-ready .hmi-detail figure img[src*="repair-work/v41/"]{object-fit:contain;object-position:center;background:#17242d;}
.terminal-ready .hmi-cooling-media{display:grid;grid-template-columns:1fr 1fr;min-width:0;background:#17242d;}
.terminal-ready .hmi-cooling-media figure{height:auto;min-height:0;margin:0;}
.terminal-ready .hmi-cooling-media img{width:100%;height:100%;object-fit:contain;object-position:center;}
.terminal-ready .hmi-repair-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;padding:8px;background:#101a20;}
.terminal-ready .hmi-repair-gallery-featured{align-content:stretch;}
.terminal-ready .hmi-repair-photo{display:grid;grid-template-rows:minmax(150px,1fr) auto;min-width:0;min-height:0;margin:0;overflow:hidden;background:#17242d;}
.terminal-ready .hmi-repair-photo img{display:block;width:100%;height:100%;min-height:150px;max-height:310px;object-fit:contain;object-position:center;transform:none;background:radial-gradient(circle at 50% 42%,#22323c,#111a20 72%);}
.terminal-ready .hmi-repair-photo figcaption{position:static;padding:9px 10px;background:#1b2e3a;font-size:11px;line-height:1.45;letter-spacing:.02em;overflow-wrap:anywhere;}
.terminal-ready .hmi-feature figure img[src*="jetson-nano-hardware"]{object-fit:contain;object-position:center;background:#171b1e;}
/* Equipment galleries show the complete photograph and keep captions clear
   of component details, including on narrow phone screens. */
.terminal-ready .hmi-view [id$="-photos"] .mission-photo,
.terminal-ready #controls-overview .mission-photo{min-height:0;margin:12px 0;background:#17242d;}
.terminal-ready .hmi-view [id$="-photos"] .mission-photo img,
.terminal-ready #controls-overview .mission-photo img{width:100%;height:auto;object-fit:contain;transform:none;}
.terminal-ready .hmi-view [id$="-photos"] .mission-photo figcaption,
.terminal-ready #controls-overview .mission-photo figcaption{position:static;padding:12px;background:#1b2e3a;line-height:1.6;letter-spacing:.02em;text-transform:none;overflow-wrap:anywhere;}
.terminal-ready .hmi-scope {font-size:clamp(9px,.95vw,13px);}
.terminal-ready .hmi-feature-stack {gap:10px;padding:12px;}
.terminal-ready .hmi-subnav,.terminal-submenu {display:flex;flex-wrap:wrap;gap:7px;}
.terminal-ready .hmi-subnav button,.terminal-submenu a {
  flex:1 1 110px;min-height:44px;padding:9px;border:1px solid #568aa7;
  background:linear-gradient(#2d4655,#172a36);color:#e7f2f8;font-size:12px;text-align:center;
}
.terminal-ready .hmi-subnav button[aria-selected=true]{border-color:#79d0ff;background:#254d65;}
.terminal-ready .hmi-detail,.terminal-ready .hmi-info-card {
  border:1px solid rgba(110,192,235,.78);
  border-radius:9px;
  background:linear-gradient(115deg,rgba(224,236,242,.08),transparent 32%,rgba(131,184,211,.025) 72%),repeating-linear-gradient(0deg,rgba(255,255,255,.018) 0 1px,rgba(0,0,0,.022) 1px 3px),linear-gradient(145deg,#2a3943,#17242d 69%,#111b22);
  box-shadow:inset 0 1px rgba(239,249,255,.26),inset 0 0 0 2px rgba(4,12,17,.3),0 0 13px rgba(43,151,211,.1);
}
.terminal-ready .hmi-detail {overflow:hidden;}
.terminal-ready .hmi-subnav button {cursor:pointer;box-shadow:inset 0 1px rgba(225,244,255,.12);}
.terminal-ready .hmi-subnav button:focus-visible,.terminal-ready .hmi-nav button:focus-visible {outline:2px solid #a4ddfa;outline-offset:-3px;}
.terminal-ready .hmi-subnav button[aria-selected=true] {box-shadow:inset 0 -2px #73caff,inset 0 1px rgba(225,244,255,.18);}
.terminal-ready #hmi-repairs{display:block;padding:12px;}
.terminal-ready #hmi-repairs .hmi-detail{margin:12px 0;min-height:320px;}
.terminal-ready .hmi-detail p,.terminal-ready .hmi-detail li {font-size:14px;}
.terminal-ready .hmi-detail h2{font-size:32px;}
.terminal-document{padding:12px;}
.terminal-ready .terminal-document .section {padding:20px 12px;}
.terminal-ready .terminal-document h2 {font-size:36px;}
.terminal-ready .terminal-document :is(p,li,label,legend,h2,h3,.eyebrow,figcaption){color:#e1edf4;}
.terminal-ready .terminal-document :is(.section-heading,.mission-copy,.mission-values article,.approach>div,.approach>ol,.request>div,.request>form,footer,.brands-label,.brand-list span,.drive-group,.mascot-finale){background:#1b2e3a;border-color:#56809a;}
.terminal-ready .terminal-document .request {display:block;background:none;}
.terminal-ready .terminal-document form {margin-top:18px;}
.terminal-ready .terminal-document input,.terminal-ready .terminal-document textarea,.terminal-ready .terminal-document select{color:#142733;background:#f0f5f8;font-size:16px;}
.terminal-ready .terminal-document .mission{display:block;}
.terminal-ready .terminal-document .mission-gallery{grid-template-columns:repeat(2,minmax(0,1fr));}
.terminal-ready .terminal-document .mission-photo{min-height:0;background:#17242d;}
.terminal-ready .terminal-document .mission-photo img{width:100%;height:auto;object-fit:contain;transform:none;}
.terminal-ready .terminal-document .mission-photo figcaption{position:static;padding:12px;line-height:1.6;overflow-wrap:anywhere;}
.terminal-ready .terminal-document .approach {display:block;}
.terminal-ready .terminal-document .contact-details{font-size:13px;overflow-wrap:anywhere;}
.terminal-ready .hmi-screen-content.has-terminal-frame{display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;}
.terminal-ready .terminal-frame-panel{height:auto;min-height:0;padding:0;overflow:hidden;}
.terminal-frame{display:block;border:0;width:100%;height:100%;min-height:0;background:#14232e;}
.terminal-ready #hmi-repairs .service-grid{grid-template-columns:1fr;}
.terminal-ready #hmi-repairs #expertise{padding:20px 4px;}
.terminal-ready #hmi-repairs :is(.section-heading,.service-grid,.service-grid article,.field-service){background:#1b2e3a;color:#e8f2f8;border-color:#628ba2;}
.terminal-ready #hmi-repairs :is(h2,h3,p,li){color:#e1edf4;}
.terminal-ready #hmi-repairs .section-heading h2{font-size:32px;}
.terminal-ready #hmi-repairs .service-grid h3{font-size:28px;}
.terminal-ready #hmi-repairs .service-grid p{min-height:0;font-size:14px;}
.terminal-ready #hmi-repairs .service-grid li{font-size:13px;}
.terminal-ready .hmi-view[hidden]{display:none!important;}
@media(max-width:720px){
  .terminal-ready .hero {
    width:100%;aspect-ratio:auto;height:100svh;min-height:680px;
    border:0;border-radius:0;
    background-size:auto 100%;background-position:45% center;
  }
  .terminal-ready .terminal-surface .identity-hero {inset:7% 3.5% auto 7%;height:15%;border-width:2px;}
  .terminal-ready .terminal-surface .identity-hero>a{width:61%;}
  .terminal-ready .terminal-surface .identity-hero .art-top span:first-child{font-size:13px;}
  .terminal-ready .terminal-surface .identity-hero .art-top span:last-child{font-size:6px;}
  .terminal-ready .terminal-surface .hmi-nav {inset:22% auto 8% 7%;width:17%;border-width:2px;}
  .terminal-ready .terminal-surface .hmi-nav button {font-size:9px;min-height:55px;padding:4px 2px;}
  .terminal-ready .terminal-surface .hmi-nav button span{font-size:17px;height:23px;flex-basis:23px;}
  .terminal-ready .hmi-screen-content{inset:22% 3.5% 8% 24%;border-width:2px;border-left:0;}
  .terminal-ready .hmi-feature-stack{padding:8px;gap:10px;}
  .terminal-ready #hmi-home>.hmi-feature-stack{height:auto;grid-template-rows:auto;}
  .terminal-ready .hmi-feature{min-height:0;grid-template-columns:1fr;}
  .terminal-ready .hmi-feature-copy{padding:16px 12px;}
  .terminal-ready .hmi-feature h2,.terminal-ready .hmi-detail h2{font-size:27px;}
  .terminal-ready .hmi-feature p,.terminal-ready .hmi-feature li,.terminal-ready .hmi-detail p,.terminal-ready .hmi-detail li{font-size:13px;line-height:1.6;}
  .terminal-ready .hmi-feature figure,.terminal-ready .hmi-detail figure{height:190px;}
  .terminal-ready .hmi-detail .hmi-repair-photo{height:auto;}
  .terminal-ready .hmi-scope{font-size:11px;line-height:1.5;}
  .terminal-ready #hmi-repairs{padding:8px;}
  .terminal-ready .hmi-detail{grid-template-columns:1fr;}
  .terminal-ready .hmi-detail-copy{padding:16px 12px;}
  .terminal-ready .hmi-info-card{padding:16px 12px;}
  .terminal-ready .hmi-info-card h2{font-size:27px;}
  .terminal-ready .hmi-info-card p,.terminal-ready .hmi-info-card li{font-size:13px;}
  .terminal-ready .hmi-repair-gallery{grid-template-columns:1fr;padding:6px;gap:6px;}
  .terminal-ready .hmi-repair-photo{grid-template-rows:minmax(190px,auto) auto;}
  .terminal-ready .hmi-repair-photo img{min-height:190px;max-height:390px;}
  .terminal-ready .terminal-document{padding:8px;}
  .terminal-ready .terminal-document .section{padding:16px 6px;}
  .terminal-ready .terminal-document .mission-gallery{grid-template-columns:1fr;}
  .terminal-ready .terminal-document .request>div,.terminal-ready .terminal-document .request>form{padding:12px 6px;}
  .terminal-ready .terminal-document h2{font-size:29px;}
}
@media(prefers-reduced-motion:reduce){.terminal-ready *{scroll-behavior:auto!important;}}

/* Fit the live interface to the glass aperture of the original cabinet photo.
   Coordinates refer to the unmodified 1215 × 1295 source photograph. */
.terminal-ready .terminal-surface-anchor {
  position:absolute;left:24.855967%;top:15.984556%;width:70.864198%;height:60.30888%;
  pointer-events:none;visibility:hidden;
}
.terminal-ready .terminal-surface {
  position:absolute;z-index:2;overflow:hidden;background:#101e28;transform:none;transform-origin:0 0;
}
.terminal-ready .terminal-surface .identity-hero {
  inset:0 0 auto 0;height:20.87%;border:1px solid #628ba2;
}
.terminal-ready .terminal-surface .hmi-nav {
  inset:20.87% auto 0 0;width:13.12%;border-top:0;
}
.terminal-ready .terminal-surface .hmi-screen-content {
  inset:20.87% 0 0 13.12%;border-top:0;
}
@media(max-width:720px){
  /* Stretch the existing cabinet photograph around the readable phone screen;
     do not place a rectangular overlay across a cropped, angled monitor. */
  .terminal-ready .hero {
    background-size:126.298% 140.941%;background-position:92.7548% 37.9296%;
  }
  .terminal-ready .terminal-surface-anchor {left:7%;top:7%;width:89.5%;height:85%;}
  .terminal-ready .terminal-surface .identity-hero {inset:0 0 auto 0;height:17.647%;}
  .terminal-ready .terminal-surface .hmi-nav {inset:17.647% auto 0 0;width:19%;}
  .terminal-ready .terminal-surface .hmi-screen-content {inset:17.647% 0 0 19%;}
  .terminal-ready .hmi-cooling-media{grid-template-columns:1fr;}
}

/* Non-destructive front-view correction. The complete original cabinet and
   its functional screen are transformed together and fitted without cropping. */
.terminal-ready .cabinet-stage {
  position:relative;width:min(1215px,100%);max-width:1215px;margin:0 auto;
  overflow:hidden;background:#10161a;
}
.terminal-ready .cabinet-plc-band{display:none;}
@media(min-width:721px){
  .terminal-ready .cabinet-plc-band{display:block;position:absolute;z-index:1;inset:auto 0 0;height:27%;pointer-events:none;background:#10161a url('images/control-cabinet-shell-v16.webp') center bottom/100% auto no-repeat;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 18%,#000 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 18%,#000 100%);}
}
.terminal-ready .cabinet-stage .hero {
  position:absolute;left:0;top:0;width:100%;max-width:none;margin:0;
  transform-origin:0 0;
}
